twilio-ruby 5.8.1 → 5.9.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.
- 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
|
|
@@ -14,7 +16,8 @@ module Twilio
|
|
|
14
16
|
##
|
|
15
17
|
# Initialize the ParticipantList
|
|
16
18
|
# @param [Version] version Version that contains the resource
|
|
17
|
-
# @param [String] account_sid The unique id of the
|
|
19
|
+
# @param [String] account_sid The unique id of the
|
|
20
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) that created this
|
|
18
21
|
# conference
|
|
19
22
|
# @param [String] conference_sid A 34 character string that identifies the
|
|
20
23
|
# conference this participant is in
|
|
@@ -30,39 +33,35 @@ module Twilio
|
|
|
30
33
|
##
|
|
31
34
|
# Retrieve a single page of ParticipantInstance records from the API.
|
|
32
35
|
# Request is executed immediately.
|
|
33
|
-
# @param [String] from
|
|
34
|
-
# @param [String] to
|
|
35
|
-
# @param [String] status_callback
|
|
36
|
-
# @param [String] status_callback_method
|
|
37
|
-
# @param [String] status_callback_event
|
|
38
|
-
# @param [String] timeout
|
|
39
|
-
# @param [Boolean] record
|
|
40
|
-
# @param [Boolean] muted
|
|
41
|
-
# @param [String] beep
|
|
42
|
-
# @param [Boolean] start_conference_on_enter
|
|
43
|
-
# @param [Boolean] end_conference_on_exit
|
|
44
|
-
# @param [String] wait_url
|
|
45
|
-
# @param [String] wait_method
|
|
46
|
-
# @param [Boolean] early_media
|
|
47
|
-
# @param [String] max_participants
|
|
48
|
-
# @param [String] conference_record
|
|
49
|
-
# @param [String] conference_trim
|
|
50
|
-
# @param [String] conference_status_callback
|
|
51
|
-
# @param [String] conference_status_callback_method
|
|
52
|
-
#
|
|
53
|
-
#
|
|
54
|
-
#
|
|
55
|
-
# @param [String]
|
|
56
|
-
# @param [String]
|
|
57
|
-
# @param [String]
|
|
58
|
-
#
|
|
59
|
-
# @param [String]
|
|
60
|
-
# @param [String]
|
|
61
|
-
# @param [String]
|
|
62
|
-
# @param [String] conference_recording_status_callback The
|
|
63
|
-
# conference_recording_status_callback
|
|
64
|
-
# @param [String] conference_recording_status_callback_method The
|
|
65
|
-
# conference_recording_status_callback_method
|
|
36
|
+
# @param [String] from number, client id
|
|
37
|
+
# @param [String] to number, client id, sip address
|
|
38
|
+
# @param [String] status_callback absolute url
|
|
39
|
+
# @param [String] status_callback_method GET, POST
|
|
40
|
+
# @param [String] status_callback_event initiated, ringing, answered, completed
|
|
41
|
+
# @param [String] timeout 5-600
|
|
42
|
+
# @param [Boolean] record true, false
|
|
43
|
+
# @param [Boolean] muted true, false
|
|
44
|
+
# @param [String] beep true, false, onEnter, onExit
|
|
45
|
+
# @param [Boolean] start_conference_on_enter true, false
|
|
46
|
+
# @param [Boolean] end_conference_on_exit true, false
|
|
47
|
+
# @param [String] wait_url absolute url
|
|
48
|
+
# @param [String] wait_method GET, POST
|
|
49
|
+
# @param [Boolean] early_media true, false
|
|
50
|
+
# @param [String] max_participants 2-10
|
|
51
|
+
# @param [String] conference_record true, false, record-from-start, do-not-record
|
|
52
|
+
# @param [String] conference_trim trim-silence or do-not-trim
|
|
53
|
+
# @param [String] conference_status_callback absolute url
|
|
54
|
+
# @param [String] conference_status_callback_method GET, POST
|
|
55
|
+
# @param [String] conference_status_callback_event start end join leave mute hold
|
|
56
|
+
# speaker
|
|
57
|
+
# @param [String] recording_channels mono, dual
|
|
58
|
+
# @param [String] recording_status_callback absolute url
|
|
59
|
+
# @param [String] recording_status_callback_method GET, POST
|
|
60
|
+
# @param [String] sip_auth_username sip username
|
|
61
|
+
# @param [String] sip_auth_password sip password
|
|
62
|
+
# @param [String] region us1, ie1, de1, sg1, br1, au1, jp1
|
|
63
|
+
# @param [String] conference_recording_status_callback absolute url
|
|
64
|
+
# @param [String] conference_recording_status_callback_method GET, POST
|
|
66
65
|
# @param [String] recording_status_callback_event The
|
|
67
66
|
# recording_status_callback_event
|
|
68
67
|
# @param [String] conference_recording_status_callback_event The
|
|
@@ -120,8 +119,10 @@ module Twilio
|
|
|
120
119
|
# Lists ParticipantInstance records from the API as a list.
|
|
121
120
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
122
121
|
# memory before returning.
|
|
123
|
-
# @param [Boolean] muted Only show participants that are muted or unmuted
|
|
124
|
-
#
|
|
122
|
+
# @param [Boolean] muted Only show participants that are muted or unmuted. Either
|
|
123
|
+
# `true` or `false`.
|
|
124
|
+
# @param [Boolean] hold Only show participants that are held or unheld. Either
|
|
125
|
+
# `true` or `false`.
|
|
125
126
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
126
127
|
# guarantees to never return more than limit. Default is no limit
|
|
127
128
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -137,8 +138,10 @@ module Twilio
|
|
|
137
138
|
# Streams ParticipantInstance records from the API as an Enumerable.
|
|
138
139
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
139
140
|
# is reached.
|
|
140
|
-
# @param [Boolean] muted Only show participants that are muted or unmuted
|
|
141
|
-
#
|
|
141
|
+
# @param [Boolean] muted Only show participants that are muted or unmuted. Either
|
|
142
|
+
# `true` or `false`.
|
|
143
|
+
# @param [Boolean] hold Only show participants that are held or unheld. Either
|
|
144
|
+
# `true` or `false`.
|
|
142
145
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
143
146
|
# guarantees to never return more than limit. Default is no limit.
|
|
144
147
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -171,8 +174,10 @@ module Twilio
|
|
|
171
174
|
##
|
|
172
175
|
# Retrieve a single page of ParticipantInstance records from the API.
|
|
173
176
|
# Request is executed immediately.
|
|
174
|
-
# @param [Boolean] muted Only show participants that are muted or unmuted
|
|
175
|
-
#
|
|
177
|
+
# @param [Boolean] muted Only show participants that are muted or unmuted. Either
|
|
178
|
+
# `true` or `false`.
|
|
179
|
+
# @param [Boolean] hold Only show participants that are held or unheld. Either
|
|
180
|
+
# `true` or `false`.
|
|
176
181
|
# @param [String] page_token PageToken provided by the API
|
|
177
182
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
178
183
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -287,10 +292,15 @@ module Twilio
|
|
|
287
292
|
|
|
288
293
|
##
|
|
289
294
|
# Update the ParticipantInstance
|
|
290
|
-
# @param [Boolean] muted
|
|
291
|
-
#
|
|
292
|
-
#
|
|
293
|
-
# @param [
|
|
295
|
+
# @param [Boolean] muted Specifying `true` will mute the participant, while
|
|
296
|
+
# `false` will un-mute. Anything other than `true` or `false` is interpreted as
|
|
297
|
+
# `false`.
|
|
298
|
+
# @param [Boolean] hold Specifying `true` will hold the participant, while `false`
|
|
299
|
+
# will un-hold.
|
|
300
|
+
# @param [String] hold_url The 'HoldUrl' attribute lets you specify a URL for
|
|
301
|
+
# music that plays when a participant is held. The URL may be an MP3, a WAV or a
|
|
302
|
+
# TwiML document that uses <Play> <Say> or <Redirect>.
|
|
303
|
+
# @param [String] hold_method Specify GET or POST, defaults to GET
|
|
294
304
|
# @param [String] announce_url The announce_url
|
|
295
305
|
# @param [String] announce_method The announce_method
|
|
296
306
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
|
@@ -339,7 +349,8 @@ module Twilio
|
|
|
339
349
|
# Initialize the ParticipantInstance
|
|
340
350
|
# @param [Version] version Version that contains the resource
|
|
341
351
|
# @param [Hash] payload payload that contains response from Twilio
|
|
342
|
-
# @param [String] account_sid The unique id of the
|
|
352
|
+
# @param [String] account_sid The unique id of the
|
|
353
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) that created this
|
|
343
354
|
# conference
|
|
344
355
|
# @param [String] conference_sid A 34 character string that identifies the
|
|
345
356
|
# conference this participant is in
|
|
@@ -431,7 +442,7 @@ module Twilio
|
|
|
431
442
|
end
|
|
432
443
|
|
|
433
444
|
##
|
|
434
|
-
# @return [Boolean]
|
|
445
|
+
# @return [Boolean] true if this participant is currently held.
|
|
435
446
|
def hold
|
|
436
447
|
@properties['hold']
|
|
437
448
|
end
|
|
@@ -463,10 +474,15 @@ module Twilio
|
|
|
463
474
|
|
|
464
475
|
##
|
|
465
476
|
# Update the ParticipantInstance
|
|
466
|
-
# @param [Boolean] muted
|
|
467
|
-
#
|
|
468
|
-
#
|
|
469
|
-
# @param [
|
|
477
|
+
# @param [Boolean] muted Specifying `true` will mute the participant, while
|
|
478
|
+
# `false` will un-mute. Anything other than `true` or `false` is interpreted as
|
|
479
|
+
# `false`.
|
|
480
|
+
# @param [Boolean] hold Specifying `true` will hold the participant, while `false`
|
|
481
|
+
# will un-hold.
|
|
482
|
+
# @param [String] hold_url The 'HoldUrl' attribute lets you specify a URL for
|
|
483
|
+
# music that plays when a participant is held. The URL may be an MP3, a WAV or a
|
|
484
|
+
# TwiML document that uses <Play> <Say> or <Redirect>.
|
|
485
|
+
# @param [String] hold_method Specify GET or POST, defaults to GET
|
|
470
486
|
# @param [String] announce_url The announce_url
|
|
471
487
|
# @param [String] announce_method The announce_method
|
|
472
488
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
|
@@ -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 ConferenceList
|
|
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 conference.
|
|
18
21
|
# @return [ConferenceList] ConferenceList
|
|
19
22
|
def initialize(version, account_sid: nil)
|
|
20
23
|
super(version)
|
|
@@ -241,7 +244,8 @@ module Twilio
|
|
|
241
244
|
|
|
242
245
|
##
|
|
243
246
|
# Update the ConferenceInstance
|
|
244
|
-
# @param [conference.UpdateStatus] status
|
|
247
|
+
# @param [conference.UpdateStatus] status Specifying `completed` will end the
|
|
248
|
+
# conference and kick all participants
|
|
245
249
|
# @param [String] announce_url The announce_url
|
|
246
250
|
# @param [String] announce_method The announce_method
|
|
247
251
|
# @return [ConferenceInstance] Updated ConferenceInstance
|
|
@@ -301,8 +305,9 @@ module Twilio
|
|
|
301
305
|
# Initialize the ConferenceInstance
|
|
302
306
|
# @param [Version] version Version that contains the resource
|
|
303
307
|
# @param [Hash] payload payload that contains response from Twilio
|
|
304
|
-
# @param [String] account_sid The unique id of the
|
|
305
|
-
#
|
|
308
|
+
# @param [String] account_sid The unique id of the
|
|
309
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for creating
|
|
310
|
+
# this conference.
|
|
306
311
|
# @param [String] sid The conference Sid that uniquely identifies this resource
|
|
307
312
|
# @return [ConferenceInstance] ConferenceInstance
|
|
308
313
|
def initialize(version, payload, account_sid: nil, sid: nil)
|
|
@@ -369,7 +374,7 @@ module Twilio
|
|
|
369
374
|
end
|
|
370
375
|
|
|
371
376
|
##
|
|
372
|
-
# @return [String]
|
|
377
|
+
# @return [String] A string representing the Twilio Region where the conference was mixed.
|
|
373
378
|
def region
|
|
374
379
|
@properties['region']
|
|
375
380
|
end
|
|
@@ -407,7 +412,8 @@ module Twilio
|
|
|
407
412
|
|
|
408
413
|
##
|
|
409
414
|
# Update the ConferenceInstance
|
|
410
|
-
# @param [conference.UpdateStatus] status
|
|
415
|
+
# @param [conference.UpdateStatus] status Specifying `completed` will end the
|
|
416
|
+
# conference and kick all participants
|
|
411
417
|
# @param [String] announce_url The announce_url
|
|
412
418
|
# @param [String] announce_method The announce_method
|
|
413
419
|
# @return [ConferenceInstance] Updated ConferenceInstance
|
|
@@ -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,7 +15,8 @@ module Twilio
|
|
|
13
15
|
##
|
|
14
16
|
# Initialize the ConnectAppList
|
|
15
17
|
# @param [Version] version Version that contains the resource
|
|
16
|
-
# @param [String] account_sid The unique id of the
|
|
18
|
+
# @param [String] account_sid The unique id of the
|
|
19
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) that created this
|
|
17
20
|
# ConnectApp.
|
|
18
21
|
# @return [ConnectAppList] ConnectAppList
|
|
19
22
|
def initialize(version, account_sid: nil)
|
|
@@ -184,16 +187,18 @@ module Twilio
|
|
|
184
187
|
# Connect App.
|
|
185
188
|
# @param [String] company_name The company name set for this Connect App.
|
|
186
189
|
# @param [String] deauthorize_callback_method The HTTP method to be used when
|
|
187
|
-
# making a request to the `DeauthorizeCallbackUrl`.
|
|
190
|
+
# making a request to the `DeauthorizeCallbackUrl`. Either `GET` or `POST`.
|
|
188
191
|
# @param [String] deauthorize_callback_url The URL to which Twilio will send a
|
|
189
192
|
# request when a user de-authorizes this Connect App.
|
|
190
193
|
# @param [String] description A more detailed human readable description of the
|
|
191
194
|
# Connect App.
|
|
192
|
-
# @param [String] friendly_name A human readable
|
|
195
|
+
# @param [String] friendly_name A human readable description of the Connect App,
|
|
196
|
+
# with maximum length 64 characters.
|
|
193
197
|
# @param [String] homepage_url The public URL where users can obtain more
|
|
194
198
|
# information about this Connect App.
|
|
195
|
-
# @param [connect_app.Permission] permissions
|
|
196
|
-
# ConnectApp
|
|
199
|
+
# @param [connect_app.Permission] permissions A comma-separated list of permssions
|
|
200
|
+
# you will request from users of this ConnectApp. Valid permssions are `get-all`
|
|
201
|
+
# or `post-all`.
|
|
197
202
|
# @return [ConnectAppInstance] Updated ConnectAppInstance
|
|
198
203
|
def update(authorize_redirect_url: :unset, company_name: :unset, deauthorize_callback_method: :unset, deauthorize_callback_url: :unset, description: :unset, friendly_name: :unset, homepage_url: :unset, permissions: :unset)
|
|
199
204
|
data = Twilio::Values.of({
|
|
@@ -234,7 +239,8 @@ module Twilio
|
|
|
234
239
|
# Initialize the ConnectAppInstance
|
|
235
240
|
# @param [Version] version Version that contains the resource
|
|
236
241
|
# @param [Hash] payload payload that contains response from Twilio
|
|
237
|
-
# @param [String] account_sid The unique id of the
|
|
242
|
+
# @param [String] account_sid The unique id of the
|
|
243
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) that created this
|
|
238
244
|
# ConnectApp.
|
|
239
245
|
# @param [String] sid The connect-app Sid that uniquely identifies this resource
|
|
240
246
|
# @return [ConnectAppInstance] ConnectAppInstance
|
|
@@ -291,7 +297,7 @@ module Twilio
|
|
|
291
297
|
end
|
|
292
298
|
|
|
293
299
|
##
|
|
294
|
-
# @return [String] HTTP method Twilio
|
|
300
|
+
# @return [String] HTTP method Twilio will use making requests to the url
|
|
295
301
|
def deauthorize_callback_method
|
|
296
302
|
@properties['deauthorize_callback_method']
|
|
297
303
|
end
|
|
@@ -352,16 +358,18 @@ module Twilio
|
|
|
352
358
|
# Connect App.
|
|
353
359
|
# @param [String] company_name The company name set for this Connect App.
|
|
354
360
|
# @param [String] deauthorize_callback_method The HTTP method to be used when
|
|
355
|
-
# making a request to the `DeauthorizeCallbackUrl`.
|
|
361
|
+
# making a request to the `DeauthorizeCallbackUrl`. Either `GET` or `POST`.
|
|
356
362
|
# @param [String] deauthorize_callback_url The URL to which Twilio will send a
|
|
357
363
|
# request when a user de-authorizes this Connect App.
|
|
358
364
|
# @param [String] description A more detailed human readable description of the
|
|
359
365
|
# Connect App.
|
|
360
|
-
# @param [String] friendly_name A human readable
|
|
366
|
+
# @param [String] friendly_name A human readable description of the Connect App,
|
|
367
|
+
# with maximum length 64 characters.
|
|
361
368
|
# @param [String] homepage_url The public URL where users can obtain more
|
|
362
369
|
# information about this Connect App.
|
|
363
|
-
# @param [connect_app.Permission] permissions
|
|
364
|
-
# ConnectApp
|
|
370
|
+
# @param [connect_app.Permission] permissions A comma-separated list of permssions
|
|
371
|
+
# you will request from users of this ConnectApp. Valid permssions are `get-all`
|
|
372
|
+
# or `post-all`.
|
|
365
373
|
# @return [ConnectAppInstance] Updated ConnectAppInstance
|
|
366
374
|
def update(authorize_redirect_url: :unset, company_name: :unset, deauthorize_callback_method: :unset, deauthorize_callback_url: :unset, description: :unset, friendly_name: :unset, homepage_url: :unset, permissions: :unset)
|
|
367
375
|
context.update(
|
|
@@ -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,7 +16,8 @@ module Twilio
|
|
|
14
16
|
##
|
|
15
17
|
# Initialize the LocalList
|
|
16
18
|
# @param [Version] version Version that contains the resource
|
|
17
|
-
# @param [String] account_sid The unique id of the
|
|
19
|
+
# @param [String] account_sid The unique id of the
|
|
20
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) responsible for this
|
|
18
21
|
# phone number.
|
|
19
22
|
# @return [LocalList] LocalList
|
|
20
23
|
def initialize(version, account_sid: nil)
|
|
@@ -29,10 +32,16 @@ module Twilio
|
|
|
29
32
|
# Lists LocalInstance records from the API as a list.
|
|
30
33
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
31
34
|
# memory before returning.
|
|
32
|
-
# @param [Boolean] beta
|
|
33
|
-
#
|
|
34
|
-
# @param [String]
|
|
35
|
-
#
|
|
35
|
+
# @param [Boolean] beta Include phone numbers new to the Twilio platform. Possible
|
|
36
|
+
# values are either `true` or `false`. Default is `true`.
|
|
37
|
+
# @param [String] friendly_name Only show the incoming phone number resources with
|
|
38
|
+
# friendly names that exactly match this name.
|
|
39
|
+
# @param [String] phone_number Only show the incoming phone number resources that
|
|
40
|
+
# match this pattern. You can specify partial numbers and use '*' as a wildcard
|
|
41
|
+
# for any digit.
|
|
42
|
+
# @param [String] origin Include phone numbers based on the origin, by default,
|
|
43
|
+
# phone numbers of all origin are included. Possible values are either `twilio` or
|
|
44
|
+
# `hosted`.
|
|
36
45
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
37
46
|
# guarantees to never return more than limit. Default is no limit
|
|
38
47
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -55,10 +64,16 @@ module Twilio
|
|
|
55
64
|
# Streams LocalInstance records from the API as an Enumerable.
|
|
56
65
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
57
66
|
# is reached.
|
|
58
|
-
# @param [Boolean] beta
|
|
59
|
-
#
|
|
60
|
-
# @param [String]
|
|
61
|
-
#
|
|
67
|
+
# @param [Boolean] beta Include phone numbers new to the Twilio platform. Possible
|
|
68
|
+
# values are either `true` or `false`. Default is `true`.
|
|
69
|
+
# @param [String] friendly_name Only show the incoming phone number resources with
|
|
70
|
+
# friendly names that exactly match this name.
|
|
71
|
+
# @param [String] phone_number Only show the incoming phone number resources that
|
|
72
|
+
# match this pattern. You can specify partial numbers and use '*' as a wildcard
|
|
73
|
+
# for any digit.
|
|
74
|
+
# @param [String] origin Include phone numbers based on the origin, by default,
|
|
75
|
+
# phone numbers of all origin are included. Possible values are either `twilio` or
|
|
76
|
+
# `hosted`.
|
|
62
77
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
63
78
|
# guarantees to never return more than limit. Default is no limit.
|
|
64
79
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -97,10 +112,16 @@ module Twilio
|
|
|
97
112
|
##
|
|
98
113
|
# Retrieve a single page of LocalInstance records from the API.
|
|
99
114
|
# Request is executed immediately.
|
|
100
|
-
# @param [Boolean] beta
|
|
101
|
-
#
|
|
102
|
-
# @param [String]
|
|
103
|
-
#
|
|
115
|
+
# @param [Boolean] beta Include phone numbers new to the Twilio platform. Possible
|
|
116
|
+
# values are either `true` or `false`. Default is `true`.
|
|
117
|
+
# @param [String] friendly_name Only show the incoming phone number resources with
|
|
118
|
+
# friendly names that exactly match this name.
|
|
119
|
+
# @param [String] phone_number Only show the incoming phone number resources that
|
|
120
|
+
# match this pattern. You can specify partial numbers and use '*' as a wildcard
|
|
121
|
+
# for any digit.
|
|
122
|
+
# @param [String] origin Include phone numbers based on the origin, by default,
|
|
123
|
+
# phone numbers of all origin are included. Possible values are either `twilio` or
|
|
124
|
+
# `hosted`.
|
|
104
125
|
# @param [String] page_token PageToken provided by the API
|
|
105
126
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
106
127
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -139,24 +160,54 @@ module Twilio
|
|
|
139
160
|
##
|
|
140
161
|
# Retrieve a single page of LocalInstance records from the API.
|
|
141
162
|
# Request is executed immediately.
|
|
142
|
-
# @param [String] phone_number The
|
|
143
|
-
#
|
|
144
|
-
#
|
|
145
|
-
#
|
|
146
|
-
#
|
|
147
|
-
# @param [String]
|
|
148
|
-
#
|
|
149
|
-
# @param [String]
|
|
150
|
-
#
|
|
151
|
-
#
|
|
152
|
-
# @param [String]
|
|
153
|
-
#
|
|
154
|
-
#
|
|
155
|
-
#
|
|
156
|
-
# @param [String]
|
|
157
|
-
#
|
|
163
|
+
# @param [String] phone_number The phone number you want to purchase. The number
|
|
164
|
+
# should be formatted starting with a '+' followed by the country code and the
|
|
165
|
+
# number in [E.164](http://en.wikipedia.org/wiki/E.164) format e.g.,
|
|
166
|
+
# '+15105555555'. **You must include either this or an `AreaCode` parameter to
|
|
167
|
+
# have your POST succeed.**
|
|
168
|
+
# @param [String] api_version The Twilio REST API version to use for incoming
|
|
169
|
+
# calls made to this number. If omitted, uses `2010-04-01`.
|
|
170
|
+
# @param [String] friendly_name A human readable description of the new incoming
|
|
171
|
+
# phone number. Maximum 64 characters. Defaults to a formatted version of the
|
|
172
|
+
# number.
|
|
173
|
+
# @param [String] sms_application_sid The 34 character sid of the application
|
|
174
|
+
# Twilio should use to handle SMSs sent to the new number. If a
|
|
175
|
+
# `SmsApplicationSid` is present, Twilio will ignore all of the SMS urls above and
|
|
176
|
+
# use those set on the application.
|
|
177
|
+
# @param [String] sms_fallback_method The HTTP method that should be used to
|
|
178
|
+
# request the `SmsFallbackUrl`. Must be either `GET` or `POST`. Defaults to
|
|
179
|
+
# `POST`.
|
|
180
|
+
# @param [String] sms_fallback_url A URL that Twilio will request if an error
|
|
181
|
+
# occurs requesting or executing the TwiML defined by `SmsUrl`.
|
|
182
|
+
# @param [String] sms_method The HTTP method that should be used to request the
|
|
183
|
+
# `SmsUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
|
|
184
|
+
# @param [String] sms_url The URL that Twilio should request when somebody sends
|
|
185
|
+
# an SMS to the phone number.
|
|
186
|
+
# @param [String] status_callback The URL that Twilio will request to pass status
|
|
187
|
+
# parameters (such as call ended) to your application.
|
|
188
|
+
# @param [String] status_callback_method The HTTP method Twilio will use to make
|
|
189
|
+
# requests to the `StatusCallback` URL. Either `GET` or `POST`. Defaults to
|
|
190
|
+
# `POST`.
|
|
191
|
+
# @param [String] voice_application_sid The 34 character sid of the application
|
|
192
|
+
# Twilio should use to handle phone calls to the new number. If a
|
|
193
|
+
# `VoiceApplicationSid` is present, Twilio will ignore all of the voice urls above
|
|
194
|
+
# and use those set on the application. Setting a `VoiceApplicationSid` will
|
|
195
|
+
# automatically delete your `TrunkSid` and vice versa.
|
|
196
|
+
# @param [Boolean] voice_caller_id_lookup Do a lookup of a caller's name from the
|
|
197
|
+
# CNAM database and post it to your app. Either `true` or `false`. Defaults to
|
|
198
|
+
# `false`.
|
|
199
|
+
# @param [String] voice_fallback_method The HTTP method that should be used to
|
|
200
|
+
# request the `VoiceFallbackUrl`. Either `GET` or `POST`. Defaults to `POST`.
|
|
201
|
+
# @param [String] voice_fallback_url A URL that Twilio will request if an error
|
|
202
|
+
# occurs requesting or executing the TwiML at `Url`.
|
|
203
|
+
# @param [String] voice_method The HTTP method that should be used to request the
|
|
204
|
+
# `VoiceUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
|
|
205
|
+
# @param [String] voice_url The URL that Twilio should request when somebody dials
|
|
206
|
+
# the new phone number. The VoiceURL will no longer be used if a
|
|
207
|
+
# `VoiceApplicationSid` or a `TrunkSid` is set.
|
|
158
208
|
# @param [String] identity_sid The identity_sid
|
|
159
|
-
# @param [String] address_sid The
|
|
209
|
+
# @param [String] address_sid The 34 character sid of the address Twilio should
|
|
210
|
+
# associate with the number.
|
|
160
211
|
# @return [LocalInstance] Newly created LocalInstance
|
|
161
212
|
def create(phone_number: nil, api_version: :unset, friendly_name: :unset, sms_application_sid: :unset, sms_fallback_method: :unset, sms_fallback_url: :unset, sms_method: :unset, sms_url: :unset, status_callback: :unset, status_callback_method: :unset, voice_application_sid: :unset, voice_caller_id_lookup: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_url: :unset, identity_sid: :unset, address_sid: :unset)
|
|
162
213
|
data = Twilio::Values.of({
|
|
@@ -230,7 +281,8 @@ module Twilio
|
|
|
230
281
|
# Initialize the LocalInstance
|
|
231
282
|
# @param [Version] version Version that contains the resource
|
|
232
283
|
# @param [Hash] payload payload that contains response from Twilio
|
|
233
|
-
# @param [String] account_sid The unique id of the
|
|
284
|
+
# @param [String] account_sid The unique id of the
|
|
285
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) responsible for this
|
|
234
286
|
# phone number.
|
|
235
287
|
# @return [LocalInstance] LocalInstance
|
|
236
288
|
def initialize(version, payload, account_sid: nil)
|
|
@@ -270,55 +322,55 @@ module Twilio
|
|
|
270
322
|
end
|
|
271
323
|
|
|
272
324
|
##
|
|
273
|
-
# @return [String] The
|
|
325
|
+
# @return [String] The unique id of the Account responsible for this phone number.
|
|
274
326
|
def account_sid
|
|
275
327
|
@properties['account_sid']
|
|
276
328
|
end
|
|
277
329
|
|
|
278
330
|
##
|
|
279
|
-
# @return [String] The
|
|
331
|
+
# @return [String] The 34 character sid of the address associated with this number.
|
|
280
332
|
def address_sid
|
|
281
333
|
@properties['address_sid']
|
|
282
334
|
end
|
|
283
335
|
|
|
284
336
|
##
|
|
285
|
-
# @return [local.AddressRequirement]
|
|
337
|
+
# @return [local.AddressRequirement] This indicates whether the phone number requires you or your customer to have an Address registered with Twilio.
|
|
286
338
|
def address_requirements
|
|
287
339
|
@properties['address_requirements']
|
|
288
340
|
end
|
|
289
341
|
|
|
290
342
|
##
|
|
291
|
-
# @return [String]
|
|
343
|
+
# @return [String] Calls to this phone number will start a new TwiML session with this API version.
|
|
292
344
|
def api_version
|
|
293
345
|
@properties['api_version']
|
|
294
346
|
end
|
|
295
347
|
|
|
296
348
|
##
|
|
297
|
-
# @return [Boolean]
|
|
349
|
+
# @return [Boolean] Phone numbers new to the Twilio platform are marked as beta.
|
|
298
350
|
def beta
|
|
299
351
|
@properties['beta']
|
|
300
352
|
end
|
|
301
353
|
|
|
302
354
|
##
|
|
303
|
-
# @return [String]
|
|
355
|
+
# @return [String] This is a set of boolean properties that indicate whether a phone number can receive calls or messages.
|
|
304
356
|
def capabilities
|
|
305
357
|
@properties['capabilities']
|
|
306
358
|
end
|
|
307
359
|
|
|
308
360
|
##
|
|
309
|
-
# @return [Time] The
|
|
361
|
+
# @return [Time] The date that this resource was created, given as GMT RFC 2822 format.
|
|
310
362
|
def date_created
|
|
311
363
|
@properties['date_created']
|
|
312
364
|
end
|
|
313
365
|
|
|
314
366
|
##
|
|
315
|
-
# @return [Time] The
|
|
367
|
+
# @return [Time] The date that this resource was last updated, given as GMT RFC 2822 format.
|
|
316
368
|
def date_updated
|
|
317
369
|
@properties['date_updated']
|
|
318
370
|
end
|
|
319
371
|
|
|
320
372
|
##
|
|
321
|
-
# @return [String]
|
|
373
|
+
# @return [String] A human readable descriptive text for this resource, up to 64 characters long.
|
|
322
374
|
def friendly_name
|
|
323
375
|
@properties['friendly_name']
|
|
324
376
|
end
|
|
@@ -330,109 +382,109 @@ module Twilio
|
|
|
330
382
|
end
|
|
331
383
|
|
|
332
384
|
##
|
|
333
|
-
# @return [String] The
|
|
385
|
+
# @return [String] The incoming phone number.
|
|
334
386
|
def phone_number
|
|
335
387
|
@properties['phone_number']
|
|
336
388
|
end
|
|
337
389
|
|
|
338
390
|
##
|
|
339
|
-
# @return [String]
|
|
391
|
+
# @return [String] Twilio owned phone numbers are marked as twilio while hosted phone numbers are marked as hosted.
|
|
340
392
|
def origin
|
|
341
393
|
@properties['origin']
|
|
342
394
|
end
|
|
343
395
|
|
|
344
396
|
##
|
|
345
|
-
# @return [String]
|
|
397
|
+
# @return [String] A 34 character string that uniquely identifies this resource.
|
|
346
398
|
def sid
|
|
347
399
|
@properties['sid']
|
|
348
400
|
end
|
|
349
401
|
|
|
350
402
|
##
|
|
351
|
-
# @return [String] The
|
|
403
|
+
# @return [String] The 34 character sid of the application Twilio should use to handle SMSs sent to this number.
|
|
352
404
|
def sms_application_sid
|
|
353
405
|
@properties['sms_application_sid']
|
|
354
406
|
end
|
|
355
407
|
|
|
356
408
|
##
|
|
357
|
-
# @return [String] The
|
|
409
|
+
# @return [String] The HTTP method Twilio will use when requesting the above URL.
|
|
358
410
|
def sms_fallback_method
|
|
359
411
|
@properties['sms_fallback_method']
|
|
360
412
|
end
|
|
361
413
|
|
|
362
414
|
##
|
|
363
|
-
# @return [String] The
|
|
415
|
+
# @return [String] The URL that Twilio will request if an error occurs retrieving or executing the TwiML from SmsUrl.
|
|
364
416
|
def sms_fallback_url
|
|
365
417
|
@properties['sms_fallback_url']
|
|
366
418
|
end
|
|
367
419
|
|
|
368
420
|
##
|
|
369
|
-
# @return [String] The
|
|
421
|
+
# @return [String] The HTTP method Twilio will use when making requests to the SmsUrl.
|
|
370
422
|
def sms_method
|
|
371
423
|
@properties['sms_method']
|
|
372
424
|
end
|
|
373
425
|
|
|
374
426
|
##
|
|
375
|
-
# @return [String] The
|
|
427
|
+
# @return [String] The URL Twilio will request when receiving an incoming SMS message to this number.
|
|
376
428
|
def sms_url
|
|
377
429
|
@properties['sms_url']
|
|
378
430
|
end
|
|
379
431
|
|
|
380
432
|
##
|
|
381
|
-
# @return [String] The
|
|
433
|
+
# @return [String] The URL that Twilio will request to pass status parameters to your application.
|
|
382
434
|
def status_callback
|
|
383
435
|
@properties['status_callback']
|
|
384
436
|
end
|
|
385
437
|
|
|
386
438
|
##
|
|
387
|
-
# @return [String] The
|
|
439
|
+
# @return [String] The HTTP method Twilio will use to make requests to the StatusCallback URL.
|
|
388
440
|
def status_callback_method
|
|
389
441
|
@properties['status_callback_method']
|
|
390
442
|
end
|
|
391
443
|
|
|
392
444
|
##
|
|
393
|
-
# @return [String] The
|
|
445
|
+
# @return [String] The 34 character sid of the Trunk Twilio should use to handle phone calls to this number.
|
|
394
446
|
def trunk_sid
|
|
395
447
|
@properties['trunk_sid']
|
|
396
448
|
end
|
|
397
449
|
|
|
398
450
|
##
|
|
399
|
-
# @return [String] The
|
|
451
|
+
# @return [String] The URI for this resource, relative to https://api.
|
|
400
452
|
def uri
|
|
401
453
|
@properties['uri']
|
|
402
454
|
end
|
|
403
455
|
|
|
404
456
|
##
|
|
405
|
-
# @return [String] The
|
|
457
|
+
# @return [String] The 34 character sid of the application Twilio should use to handle phone calls to this number.
|
|
406
458
|
def voice_application_sid
|
|
407
459
|
@properties['voice_application_sid']
|
|
408
460
|
end
|
|
409
461
|
|
|
410
462
|
##
|
|
411
|
-
# @return [Boolean]
|
|
463
|
+
# @return [Boolean] Look up the caller's caller-ID name from the CNAM database.
|
|
412
464
|
def voice_caller_id_lookup
|
|
413
465
|
@properties['voice_caller_id_lookup']
|
|
414
466
|
end
|
|
415
467
|
|
|
416
468
|
##
|
|
417
|
-
# @return [String] The
|
|
469
|
+
# @return [String] The HTTP method Twilio will use when requesting the VoiceFallbackUrl.
|
|
418
470
|
def voice_fallback_method
|
|
419
471
|
@properties['voice_fallback_method']
|
|
420
472
|
end
|
|
421
473
|
|
|
422
474
|
##
|
|
423
|
-
# @return [String] The
|
|
475
|
+
# @return [String] The URL that Twilio will request if an error occurs retrieving or executing the TwiML requested by Url.
|
|
424
476
|
def voice_fallback_url
|
|
425
477
|
@properties['voice_fallback_url']
|
|
426
478
|
end
|
|
427
479
|
|
|
428
480
|
##
|
|
429
|
-
# @return [String] The
|
|
481
|
+
# @return [String] The HTTP method Twilio will use when requesting the above Url.
|
|
430
482
|
def voice_method
|
|
431
483
|
@properties['voice_method']
|
|
432
484
|
end
|
|
433
485
|
|
|
434
486
|
##
|
|
435
|
-
# @return [String] The
|
|
487
|
+
# @return [String] The URL Twilio will request when this phone number receives a call.
|
|
436
488
|
def voice_url
|
|
437
489
|
@properties['voice_url']
|
|
438
490
|
end
|