twilio-ruby 5.4.4 → 5.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +12 -0
- data/README.md +16 -2
- data/lib/twilio-ruby/rest/accounts/v1.rb +3 -9
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +19 -3
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +338 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account.rb +51 -51
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +9 -9
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +13 -13
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +10 -10
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +10 -10
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +10 -10
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +12 -12
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +7 -7
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +14 -14
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +10 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +7 -7
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +10 -10
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +9 -9
- data/lib/twilio-ruby/rest/chat/v1/service.rb +16 -16
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +13 -13
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +4 -4
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +6 -6
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +10 -10
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +9 -9
- data/lib/twilio-ruby/rest/chat/v2/service.rb +18 -18
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +12 -12
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +4 -4
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +4 -4
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +2 -2
- data/lib/twilio-ruby/rest/fax/v1.rb +1 -1
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -12
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +7 -7
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +9 -9
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +16 -16
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +13 -13
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +5 -5
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +6 -6
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +10 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +9 -9
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +18 -18
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +12 -12
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +2 -2
- data/lib/twilio-ruby/rest/lookups/v1.rb +1 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +6 -6
- data/lib/twilio-ruby/rest/messaging/v1.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +15 -15
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +9 -9
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +9 -9
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +9 -9
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -2
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +6 -6
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +6 -6
- data/lib/twilio-ruby/rest/notify/v1.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +9 -9
- data/lib/twilio-ruby/rest/notify/v1/service.rb +15 -15
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +3 -3
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +9 -9
- data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +4 -4
- data/lib/twilio-ruby/rest/preview.rb +15 -0
- data/lib/twilio-ruby/rest/preview/acc_security.rb +1 -1
- data/lib/twilio-ruby/rest/preview/acc_security/service.rb +14 -14
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification.rb +3 -3
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification_check.rb +3 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +2 -2
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +6 -6
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +3 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +7 -7
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +1 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +19 -19
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +11 -11
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +12 -12
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +9 -9
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +12 -12
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +2 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +9 -9
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +9 -11
- data/lib/twilio-ruby/rest/preview/marketplace.rb +2 -2
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +9 -9
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +4 -4
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +12 -12
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +6 -6
- data/lib/twilio-ruby/rest/preview/proxy.rb +1 -1
- data/lib/twilio-ruby/rest/preview/proxy/service.rb +16 -16
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +9 -9
- data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +12 -12
- data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +2 -2
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +2 -2
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +3 -3
- data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +9 -9
- data/lib/twilio-ruby/rest/preview/studio.rb +41 -0
- data/lib/twilio-ruby/rest/preview/studio/flow.rb +353 -0
- data/lib/twilio-ruby/rest/preview/studio/flow/engagement.rb +384 -0
- data/lib/twilio-ruby/rest/preview/studio/flow/engagement/step.rb +348 -0
- data/lib/twilio-ruby/rest/preview/sync.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service.rb +15 -15
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +13 -13
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +5 -5
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +11 -11
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +6 -6
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +5 -5
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +11 -11
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +7 -7
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +5 -5
- data/lib/twilio-ruby/rest/preview/understand.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/service.rb +17 -17
- data/lib/twilio-ruby/rest/preview/understand/service/field_type.rb +13 -13
- data/lib/twilio-ruby/rest/preview/understand/service/field_type/field_value.rb +4 -4
- data/lib/twilio-ruby/rest/preview/understand/service/intent.rb +16 -16
- data/lib/twilio-ruby/rest/preview/understand/service/intent/field.rb +4 -4
- data/lib/twilio-ruby/rest/preview/understand/service/intent/sample.rb +6 -6
- data/lib/twilio-ruby/rest/preview/understand/service/model_build.rb +12 -12
- data/lib/twilio-ruby/rest/preview/understand/service/query.rb +10 -10
- data/lib/twilio-ruby/rest/preview/wireless.rb +3 -3
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +7 -7
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +11 -11
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +8 -8
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +7 -7
- data/lib/twilio-ruby/rest/pricing/v1.rb +9 -27
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +4 -4
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +7 -7
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +4 -4
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +7 -7
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +6 -6
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +7 -7
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +5 -5
- data/lib/twilio-ruby/rest/proxy/v1.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +87 -19
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +11 -10
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +35 -19
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +11 -40
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +3 -3
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +10 -10
- data/lib/twilio-ruby/rest/sync/v1.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +17 -17
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +13 -13
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +5 -5
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +11 -11
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +6 -6
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +5 -5
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +11 -11
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +7 -7
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +5 -5
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +26 -26
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +9 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +10 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +16 -16
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +5 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +7 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +5 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +5 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +7 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +5 -5
- data/lib/twilio-ruby/rest/trunking/v1.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +17 -17
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +9 -9
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +8 -8
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +9 -9
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +9 -9
- data/lib/twilio-ruby/rest/video/v1.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/room.rb +14 -14
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +10 -10
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +3 -3
- data/lib/twilio-ruby/rest/wireless/v1.rb +3 -3
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +8 -8
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +11 -11
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +9 -9
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +3 -3
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +3 -3
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/accounts/v1/credential/aws_spec.rb +224 -0
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +1 -1
- data/spec/integration/api/v2010/account/application_spec.rb +1 -1
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +2 -2
- data/spec/integration/api/v2010/account/call_spec.rb +1 -1
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +1 -1
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +1 -1
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +1 -1
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +1 -1
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +1 -1
- data/spec/integration/api/v2010/account/message_spec.rb +2 -2
- data/spec/integration/api/v2010/account/queue/member_spec.rb +1 -1
- data/spec/integration/api/v2010/account/queue_spec.rb +1 -1
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +1 -1
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +2 -2
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +1 -1
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +1 -1
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +1 -1
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +1 -1
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +2 -2
- data/spec/integration/api/v2010/account/validation_request_spec.rb +1 -1
- data/spec/integration/chat/v1/credential_spec.rb +1 -1
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +1 -1
- data/spec/integration/chat/v1/service/channel/member_spec.rb +1 -1
- data/spec/integration/chat/v1/service/channel/message_spec.rb +1 -1
- data/spec/integration/chat/v1/service/role_spec.rb +1 -1
- data/spec/integration/chat/v1/service/user_spec.rb +1 -1
- data/spec/integration/chat/v1/service_spec.rb +1 -1
- data/spec/integration/chat/v2/credential_spec.rb +1 -1
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +1 -1
- data/spec/integration/chat/v2/service/channel/member_spec.rb +1 -1
- data/spec/integration/chat/v2/service/role_spec.rb +1 -1
- data/spec/integration/chat/v2/service/user_spec.rb +1 -1
- data/spec/integration/chat/v2/service_spec.rb +1 -1
- data/spec/integration/fax/v1/fax_spec.rb +1 -1
- data/spec/integration/ip_messaging/v1/credential_spec.rb +1 -1
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +1 -1
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +1 -1
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +1 -1
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +1 -1
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +1 -1
- data/spec/integration/ip_messaging/v1/service_spec.rb +1 -1
- data/spec/integration/ip_messaging/v2/credential_spec.rb +1 -1
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +1 -1
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +1 -1
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +1 -1
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +1 -1
- data/spec/integration/ip_messaging/v2/service_spec.rb +1 -1
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +1 -1
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +1 -1
- data/spec/integration/messaging/v1/service/short_code_spec.rb +1 -1
- data/spec/integration/messaging/v1/service_spec.rb +1 -1
- data/spec/integration/notify/v1/credential_spec.rb +1 -1
- data/spec/integration/notify/v1/service/binding_spec.rb +1 -1
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +1 -1
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +1 -1
- data/spec/integration/notify/v1/service/user_spec.rb +1 -1
- data/spec/integration/preview/acc_security/service/verification_check_spec.rb +1 -1
- data/spec/integration/preview/acc_security/service/verification_spec.rb +1 -1
- data/spec/integration/preview/acc_security/service_spec.rb +1 -1
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +1 -1
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +4 -4
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +1 -1
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +1 -1
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +1 -1
- data/spec/integration/preview/proxy/service/short_code_spec.rb +1 -1
- data/spec/integration/preview/studio/flow/engagement/step_spec.rb +96 -0
- data/spec/integration/preview/studio/flow/engagement_spec.rb +171 -0
- data/spec/integration/preview/studio/flow_spec.rb +115 -0
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +1 -1
- data/spec/integration/preview/sync/service/document_spec.rb +1 -1
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +2 -2
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +1 -1
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +2 -2
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +1 -1
- data/spec/integration/preview/understand/service/field_type/field_value_spec.rb +1 -1
- data/spec/integration/preview/understand/service/field_type_spec.rb +1 -1
- data/spec/integration/preview/understand/service/intent/field_spec.rb +1 -1
- data/spec/integration/preview/understand/service/intent/sample_spec.rb +1 -1
- data/spec/integration/preview/understand/service/intent_spec.rb +1 -1
- data/spec/integration/preview/understand/service/query_spec.rb +1 -1
- data/spec/integration/preview/wireless/command_spec.rb +1 -1
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +15 -7
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +1 -4
- data/spec/integration/proxy/v1/service/session_spec.rb +3 -0
- data/spec/integration/proxy/v1/service/short_code_spec.rb +13 -4
- data/spec/integration/proxy/v1/service_spec.rb +12 -0
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +1 -1
- data/spec/integration/sync/v1/service/document_spec.rb +1 -1
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +2 -2
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +1 -1
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +2 -2
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +1 -1
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +1 -1
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +1 -1
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +1 -1
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +1 -1
- data/spec/integration/taskrouter/v1/workspace_spec.rb +1 -1
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +1 -1
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +1 -1
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +1 -1
- data/spec/integration/video/v1/room_spec.rb +1 -1
- data/spec/integration/wireless/v1/command_spec.rb +1 -1
- metadata +16 -3
@@ -30,9 +30,10 @@ module Twilio
|
|
30
30
|
# Request is executed immediately.
|
31
31
|
# @param [String] sid A 34 character string that uniquely identifies this Phone
|
32
32
|
# Number.
|
33
|
+
# @param [String] phone_number The phone_number
|
33
34
|
# @return [PhoneNumberInstance] Newly created PhoneNumberInstance
|
34
|
-
def create(sid:
|
35
|
-
data = Twilio::Values.of({'Sid' => sid,})
|
35
|
+
def create(sid: :unset, phone_number: :unset)
|
36
|
+
data = Twilio::Values.of({'Sid' => sid, 'PhoneNumber' => phone_number})
|
36
37
|
|
37
38
|
payload = @version.create(
|
38
39
|
'POST',
|
@@ -40,7 +41,7 @@ module Twilio
|
|
40
41
|
data: data
|
41
42
|
)
|
42
43
|
|
43
|
-
PhoneNumberInstance.new(@version, payload, service_sid: @solution[:service_sid]
|
44
|
+
PhoneNumberInstance.new(@version, payload, service_sid: @solution[:service_sid])
|
44
45
|
end
|
45
46
|
|
46
47
|
##
|
@@ -72,7 +73,7 @@ module Twilio
|
|
72
73
|
def stream(limit: nil, page_size: nil)
|
73
74
|
limits = @version.read_limits(limit, page_size)
|
74
75
|
|
75
|
-
page = self.page(page_size: limits[:page_size]
|
76
|
+
page = self.page(page_size: limits[:page_size])
|
76
77
|
|
77
78
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
78
79
|
end
|
@@ -84,7 +85,7 @@ module Twilio
|
|
84
85
|
def each
|
85
86
|
limits = @version.read_limits
|
86
87
|
|
87
|
-
page = self.page(page_size: limits[:page_size]
|
88
|
+
page = self.page(page_size: limits[:page_size])
|
88
89
|
|
89
90
|
@version.stream(page,
|
90
91
|
limit: limits[:limit],
|
@@ -153,7 +154,7 @@ module Twilio
|
|
153
154
|
# @param [Hash] payload Payload response from the API
|
154
155
|
# @return [PhoneNumberInstance] PhoneNumberInstance
|
155
156
|
def get_instance(payload)
|
156
|
-
PhoneNumberInstance.new(@version, payload, service_sid: @solution[:service_sid]
|
157
|
+
PhoneNumberInstance.new(@version, payload, service_sid: @solution[:service_sid])
|
157
158
|
end
|
158
159
|
|
159
160
|
##
|
@@ -177,7 +178,7 @@ module Twilio
|
|
177
178
|
super(version)
|
178
179
|
|
179
180
|
# Path Solution
|
180
|
-
@solution = {service_sid: service_sid, sid: sid
|
181
|
+
@solution = {service_sid: service_sid, sid: sid}
|
181
182
|
@uri = "/Services/#{@solution[:service_sid]}/PhoneNumbers/#{@solution[:sid]}"
|
182
183
|
end
|
183
184
|
|
@@ -200,7 +201,7 @@ module Twilio
|
|
200
201
|
params,
|
201
202
|
)
|
202
203
|
|
203
|
-
PhoneNumberInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid]
|
204
|
+
PhoneNumberInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid])
|
204
205
|
end
|
205
206
|
|
206
207
|
##
|
@@ -241,7 +242,7 @@ module Twilio
|
|
241
242
|
|
242
243
|
# Context
|
243
244
|
@instance_context = nil
|
244
|
-
@params = {'service_sid' => service_sid, 'sid' => sid || @properties['sid']
|
245
|
+
@params = {'service_sid' => service_sid, 'sid' => sid || @properties['sid']}
|
245
246
|
end
|
246
247
|
|
247
248
|
##
|
@@ -250,7 +251,7 @@ module Twilio
|
|
250
251
|
# @return [PhoneNumberContext] PhoneNumberContext for this PhoneNumberInstance
|
251
252
|
def context
|
252
253
|
unless @instance_context
|
253
|
-
@instance_context = PhoneNumberContext.new(@version, @params['service_sid'], @params['sid']
|
254
|
+
@instance_context = PhoneNumberContext.new(@version, @params['service_sid'], @params['sid'])
|
254
255
|
end
|
255
256
|
@instance_context
|
256
257
|
end
|
@@ -64,7 +64,7 @@ module Twilio
|
|
64
64
|
def stream(unique_name: :unset, status: :unset, limit: nil, page_size: nil)
|
65
65
|
limits = @version.read_limits(limit, page_size)
|
66
66
|
|
67
|
-
page = self.page(unique_name: unique_name, status: status, page_size: limits[:page_size]
|
67
|
+
page = self.page(unique_name: unique_name, status: status, page_size: limits[:page_size])
|
68
68
|
|
69
69
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
70
70
|
end
|
@@ -76,7 +76,7 @@ module Twilio
|
|
76
76
|
def each
|
77
77
|
limits = @version.read_limits
|
78
78
|
|
79
|
-
page = self.page(page_size: limits[:page_size]
|
79
|
+
page = self.page(page_size: limits[:page_size])
|
80
80
|
|
81
81
|
@version.stream(page,
|
82
82
|
limit: limits[:limit],
|
@@ -133,17 +133,20 @@ module Twilio
|
|
133
133
|
# @param [Time] date_expiry The date that this Session was expiry, given in ISO
|
134
134
|
# 8601 format.
|
135
135
|
# @param [String] ttl The Time to Live for a Session, in seconds.
|
136
|
+
# @param [session.Mode] mode The Mode of this Session. One of `message-only`,
|
137
|
+
# `voice-only` or `voice-and-message`.
|
136
138
|
# @param [session.Status] status The Status of this Session. One of `in-progess`,
|
137
139
|
# `closed`, `failed`, `unknown` or `completed`.
|
138
|
-
# @param [
|
140
|
+
# @param [Hash] participants A list of phone numbers to add to this Session.
|
139
141
|
# @return [SessionInstance] Newly created SessionInstance
|
140
|
-
def create(unique_name: :unset, date_expiry: :unset, ttl: :unset, status: :unset, participants: :unset)
|
142
|
+
def create(unique_name: :unset, date_expiry: :unset, ttl: :unset, mode: :unset, status: :unset, participants: :unset)
|
141
143
|
data = Twilio::Values.of({
|
142
144
|
'UniqueName' => unique_name,
|
143
145
|
'DateExpiry' => Twilio.serialize_iso8601_datetime(date_expiry),
|
144
146
|
'Ttl' => ttl,
|
147
|
+
'Mode' => mode,
|
145
148
|
'Status' => status,
|
146
|
-
'Participants' => Twilio.serialize_list(participants) { |e| e },
|
149
|
+
'Participants' => Twilio.serialize_list(participants) { |e| Twilio.serialize_object(e) },
|
147
150
|
})
|
148
151
|
|
149
152
|
payload = @version.create(
|
@@ -152,7 +155,7 @@ module Twilio
|
|
152
155
|
data: data
|
153
156
|
)
|
154
157
|
|
155
|
-
SessionInstance.new(@version, payload, service_sid: @solution[:service_sid]
|
158
|
+
SessionInstance.new(@version, payload, service_sid: @solution[:service_sid])
|
156
159
|
end
|
157
160
|
|
158
161
|
##
|
@@ -183,7 +186,7 @@ module Twilio
|
|
183
186
|
# @param [Hash] payload Payload response from the API
|
184
187
|
# @return [SessionInstance] SessionInstance
|
185
188
|
def get_instance(payload)
|
186
|
-
SessionInstance.new(@version, payload, service_sid: @solution[:service_sid]
|
189
|
+
SessionInstance.new(@version, payload, service_sid: @solution[:service_sid])
|
187
190
|
end
|
188
191
|
|
189
192
|
##
|
@@ -206,7 +209,7 @@ module Twilio
|
|
206
209
|
super(version)
|
207
210
|
|
208
211
|
# Path Solution
|
209
|
-
@solution = {service_sid: service_sid, sid: sid
|
212
|
+
@solution = {service_sid: service_sid, sid: sid}
|
210
213
|
@uri = "/Services/#{@solution[:service_sid]}/Sessions/#{@solution[:sid]}"
|
211
214
|
|
212
215
|
# Dependents
|
@@ -226,7 +229,7 @@ module Twilio
|
|
226
229
|
params,
|
227
230
|
)
|
228
231
|
|
229
|
-
SessionInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid]
|
232
|
+
SessionInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid])
|
230
233
|
end
|
231
234
|
|
232
235
|
##
|
@@ -244,17 +247,20 @@ module Twilio
|
|
244
247
|
# @param [Time] date_expiry The date that this Session was expiry, given in ISO
|
245
248
|
# 8601 format.
|
246
249
|
# @param [String] ttl The Time to Live for a Session, in seconds.
|
250
|
+
# @param [session.Mode] mode The Mode of this Session. One of `message-only`,
|
251
|
+
# `voice-only` or `voice-and-message`.
|
247
252
|
# @param [session.Status] status The Status of this Session. One of `in-progess`,
|
248
253
|
# `closed`, `failed`, `unknown` or `completed`.
|
249
|
-
# @param [
|
254
|
+
# @param [Hash] participants A list of phone numbers to add to this Session.
|
250
255
|
# @return [SessionInstance] Updated SessionInstance
|
251
|
-
def update(unique_name: :unset, date_expiry: :unset, ttl: :unset, status: :unset, participants: :unset)
|
256
|
+
def update(unique_name: :unset, date_expiry: :unset, ttl: :unset, mode: :unset, status: :unset, participants: :unset)
|
252
257
|
data = Twilio::Values.of({
|
253
258
|
'UniqueName' => unique_name,
|
254
259
|
'DateExpiry' => Twilio.serialize_iso8601_datetime(date_expiry),
|
255
260
|
'Ttl' => ttl,
|
261
|
+
'Mode' => mode,
|
256
262
|
'Status' => status,
|
257
|
-
'Participants' => Twilio.serialize_list(participants) { |e| e },
|
263
|
+
'Participants' => Twilio.serialize_list(participants) { |e| Twilio.serialize_object(e) },
|
258
264
|
})
|
259
265
|
|
260
266
|
payload = @version.update(
|
@@ -263,7 +269,7 @@ module Twilio
|
|
263
269
|
data: data,
|
264
270
|
)
|
265
271
|
|
266
|
-
SessionInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid]
|
272
|
+
SessionInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid])
|
267
273
|
end
|
268
274
|
|
269
275
|
##
|
@@ -274,7 +280,7 @@ module Twilio
|
|
274
280
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
275
281
|
|
276
282
|
if sid != :unset
|
277
|
-
return InteractionContext.new(@version, @solution[:service_sid], @solution[:sid], sid
|
283
|
+
return InteractionContext.new(@version, @solution[:service_sid], @solution[:sid], sid)
|
278
284
|
end
|
279
285
|
|
280
286
|
unless @interactions
|
@@ -296,7 +302,7 @@ module Twilio
|
|
296
302
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
297
303
|
|
298
304
|
if sid != :unset
|
299
|
-
return ParticipantContext.new(@version, @solution[:service_sid], @solution[:sid], sid
|
305
|
+
return ParticipantContext.new(@version, @solution[:service_sid], @solution[:sid], sid)
|
300
306
|
end
|
301
307
|
|
302
308
|
unless @participants
|
@@ -344,6 +350,7 @@ module Twilio
|
|
344
350
|
'status' => payload['status'],
|
345
351
|
'closed_reason' => payload['closed_reason'],
|
346
352
|
'ttl' => payload['ttl'].to_i,
|
353
|
+
'mode' => payload['mode'],
|
347
354
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
348
355
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
349
356
|
'url' => payload['url'],
|
@@ -352,7 +359,7 @@ module Twilio
|
|
352
359
|
|
353
360
|
# Context
|
354
361
|
@instance_context = nil
|
355
|
-
@params = {'service_sid' => service_sid, 'sid' => sid || @properties['sid']
|
362
|
+
@params = {'service_sid' => service_sid, 'sid' => sid || @properties['sid']}
|
356
363
|
end
|
357
364
|
|
358
365
|
##
|
@@ -361,7 +368,7 @@ module Twilio
|
|
361
368
|
# @return [SessionContext] SessionContext for this SessionInstance
|
362
369
|
def context
|
363
370
|
unless @instance_context
|
364
|
-
@instance_context = SessionContext.new(@version, @params['service_sid'], @params['sid']
|
371
|
+
@instance_context = SessionContext.new(@version, @params['service_sid'], @params['sid'])
|
365
372
|
end
|
366
373
|
@instance_context
|
367
374
|
end
|
@@ -432,6 +439,12 @@ module Twilio
|
|
432
439
|
@properties['ttl']
|
433
440
|
end
|
434
441
|
|
442
|
+
##
|
443
|
+
# @return [session.Mode] The Mode of this Session
|
444
|
+
def mode
|
445
|
+
@properties['mode']
|
446
|
+
end
|
447
|
+
|
435
448
|
##
|
436
449
|
# @return [Time] The date this Session was created
|
437
450
|
def date_created
|
@@ -478,15 +491,18 @@ module Twilio
|
|
478
491
|
# @param [Time] date_expiry The date that this Session was expiry, given in ISO
|
479
492
|
# 8601 format.
|
480
493
|
# @param [String] ttl The Time to Live for a Session, in seconds.
|
494
|
+
# @param [session.Mode] mode The Mode of this Session. One of `message-only`,
|
495
|
+
# `voice-only` or `voice-and-message`.
|
481
496
|
# @param [session.Status] status The Status of this Session. One of `in-progess`,
|
482
497
|
# `closed`, `failed`, `unknown` or `completed`.
|
483
|
-
# @param [
|
498
|
+
# @param [Hash] participants A list of phone numbers to add to this Session.
|
484
499
|
# @return [SessionInstance] Updated SessionInstance
|
485
|
-
def update(unique_name: :unset, date_expiry: :unset, ttl: :unset, status: :unset, participants: :unset)
|
500
|
+
def update(unique_name: :unset, date_expiry: :unset, ttl: :unset, mode: :unset, status: :unset, participants: :unset)
|
486
501
|
context.update(
|
487
502
|
unique_name: unique_name,
|
488
503
|
date_expiry: date_expiry,
|
489
504
|
ttl: ttl,
|
505
|
+
mode: mode,
|
490
506
|
status: status,
|
491
507
|
participants: participants,
|
492
508
|
)
|
@@ -97,7 +97,7 @@ module Twilio
|
|
97
97
|
def each
|
98
98
|
limits = @version.read_limits
|
99
99
|
|
100
|
-
page = self.page(page_size: limits[:page_size]
|
100
|
+
page = self.page(page_size: limits[:page_size])
|
101
101
|
|
102
102
|
@version.stream(page,
|
103
103
|
limit: limits[:limit],
|
@@ -208,7 +208,7 @@ module Twilio
|
|
208
208
|
super(version)
|
209
209
|
|
210
210
|
# Path Solution
|
211
|
-
@solution = {service_sid: service_sid, session_sid: session_sid, sid: sid
|
211
|
+
@solution = {service_sid: service_sid, session_sid: session_sid, sid: sid}
|
212
212
|
@uri = "/Services/#{@solution[:service_sid]}/Sessions/#{@solution[:session_sid]}/Interactions/#{@solution[:sid]}"
|
213
213
|
end
|
214
214
|
|
@@ -31,7 +31,6 @@ module Twilio
|
|
31
31
|
# Lists ParticipantInstance records from the API as a list.
|
32
32
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
33
33
|
# memory before returning.
|
34
|
-
# @param [participant.ParticipantType] participant_type The participant_type
|
35
34
|
# @param [String] identifier The identifier
|
36
35
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
37
36
|
# guarantees to never return more than limit. Default is no limit
|
@@ -40,20 +39,14 @@ module Twilio
|
|
40
39
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
41
40
|
# efficient page size, i.e. min(limit, 1000)
|
42
41
|
# @return [Array] Array of up to limit results
|
43
|
-
def list(
|
44
|
-
self.stream(
|
45
|
-
participant_type: participant_type,
|
46
|
-
identifier: identifier,
|
47
|
-
limit: limit,
|
48
|
-
page_size: page_size
|
49
|
-
).entries
|
42
|
+
def list(identifier: :unset, limit: nil, page_size: nil)
|
43
|
+
self.stream(identifier: identifier, limit: limit, page_size: page_size).entries
|
50
44
|
end
|
51
45
|
|
52
46
|
##
|
53
47
|
# Streams ParticipantInstance records from the API as an Enumerable.
|
54
48
|
# This operation lazily loads records as efficiently as possible until the limit
|
55
49
|
# is reached.
|
56
|
-
# @param [participant.ParticipantType] participant_type The participant_type
|
57
50
|
# @param [String] identifier The identifier
|
58
51
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
59
52
|
# guarantees to never return more than limit. Default is no limit.
|
@@ -62,14 +55,10 @@ module Twilio
|
|
62
55
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
63
56
|
# efficient page size, i.e. min(limit, 1000)
|
64
57
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
65
|
-
def stream(
|
58
|
+
def stream(identifier: :unset, limit: nil, page_size: nil)
|
66
59
|
limits = @version.read_limits(limit, page_size)
|
67
60
|
|
68
|
-
page = self.page(
|
69
|
-
participant_type: participant_type,
|
70
|
-
identifier: identifier,
|
71
|
-
page_size: limits[:page_size],
|
72
|
-
)
|
61
|
+
page = self.page(identifier: identifier, page_size: limits[:page_size])
|
73
62
|
|
74
63
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
75
64
|
end
|
@@ -81,7 +70,7 @@ module Twilio
|
|
81
70
|
def each
|
82
71
|
limits = @version.read_limits
|
83
72
|
|
84
|
-
page = self.page(page_size: limits[:page_size]
|
73
|
+
page = self.page(page_size: limits[:page_size])
|
85
74
|
|
86
75
|
@version.stream(page,
|
87
76
|
limit: limits[:limit],
|
@@ -91,15 +80,13 @@ module Twilio
|
|
91
80
|
##
|
92
81
|
# Retrieve a single page of ParticipantInstance records from the API.
|
93
82
|
# Request is executed immediately.
|
94
|
-
# @param [participant.ParticipantType] participant_type The participant_type
|
95
83
|
# @param [String] identifier The identifier
|
96
84
|
# @param [String] page_token PageToken provided by the API
|
97
85
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
98
86
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
99
87
|
# @return [Page] Page of ParticipantInstance
|
100
|
-
def page(
|
88
|
+
def page(identifier: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
101
89
|
params = Twilio::Values.of({
|
102
|
-
'ParticipantType' => participant_type,
|
103
90
|
'Identifier' => identifier,
|
104
91
|
'PageToken' => page_token,
|
105
92
|
'Page' => page_number,
|
@@ -132,17 +119,14 @@ module Twilio
|
|
132
119
|
# @param [String] identifier The phone number of this Participant.
|
133
120
|
# @param [String] friendly_name A human readable description of this resource, up
|
134
121
|
# to 64 characters.
|
135
|
-
# @param [participant.ParticipantType] participant_type The Participant Type of
|
136
|
-
# this Participant. One of `message-only`, `voice-only` or `voice-and-message`.
|
137
122
|
# @param [String] proxy_identifier The proxy phone number for this Participant.
|
138
123
|
# @param [String] proxy_identifier_sid The unique SID identifier of the Proxy
|
139
124
|
# Identifier.
|
140
125
|
# @return [ParticipantInstance] Newly created ParticipantInstance
|
141
|
-
def create(identifier: nil, friendly_name: :unset,
|
126
|
+
def create(identifier: nil, friendly_name: :unset, proxy_identifier: :unset, proxy_identifier_sid: :unset)
|
142
127
|
data = Twilio::Values.of({
|
143
128
|
'Identifier' => identifier,
|
144
129
|
'FriendlyName' => friendly_name,
|
145
|
-
'ParticipantType' => participant_type,
|
146
130
|
'ProxyIdentifier' => proxy_identifier,
|
147
131
|
'ProxyIdentifierSid' => proxy_identifier_sid,
|
148
132
|
})
|
@@ -219,7 +203,7 @@ module Twilio
|
|
219
203
|
super(version)
|
220
204
|
|
221
205
|
# Path Solution
|
222
|
-
@solution = {service_sid: service_sid, session_sid: session_sid, sid: sid
|
206
|
+
@solution = {service_sid: service_sid, session_sid: session_sid, sid: sid}
|
223
207
|
@uri = "/Services/#{@solution[:service_sid]}/Sessions/#{@solution[:session_sid]}/Participants/#{@solution[:sid]}"
|
224
208
|
|
225
209
|
# Dependents
|
@@ -256,8 +240,6 @@ module Twilio
|
|
256
240
|
|
257
241
|
##
|
258
242
|
# Update the ParticipantInstance
|
259
|
-
# @param [participant.ParticipantType] participant_type The Participant Type of
|
260
|
-
# this Participant. One of `message-only`, `voice-only` or `voice-and-message`.
|
261
243
|
# @param [String] identifier The phone number of this Participant.
|
262
244
|
# @param [String] friendly_name A human readable description of this resource, up
|
263
245
|
# to 64 characters.
|
@@ -265,9 +247,8 @@ module Twilio
|
|
265
247
|
# @param [String] proxy_identifier_sid The unique SID identifier of the Proxy
|
266
248
|
# Identifier.
|
267
249
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
268
|
-
def update(
|
250
|
+
def update(identifier: :unset, friendly_name: :unset, proxy_identifier: :unset, proxy_identifier_sid: :unset)
|
269
251
|
data = Twilio::Values.of({
|
270
|
-
'ParticipantType' => participant_type,
|
271
252
|
'Identifier' => identifier,
|
272
253
|
'FriendlyName' => friendly_name,
|
273
254
|
'ProxyIdentifier' => proxy_identifier,
|
@@ -348,7 +329,6 @@ module Twilio
|
|
348
329
|
'service_sid' => payload['service_sid'],
|
349
330
|
'account_sid' => payload['account_sid'],
|
350
331
|
'friendly_name' => payload['friendly_name'],
|
351
|
-
'participant_type' => payload['participant_type'],
|
352
332
|
'identifier' => payload['identifier'],
|
353
333
|
'proxy_identifier' => payload['proxy_identifier'],
|
354
334
|
'proxy_identifier_sid' => payload['proxy_identifier_sid'],
|
@@ -414,12 +394,6 @@ module Twilio
|
|
414
394
|
@properties['friendly_name']
|
415
395
|
end
|
416
396
|
|
417
|
-
##
|
418
|
-
# @return [participant.ParticipantType] The Participant Type of this Participant
|
419
|
-
def participant_type
|
420
|
-
@properties['participant_type']
|
421
|
-
end
|
422
|
-
|
423
397
|
##
|
424
398
|
# @return [String] The phone number of this Participant.
|
425
399
|
def identifier
|
@@ -427,7 +401,7 @@ module Twilio
|
|
427
401
|
end
|
428
402
|
|
429
403
|
##
|
430
|
-
# @return [String] The
|
404
|
+
# @return [String] The proxy_identifier
|
431
405
|
def proxy_identifier
|
432
406
|
@properties['proxy_identifier']
|
433
407
|
end
|
@@ -484,8 +458,6 @@ module Twilio
|
|
484
458
|
|
485
459
|
##
|
486
460
|
# Update the ParticipantInstance
|
487
|
-
# @param [participant.ParticipantType] participant_type The Participant Type of
|
488
|
-
# this Participant. One of `message-only`, `voice-only` or `voice-and-message`.
|
489
461
|
# @param [String] identifier The phone number of this Participant.
|
490
462
|
# @param [String] friendly_name A human readable description of this resource, up
|
491
463
|
# to 64 characters.
|
@@ -493,9 +465,8 @@ module Twilio
|
|
493
465
|
# @param [String] proxy_identifier_sid The unique SID identifier of the Proxy
|
494
466
|
# Identifier.
|
495
467
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
496
|
-
def update(
|
468
|
+
def update(identifier: :unset, friendly_name: :unset, proxy_identifier: :unset, proxy_identifier_sid: :unset)
|
497
469
|
context.update(
|
498
|
-
participant_type: participant_type,
|
499
470
|
identifier: identifier,
|
500
471
|
friendly_name: friendly_name,
|
501
472
|
proxy_identifier: proxy_identifier,
|
@@ -36,7 +36,7 @@ module Twilio
|
|
36
36
|
# @param [String] media_url The media_url
|
37
37
|
# @return [MessageInteractionInstance] Newly created MessageInteractionInstance
|
38
38
|
def create(body: :unset, media_url: :unset)
|
39
|
-
data = Twilio::Values.of({'Body' => body, 'MediaUrl' => Twilio.serialize_list(media_url) { |e| e }
|
39
|
+
data = Twilio::Values.of({'Body' => body, 'MediaUrl' => Twilio.serialize_list(media_url) { |e| e }})
|
40
40
|
|
41
41
|
payload = @version.create(
|
42
42
|
'POST',
|
@@ -82,7 +82,7 @@ module Twilio
|
|
82
82
|
def stream(limit: nil, page_size: nil)
|
83
83
|
limits = @version.read_limits(limit, page_size)
|
84
84
|
|
85
|
-
page = self.page(page_size: limits[:page_size]
|
85
|
+
page = self.page(page_size: limits[:page_size])
|
86
86
|
|
87
87
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
88
88
|
end
|
@@ -94,7 +94,7 @@ module Twilio
|
|
94
94
|
def each
|
95
95
|
limits = @version.read_limits
|
96
96
|
|
97
|
-
page = self.page(page_size: limits[:page_size]
|
97
|
+
page = self.page(page_size: limits[:page_size])
|
98
98
|
|
99
99
|
@version.stream(page,
|
100
100
|
limit: limits[:limit],
|