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
|
|
@@ -13,7 +15,8 @@ module Twilio
|
|
|
13
15
|
##
|
|
14
16
|
# Initialize the IncomingPhoneNumberList
|
|
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/iam/api/account) responsible for this
|
|
17
20
|
# phone number.
|
|
18
21
|
# @return [IncomingPhoneNumberList] IncomingPhoneNumberList
|
|
19
22
|
def initialize(version, account_sid: nil)
|
|
@@ -33,12 +36,16 @@ module Twilio
|
|
|
33
36
|
# Lists IncomingPhoneNumberInstance records from the API as a list.
|
|
34
37
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
35
38
|
# memory before returning.
|
|
36
|
-
# @param [Boolean] beta Include phone numbers new to the Twilio platform
|
|
39
|
+
# @param [Boolean] beta Include phone numbers new to the Twilio platform. Possible
|
|
40
|
+
# values are either `true` or `false`. Default is `true`.
|
|
37
41
|
# @param [String] friendly_name Only show the incoming phone number resources with
|
|
38
|
-
# friendly names that exactly match this name
|
|
42
|
+
# friendly names that exactly match this name.
|
|
39
43
|
# @param [String] phone_number Only show the incoming phone number resources that
|
|
40
|
-
# match this pattern
|
|
41
|
-
#
|
|
44
|
+
# match this pattern. You can specify partial numbers and use '*' as a wildcard
|
|
45
|
+
# for any digit.
|
|
46
|
+
# @param [String] origin Include phone numbers based on the origin, by default,
|
|
47
|
+
# phone numbers of all origin are included. Possible values are either `twilio` or
|
|
48
|
+
# `hosted`.
|
|
42
49
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
43
50
|
# guarantees to never return more than limit. Default is no limit
|
|
44
51
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -61,12 +68,16 @@ module Twilio
|
|
|
61
68
|
# Streams IncomingPhoneNumberInstance records from the API as an Enumerable.
|
|
62
69
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
63
70
|
# is reached.
|
|
64
|
-
# @param [Boolean] beta Include phone numbers new to the Twilio platform
|
|
71
|
+
# @param [Boolean] beta Include phone numbers new to the Twilio platform. Possible
|
|
72
|
+
# values are either `true` or `false`. Default is `true`.
|
|
65
73
|
# @param [String] friendly_name Only show the incoming phone number resources with
|
|
66
|
-
# friendly names that exactly match this name
|
|
74
|
+
# friendly names that exactly match this name.
|
|
67
75
|
# @param [String] phone_number Only show the incoming phone number resources that
|
|
68
|
-
# match this pattern
|
|
69
|
-
#
|
|
76
|
+
# match this pattern. You can specify partial numbers and use '*' as a wildcard
|
|
77
|
+
# for any digit.
|
|
78
|
+
# @param [String] origin Include phone numbers based on the origin, by default,
|
|
79
|
+
# phone numbers of all origin are included. Possible values are either `twilio` or
|
|
80
|
+
# `hosted`.
|
|
70
81
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
71
82
|
# guarantees to never return more than limit. Default is no limit.
|
|
72
83
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -105,12 +116,16 @@ module Twilio
|
|
|
105
116
|
##
|
|
106
117
|
# Retrieve a single page of IncomingPhoneNumberInstance records from the API.
|
|
107
118
|
# Request is executed immediately.
|
|
108
|
-
# @param [Boolean] beta Include phone numbers new to the Twilio platform
|
|
119
|
+
# @param [Boolean] beta Include phone numbers new to the Twilio platform. Possible
|
|
120
|
+
# values are either `true` or `false`. Default is `true`.
|
|
109
121
|
# @param [String] friendly_name Only show the incoming phone number resources with
|
|
110
|
-
# friendly names that exactly match this name
|
|
122
|
+
# friendly names that exactly match this name.
|
|
111
123
|
# @param [String] phone_number Only show the incoming phone number resources that
|
|
112
|
-
# match this pattern
|
|
113
|
-
#
|
|
124
|
+
# match this pattern. You can specify partial numbers and use '*' as a wildcard
|
|
125
|
+
# for any digit.
|
|
126
|
+
# @param [String] origin Include phone numbers based on the origin, by default,
|
|
127
|
+
# phone numbers of all origin are included. Possible values are either `twilio` or
|
|
128
|
+
# `hosted`.
|
|
114
129
|
# @param [String] page_token PageToken provided by the API
|
|
115
130
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
116
131
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -149,43 +164,46 @@ module Twilio
|
|
|
149
164
|
##
|
|
150
165
|
# Retrieve a single page of IncomingPhoneNumberInstance records from the API.
|
|
151
166
|
# Request is executed immediately.
|
|
152
|
-
# @param [String] api_version
|
|
153
|
-
#
|
|
167
|
+
# @param [String] api_version The Twilio REST API version to use for incoming
|
|
168
|
+
# calls made to this number. If omitted, uses `2010-04-01`.
|
|
154
169
|
# @param [String] friendly_name A human readable descriptive text for this
|
|
155
170
|
# resource, up to 64 characters long. By default, the `FriendlyName` is a nicely
|
|
156
171
|
# formatted version of the phone number.
|
|
157
172
|
# @param [String] sms_application_sid The 34 character sid of the application
|
|
158
|
-
# Twilio should use to handle SMSs sent to
|
|
159
|
-
# is present, Twilio will ignore all of the SMS urls above and
|
|
160
|
-
# the application.
|
|
161
|
-
# @param [String] sms_fallback_method The HTTP method
|
|
162
|
-
#
|
|
163
|
-
#
|
|
164
|
-
#
|
|
165
|
-
#
|
|
166
|
-
#
|
|
173
|
+
# Twilio should use to handle SMSs sent to the new number. If a
|
|
174
|
+
# `SmsApplicationSid` is present, Twilio will ignore all of the SMS urls above and
|
|
175
|
+
# use those set on the application.
|
|
176
|
+
# @param [String] sms_fallback_method The HTTP method that should be used to
|
|
177
|
+
# request the `SmsFallbackUrl`. Must be either `GET` or `POST`. Defaults to
|
|
178
|
+
# `POST`.
|
|
179
|
+
# @param [String] sms_fallback_url A URL that Twilio will request if an error
|
|
180
|
+
# occurs requesting or executing the TwiML defined by `SmsUrl`.
|
|
181
|
+
# @param [String] sms_method The HTTP method that should be used to request the
|
|
182
|
+
# `SmsUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
|
|
167
183
|
# @param [String] sms_url The URL Twilio will request when receiving an incoming
|
|
168
184
|
# SMS message to this number.
|
|
169
185
|
# @param [String] status_callback The URL that Twilio will request to pass status
|
|
170
186
|
# parameters (such as call ended) to your application.
|
|
171
187
|
# @param [String] status_callback_method The HTTP method Twilio will use to make
|
|
172
|
-
# requests to the `StatusCallback` URL. Either `GET` or `POST`.
|
|
188
|
+
# requests to the `StatusCallback` URL. Either `GET` or `POST`. Defaults to
|
|
189
|
+
# `POST`.
|
|
173
190
|
# @param [String] voice_application_sid The 34 character sid of the application
|
|
174
|
-
# Twilio should use to handle phone calls to
|
|
191
|
+
# Twilio should use to handle phone calls to the new number. If a
|
|
175
192
|
# `VoiceApplicationSid` is present, Twilio will ignore all of the voice urls above
|
|
176
193
|
# and use those set on the application. Setting a `VoiceApplicationSid` will
|
|
177
194
|
# automatically delete your `TrunkSid` and vice versa.
|
|
178
|
-
# @param [Boolean] voice_caller_id_lookup
|
|
179
|
-
#
|
|
180
|
-
#
|
|
181
|
-
#
|
|
195
|
+
# @param [Boolean] voice_caller_id_lookup Do a lookup of a caller's name from the
|
|
196
|
+
# CNAM database and post it to your app. Either `true` or `false`. Defaults to
|
|
197
|
+
# `false`.
|
|
198
|
+
# @param [String] voice_fallback_method The HTTP method that should be used to
|
|
199
|
+
# request the `VoiceFallbackUrl`. Either `GET` or `POST`. Defaults to `POST`.
|
|
182
200
|
# @param [String] voice_fallback_url The URL that Twilio will request if an error
|
|
183
201
|
# occurs retrieving or executing the TwiML requested by `Url`.
|
|
184
|
-
# @param [String] voice_method The HTTP method
|
|
185
|
-
#
|
|
186
|
-
# @param [String] voice_url The URL Twilio
|
|
187
|
-
#
|
|
188
|
-
# or a `TrunkSid` is set.
|
|
202
|
+
# @param [String] voice_method The HTTP method that should be used to request the
|
|
203
|
+
# `VoiceUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
|
|
204
|
+
# @param [String] voice_url The URL that Twilio should request when somebody dials
|
|
205
|
+
# the new phone number. The VoiceURL will no longer be used if a
|
|
206
|
+
# `VoiceApplicationSid` or a `TrunkSid` is set.
|
|
189
207
|
# @param [incoming_phone_number.EmergencyStatus] emergency_status The
|
|
190
208
|
# emergency_status
|
|
191
209
|
# @param [String] emergency_address_sid The emergency_address_sid
|
|
@@ -200,10 +218,16 @@ module Twilio
|
|
|
200
218
|
# @param [String] address_sid The 34 character sid of the address Twilio should
|
|
201
219
|
# use to associate with the number. Addresses are required in some regions to meet
|
|
202
220
|
# local regulations
|
|
203
|
-
# @param [String] phone_number The phone number to purchase.
|
|
204
|
-
#
|
|
205
|
-
#
|
|
206
|
-
#
|
|
221
|
+
# @param [String] phone_number The phone number you want to purchase. The number
|
|
222
|
+
# should be formatted starting with a '+' followed by the country code and the
|
|
223
|
+
# number in [E.164](http://en.wikipedia.org/wiki/E.164) format e.g.,
|
|
224
|
+
# '+15105555555'. **You must include either this or an `AreaCode` parameter to
|
|
225
|
+
# have your POST succeed.**
|
|
226
|
+
# @param [String] area_code The desired area code for your new incoming phone
|
|
227
|
+
# number. Any three digit, US or Canada area code is valid. Twilio will provision
|
|
228
|
+
# a random phone number within this area code for you. **You must include either
|
|
229
|
+
# this or a `PhoneNumber` parameter to have your POST succeed.** (US and Canada
|
|
230
|
+
# only)
|
|
207
231
|
# @return [IncomingPhoneNumberInstance] Newly created IncomingPhoneNumberInstance
|
|
208
232
|
def create(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, emergency_status: :unset, emergency_address_sid: :unset, trunk_sid: :unset, identity_sid: :unset, address_sid: :unset, phone_number: :unset, area_code: :unset)
|
|
209
233
|
data = Twilio::Values.of({
|
|
@@ -321,25 +345,26 @@ module Twilio
|
|
|
321
345
|
|
|
322
346
|
##
|
|
323
347
|
# Update the IncomingPhoneNumberInstance
|
|
324
|
-
# @param [String] account_sid The unique id of the
|
|
325
|
-
# transfer this phone number
|
|
348
|
+
# @param [String] account_sid The unique 34 character id of the account to which
|
|
349
|
+
# you wish to transfer this phone number. See [Exchanging Numbers Between
|
|
350
|
+
# Subaccounts](https://www.twilio.com/docs/iam/api/subaccounts#exchanging-numbers).
|
|
326
351
|
# @param [String] api_version Calls to this phone number will start a new TwiML
|
|
327
|
-
# session with this API version.
|
|
352
|
+
# session with this API version. Either `2010-04-01` or `2008-08-01`.
|
|
328
353
|
# @param [String] friendly_name A human readable descriptive text for this
|
|
329
354
|
# resource, up to 64 characters long. By default, the `FriendlyName` is a nicely
|
|
330
355
|
# formatted version of the phone number.
|
|
331
356
|
# @param [String] sms_application_sid The 34 character sid of the application
|
|
332
357
|
# Twilio should use to handle SMSs sent to this number. If a `SmsApplicationSid`
|
|
333
358
|
# is present, Twilio will ignore all of the SMS urls above and use those set on
|
|
334
|
-
# the application.
|
|
335
|
-
# @param [String] sms_fallback_method The HTTP method
|
|
336
|
-
#
|
|
337
|
-
# @param [String] sms_fallback_url
|
|
338
|
-
# occurs
|
|
359
|
+
# the application instead.
|
|
360
|
+
# @param [String] sms_fallback_method The HTTP method that should be used to
|
|
361
|
+
# request the `SmsFallbackUrl`. Either `GET` or `POST`.
|
|
362
|
+
# @param [String] sms_fallback_url A URL that Twilio will request if an error
|
|
363
|
+
# occurs requesting or executing the TwiML defined by `SmsUrl`.
|
|
339
364
|
# @param [String] sms_method The HTTP method Twilio will use when making requests
|
|
340
365
|
# to the `SmsUrl`. Either `GET` or `POST`.
|
|
341
|
-
# @param [String] sms_url The URL Twilio
|
|
342
|
-
# SMS
|
|
366
|
+
# @param [String] sms_url The URL that Twilio should request when somebody sends
|
|
367
|
+
# an SMS to the new phone number.
|
|
343
368
|
# @param [String] status_callback The URL that Twilio will request to pass status
|
|
344
369
|
# parameters (such as call ended) to your application.
|
|
345
370
|
# @param [String] status_callback_method The HTTP method Twilio will use to make
|
|
@@ -347,19 +372,19 @@ module Twilio
|
|
|
347
372
|
# @param [String] voice_application_sid The 34 character sid of the application
|
|
348
373
|
# Twilio should use to handle phone calls to this number. If a
|
|
349
374
|
# `VoiceApplicationSid` is present, Twilio will ignore all of the voice urls above
|
|
350
|
-
# and use those set on the application. Setting a `VoiceApplicationSid`
|
|
351
|
-
# automatically delete your `TrunkSid` and vice versa.
|
|
375
|
+
# and use those set on the application instead. Setting a `VoiceApplicationSid`
|
|
376
|
+
# will automatically delete your `TrunkSid` and vice versa.
|
|
352
377
|
# @param [Boolean] voice_caller_id_lookup Look up the caller's caller-ID name from
|
|
353
378
|
# the CNAM database ($0.01 per look up). Either `true` or `false`.
|
|
354
379
|
# @param [String] voice_fallback_method The HTTP method Twilio will use when
|
|
355
380
|
# requesting the `VoiceFallbackUrl`. Either `GET` or `POST`.
|
|
356
|
-
# @param [String] voice_fallback_url
|
|
357
|
-
# occurs
|
|
381
|
+
# @param [String] voice_fallback_url A URL that Twilio will request if an error
|
|
382
|
+
# occurs requesting or executing the TwiML defined by `VoiceUrl`.
|
|
358
383
|
# @param [String] voice_method The HTTP method Twilio will use when requesting the
|
|
359
384
|
# above `Url`. Either `GET` or `POST`.
|
|
360
|
-
# @param [String] voice_url The URL Twilio
|
|
361
|
-
#
|
|
362
|
-
# or a `TrunkSid` is set.
|
|
385
|
+
# @param [String] voice_url The URL that Twilio should request when somebody dials
|
|
386
|
+
# the phone number. The VoiceURL will no longer be used if a
|
|
387
|
+
# `VoiceApplicationSid` or a `TrunkSid` is set.
|
|
363
388
|
# @param [incoming_phone_number.EmergencyStatus] emergency_status The
|
|
364
389
|
# emergency_status
|
|
365
390
|
# @param [String] emergency_address_sid The emergency_address_sid
|
|
@@ -374,8 +399,8 @@ module Twilio
|
|
|
374
399
|
# use to associate with the number. Identities are required in some regions to
|
|
375
400
|
# meet local regulations
|
|
376
401
|
# @param [String] address_sid The 34 character sid of the address Twilio should
|
|
377
|
-
#
|
|
378
|
-
#
|
|
402
|
+
# associate with the number. If the number has address restrictions, only another
|
|
403
|
+
# address that satisfies the requirement can replace the existing one.
|
|
379
404
|
# @return [IncomingPhoneNumberInstance] Updated IncomingPhoneNumberInstance
|
|
380
405
|
def update(account_sid: :unset, 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, emergency_status: :unset, emergency_address_sid: :unset, trunk_sid: :unset, voice_receive_mode: :unset, identity_sid: :unset, address_sid: :unset)
|
|
381
406
|
data = Twilio::Values.of({
|
|
@@ -479,7 +504,8 @@ module Twilio
|
|
|
479
504
|
# Initialize the IncomingPhoneNumberInstance
|
|
480
505
|
# @param [Version] version Version that contains the resource
|
|
481
506
|
# @param [Hash] payload payload that contains response from Twilio
|
|
482
|
-
# @param [String] account_sid The unique id of the
|
|
507
|
+
# @param [String] account_sid The unique id of the
|
|
508
|
+
# [Account](https://www.twilio.com/docs/iam/api/account) responsible for this
|
|
483
509
|
# phone number.
|
|
484
510
|
# @param [String] sid The incoming-phone-number Sid that uniquely identifies this
|
|
485
511
|
# resource
|
|
@@ -604,7 +630,7 @@ module Twilio
|
|
|
604
630
|
end
|
|
605
631
|
|
|
606
632
|
##
|
|
607
|
-
# @return [String]
|
|
633
|
+
# @return [String] Twilio owned phone numbers are marked as twilio while hosted phone numbers are marked as hosted.
|
|
608
634
|
def origin
|
|
609
635
|
@properties['origin']
|
|
610
636
|
end
|
|
@@ -719,25 +745,26 @@ module Twilio
|
|
|
719
745
|
|
|
720
746
|
##
|
|
721
747
|
# Update the IncomingPhoneNumberInstance
|
|
722
|
-
# @param [String] account_sid The unique id of the
|
|
723
|
-
# transfer this phone number
|
|
748
|
+
# @param [String] account_sid The unique 34 character id of the account to which
|
|
749
|
+
# you wish to transfer this phone number. See [Exchanging Numbers Between
|
|
750
|
+
# Subaccounts](https://www.twilio.com/docs/iam/api/subaccounts#exchanging-numbers).
|
|
724
751
|
# @param [String] api_version Calls to this phone number will start a new TwiML
|
|
725
|
-
# session with this API version.
|
|
752
|
+
# session with this API version. Either `2010-04-01` or `2008-08-01`.
|
|
726
753
|
# @param [String] friendly_name A human readable descriptive text for this
|
|
727
754
|
# resource, up to 64 characters long. By default, the `FriendlyName` is a nicely
|
|
728
755
|
# formatted version of the phone number.
|
|
729
756
|
# @param [String] sms_application_sid The 34 character sid of the application
|
|
730
757
|
# Twilio should use to handle SMSs sent to this number. If a `SmsApplicationSid`
|
|
731
758
|
# is present, Twilio will ignore all of the SMS urls above and use those set on
|
|
732
|
-
# the application.
|
|
733
|
-
# @param [String] sms_fallback_method The HTTP method
|
|
734
|
-
#
|
|
735
|
-
# @param [String] sms_fallback_url
|
|
736
|
-
# occurs
|
|
759
|
+
# the application instead.
|
|
760
|
+
# @param [String] sms_fallback_method The HTTP method that should be used to
|
|
761
|
+
# request the `SmsFallbackUrl`. Either `GET` or `POST`.
|
|
762
|
+
# @param [String] sms_fallback_url A URL that Twilio will request if an error
|
|
763
|
+
# occurs requesting or executing the TwiML defined by `SmsUrl`.
|
|
737
764
|
# @param [String] sms_method The HTTP method Twilio will use when making requests
|
|
738
765
|
# to the `SmsUrl`. Either `GET` or `POST`.
|
|
739
|
-
# @param [String] sms_url The URL Twilio
|
|
740
|
-
# SMS
|
|
766
|
+
# @param [String] sms_url The URL that Twilio should request when somebody sends
|
|
767
|
+
# an SMS to the new phone number.
|
|
741
768
|
# @param [String] status_callback The URL that Twilio will request to pass status
|
|
742
769
|
# parameters (such as call ended) to your application.
|
|
743
770
|
# @param [String] status_callback_method The HTTP method Twilio will use to make
|
|
@@ -745,19 +772,19 @@ module Twilio
|
|
|
745
772
|
# @param [String] voice_application_sid The 34 character sid of the application
|
|
746
773
|
# Twilio should use to handle phone calls to this number. If a
|
|
747
774
|
# `VoiceApplicationSid` is present, Twilio will ignore all of the voice urls above
|
|
748
|
-
# and use those set on the application. Setting a `VoiceApplicationSid`
|
|
749
|
-
# automatically delete your `TrunkSid` and vice versa.
|
|
775
|
+
# and use those set on the application instead. Setting a `VoiceApplicationSid`
|
|
776
|
+
# will automatically delete your `TrunkSid` and vice versa.
|
|
750
777
|
# @param [Boolean] voice_caller_id_lookup Look up the caller's caller-ID name from
|
|
751
778
|
# the CNAM database ($0.01 per look up). Either `true` or `false`.
|
|
752
779
|
# @param [String] voice_fallback_method The HTTP method Twilio will use when
|
|
753
780
|
# requesting the `VoiceFallbackUrl`. Either `GET` or `POST`.
|
|
754
|
-
# @param [String] voice_fallback_url
|
|
755
|
-
# occurs
|
|
781
|
+
# @param [String] voice_fallback_url A URL that Twilio will request if an error
|
|
782
|
+
# occurs requesting or executing the TwiML defined by `VoiceUrl`.
|
|
756
783
|
# @param [String] voice_method The HTTP method Twilio will use when requesting the
|
|
757
784
|
# above `Url`. Either `GET` or `POST`.
|
|
758
|
-
# @param [String] voice_url The URL Twilio
|
|
759
|
-
#
|
|
760
|
-
# or a `TrunkSid` is set.
|
|
785
|
+
# @param [String] voice_url The URL that Twilio should request when somebody dials
|
|
786
|
+
# the phone number. The VoiceURL will no longer be used if a
|
|
787
|
+
# `VoiceApplicationSid` or a `TrunkSid` is set.
|
|
761
788
|
# @param [incoming_phone_number.EmergencyStatus] emergency_status The
|
|
762
789
|
# emergency_status
|
|
763
790
|
# @param [String] emergency_address_sid The emergency_address_sid
|
|
@@ -772,8 +799,8 @@ module Twilio
|
|
|
772
799
|
# use to associate with the number. Identities are required in some regions to
|
|
773
800
|
# meet local regulations
|
|
774
801
|
# @param [String] address_sid The 34 character sid of the address Twilio should
|
|
775
|
-
#
|
|
776
|
-
#
|
|
802
|
+
# associate with the number. If the number has address restrictions, only another
|
|
803
|
+
# address that satisfies the requirement can replace the existing one.
|
|
777
804
|
# @return [IncomingPhoneNumberInstance] Updated IncomingPhoneNumberInstance
|
|
778
805
|
def update(account_sid: :unset, 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, emergency_status: :unset, emergency_address_sid: :unset, trunk_sid: :unset, voice_receive_mode: :unset, identity_sid: :unset, address_sid: :unset)
|
|
779
806
|
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 MediaList
|
|
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) responsible for this
|
|
18
21
|
# media.
|
|
19
22
|
# @param [String] message_sid A 34 character string that uniquely identifies this
|
|
20
23
|
# resource.
|
|
@@ -230,7 +233,8 @@ module Twilio
|
|
|
230
233
|
# Initialize the MediaInstance
|
|
231
234
|
# @param [Version] version Version that contains the resource
|
|
232
235
|
# @param [Hash] payload payload that contains response from Twilio
|
|
233
|
-
# @param [String] account_sid The unique id of the
|
|
236
|
+
# @param [String] account_sid The unique id of the
|
|
237
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
|
|
234
238
|
# media.
|
|
235
239
|
# @param [String] message_sid A 34 character string that uniquely identifies this
|
|
236
240
|
# resource.
|
|
@@ -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 MessageList
|
|
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 sent this message.
|
|
17
20
|
# @return [MessageList] MessageList
|
|
18
21
|
def initialize(version, account_sid: nil)
|
|
19
22
|
super(version)
|
|
@@ -26,27 +29,66 @@ module Twilio
|
|
|
26
29
|
##
|
|
27
30
|
# Retrieve a single page of MessageInstance records from the API.
|
|
28
31
|
# Request is executed immediately.
|
|
29
|
-
# @param [String] to The destination phone number
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
# @param [String]
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
-
# @param [String]
|
|
32
|
+
# @param [String] to The destination phone number for SMS/MMS or a [Channel user
|
|
33
|
+
# address](https://www.twilio.com/docs/api/channels#channel-addresses) for other
|
|
34
|
+
# 3rd party channels. Destination phone numbers should be formatted with a '+' and
|
|
35
|
+
# country code e.g., +16175551212.
|
|
36
|
+
# @param [String] status_callback A URL where Twilio will POST each time your
|
|
37
|
+
# message status changes to one of the following: `queued`, `failed`, `sent`,
|
|
38
|
+
# `delivered`, or `undelivered`. Twilio will POST the `MessageSid` along with the
|
|
39
|
+
# other [standard request
|
|
40
|
+
# parameters](https://www.twilio.com/docs/api/twiml/sms/twilio_request#request-parameters) as well as `MessageStatus` and `ErrorCode`. If this parameter passed in addition to a `MessagingServiceSid`, Twilio will override the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/api/messaging/send-messages#messaging-services). URLs must contain a valid hostname (underscores are not allowed).
|
|
41
|
+
# @param [String] application_sid Twilio will POST `MessageSid` as well as
|
|
42
|
+
# `MessageStatus=sent` or `MessageStatus=failed` to the URL in the
|
|
43
|
+
# `MessageStatusCallback` property of this
|
|
44
|
+
# [Application](https://www.twilio.com/docs/api/rest/applications). If the
|
|
45
|
+
# `StatusCallback` parameter above is also passed, the Application's
|
|
46
|
+
# `MessageStatusCallback` parameter will take precedence.
|
|
47
|
+
# @param [String] max_price The total maximum price up to the fourth decimal
|
|
48
|
+
# (0.0001) in US dollars acceptable for the message to be delivered. All messages
|
|
49
|
+
# regardless of the price point will be queued for delivery. A POST request will
|
|
50
|
+
# later be made to your Status Callback URL with a status change of 'Sent' or
|
|
51
|
+
# 'Failed'. When the price of the message is above this value the message will
|
|
52
|
+
# fail and not be sent. When MaxPrice is not set, all prices for the message is
|
|
53
|
+
# accepted.
|
|
54
|
+
# @param [Boolean] provide_feedback Set this value to `true` if you are sending
|
|
55
|
+
# messages that have a trackable user action and you intend to confirm delivery of
|
|
56
|
+
# the message using the [Message Feedback
|
|
57
|
+
# API](https://www.twilio.com/docs/api/messaging/message-feedback). This parameter
|
|
58
|
+
# is set to `false` by default.
|
|
59
|
+
# @param [String] validity_period The number of seconds that the message can
|
|
60
|
+
# remain in a Twilio queue. After exceeding this time limit, the message will fail
|
|
61
|
+
# and a POST request will later be made to your Status Callback URL. Valid values
|
|
62
|
+
# are between 1 and 14400 seconds (the default). Please note that Twilio cannot
|
|
63
|
+
# guarantee that a message will not be queued by the carrier after they accept the
|
|
64
|
+
# message. We do not recommend setting validity periods of less than 5 seconds.
|
|
39
65
|
# @param [String] max_rate The max_rate
|
|
40
66
|
# @param [Boolean] force_delivery The force_delivery
|
|
41
67
|
# @param [String] provider_sid The provider_sid
|
|
42
68
|
# @param [message.ContentRetention] content_retention The content_retention
|
|
43
69
|
# @param [message.AddressRetention] address_retention The address_retention
|
|
44
70
|
# @param [Boolean] smart_encoded The smart_encoded
|
|
45
|
-
# @param [String] from A Twilio phone number
|
|
46
|
-
#
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
71
|
+
# @param [String] from A Twilio phone number (in
|
|
72
|
+
# [E.164](http://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender
|
|
73
|
+
# ID](https://www.twilio.com/docs/api/messaging/send-messages#alpha-sender-id) or
|
|
74
|
+
# a [Channel Endpoint
|
|
75
|
+
# address](https://www.twilio.com/docs/api/channels#channel-addresses) enabled for
|
|
76
|
+
# the type of message you wish to send. Phone numbers or [short
|
|
77
|
+
# codes](https://www.twilio.com/docs/sms/api/short-codes) purchased from Twilio
|
|
78
|
+
# work here. You cannot (for example) spoof messages from your own cell phone
|
|
79
|
+
# number.
|
|
80
|
+
# @param [String] messaging_service_sid The 34 character unique id of the
|
|
81
|
+
# [Messaging
|
|
82
|
+
# Service](https://www.twilio.com/docs/api/messaging/send-messages#messaging-services) you want to associate with this Message. Set this parameter to use the Messaging Service Settings and [Copilot Features](https://www.twilio.com/docs/api/messaging/send-messages-copilot) you have configured. When only this parameter is set, Twilio will use your enabled Copilot Features to select the From phone number for delivery.
|
|
83
|
+
# @param [String] body The text of the message you want to send, limited to 1600
|
|
84
|
+
# characters.
|
|
85
|
+
# @param [String] media_url The URL of the media you wish to send out with the
|
|
86
|
+
# message. `gif` , `png` and `jpeg` content is currently supported and will be
|
|
87
|
+
# formatted correctly on the recipient's device. [Other
|
|
88
|
+
# types](https://www.twilio.com/docs/api/messaging/accepted-mime-types) are also
|
|
89
|
+
# accepted by the API. The media size limit is 5MB. If you wish to send more than
|
|
90
|
+
# one image in the message body, please provide multiple MediaUrls values in the
|
|
91
|
+
# POST request. You may include up to 10 MediaUrls per message.
|
|
50
92
|
# @return [MessageInstance] Newly created MessageInstance
|
|
51
93
|
def create(to: nil, status_callback: :unset, application_sid: :unset, max_price: :unset, provide_feedback: :unset, validity_period: :unset, max_rate: :unset, force_delivery: :unset, provider_sid: :unset, content_retention: :unset, address_retention: :unset, smart_encoded: :unset, from: :unset, messaging_service_sid: :unset, body: :unset, media_url: :unset)
|
|
52
94
|
data = Twilio::Values.of({
|
|
@@ -81,8 +123,9 @@ module Twilio
|
|
|
81
123
|
# Lists MessageInstance records from the API as a list.
|
|
82
124
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
83
125
|
# memory before returning.
|
|
84
|
-
# @param [String] to
|
|
85
|
-
# @param [String] from Only show messages from this phone number
|
|
126
|
+
# @param [String] to Only show messages to this phone number.
|
|
127
|
+
# @param [String] from Only show messages from this phone number or alphanumeric
|
|
128
|
+
# sender ID.
|
|
86
129
|
# @param [Time] date_sent_before Filter by date sent
|
|
87
130
|
# @param [Time] date_sent Filter by date sent
|
|
88
131
|
# @param [Time] date_sent_after Filter by date sent
|
|
@@ -109,8 +152,9 @@ module Twilio
|
|
|
109
152
|
# Streams MessageInstance records from the API as an Enumerable.
|
|
110
153
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
111
154
|
# is reached.
|
|
112
|
-
# @param [String] to
|
|
113
|
-
# @param [String] from Only show messages from this phone number
|
|
155
|
+
# @param [String] to Only show messages to this phone number.
|
|
156
|
+
# @param [String] from Only show messages from this phone number or alphanumeric
|
|
157
|
+
# sender ID.
|
|
114
158
|
# @param [Time] date_sent_before Filter by date sent
|
|
115
159
|
# @param [Time] date_sent Filter by date sent
|
|
116
160
|
# @param [Time] date_sent_after Filter by date sent
|
|
@@ -153,8 +197,9 @@ module Twilio
|
|
|
153
197
|
##
|
|
154
198
|
# Retrieve a single page of MessageInstance records from the API.
|
|
155
199
|
# Request is executed immediately.
|
|
156
|
-
# @param [String] to
|
|
157
|
-
# @param [String] from Only show messages from this phone number
|
|
200
|
+
# @param [String] to Only show messages to this phone number.
|
|
201
|
+
# @param [String] from Only show messages from this phone number or alphanumeric
|
|
202
|
+
# sender ID.
|
|
158
203
|
# @param [Time] date_sent_before Filter by date sent
|
|
159
204
|
# @param [Time] date_sent Filter by date sent
|
|
160
205
|
# @param [Time] date_sent_after Filter by date sent
|
|
@@ -273,7 +318,8 @@ module Twilio
|
|
|
273
318
|
|
|
274
319
|
##
|
|
275
320
|
# Update the MessageInstance
|
|
276
|
-
# @param [String] body The
|
|
321
|
+
# @param [String] body The text of the message you want to send, limited to 1600
|
|
322
|
+
# characters.
|
|
277
323
|
# @return [MessageInstance] Updated MessageInstance
|
|
278
324
|
def update(body: nil)
|
|
279
325
|
data = Twilio::Values.of({'Body' => body, })
|
|
@@ -334,7 +380,8 @@ module Twilio
|
|
|
334
380
|
# Initialize the MessageInstance
|
|
335
381
|
# @param [Version] version Version that contains the resource
|
|
336
382
|
# @param [Hash] payload payload that contains response from Twilio
|
|
337
|
-
# @param [String] account_sid The unique id of the
|
|
383
|
+
# @param [String] account_sid The unique id of the
|
|
384
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) that sent this message.
|
|
338
385
|
# @param [String] sid The message Sid that uniquely identifies this resource
|
|
339
386
|
# @return [MessageInstance] MessageInstance
|
|
340
387
|
def initialize(version, payload, account_sid: nil, sid: nil)
|
|
@@ -441,7 +488,7 @@ module Twilio
|
|
|
441
488
|
end
|
|
442
489
|
|
|
443
490
|
##
|
|
444
|
-
# @return [String] The
|
|
491
|
+
# @return [String] The unique id of the Messaging Service used with the message.
|
|
445
492
|
def messaging_service_sid
|
|
446
493
|
@properties['messaging_service_sid']
|
|
447
494
|
end
|
|
@@ -516,7 +563,8 @@ module Twilio
|
|
|
516
563
|
|
|
517
564
|
##
|
|
518
565
|
# Update the MessageInstance
|
|
519
|
-
# @param [String] body The
|
|
566
|
+
# @param [String] body The text of the message you want to send, limited to 1600
|
|
567
|
+
# characters.
|
|
520
568
|
# @return [MessageInstance] Updated MessageInstance
|
|
521
569
|
def update(body: nil)
|
|
522
570
|
context.update(body: body, )
|