twilio-ruby 5.40.3 → 5.44.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 +113 -0
- data/{LICENSE.md → LICENSE} +0 -0
- data/PULL_REQUEST_TEMPLATE.md +3 -3
- data/README.md +18 -2
- data/lib/twilio-ruby.rb +1 -1
- data/lib/twilio-ruby/jwt/access_token.rb +7 -2
- data/lib/twilio-ruby/rest/accounts.rb +12 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +14 -0
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +186 -0
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +200 -0
- data/lib/twilio-ruby/rest/api.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +3 -3
- 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 +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +29 -29
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +29 -29
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +29 -29
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +29 -29
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +29 -29
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +29 -29
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +29 -29
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +40 -20
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +201 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +16 -16
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +15 -8
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +26 -22
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +3 -3
- 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 +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +3 -3
- 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 +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +25 -25
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +6 -6
- 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 +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +18 -18
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +3 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +12 -12
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +3 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +3 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +3 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +11 -11
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +3 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +26 -26
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +3 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +6 -6
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +9 -9
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +24 -24
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +8 -8
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +3 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +5 -22
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +25 -40
- data/lib/twilio-ruby/rest/chat/v1/service.rb +36 -36
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +19 -19
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +28 -28
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +7 -7
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +8 -8
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/service.rb +36 -36
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +18 -18
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +15 -15
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +19 -19
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +54 -54
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +25 -25
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +15 -15
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +8 -8
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +18 -18
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +20 -20
- data/lib/twilio-ruby/rest/client.rb +30 -4
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +10 -18
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +0 -8
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +17 -17
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +5 -13
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +7 -15
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +12 -20
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +3 -11
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +0 -8
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +4 -12
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +1 -9
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +24 -32
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +14 -22
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +2 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +24 -22
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +10 -18
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +13 -21
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +18 -26
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +9 -17
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +10 -18
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +41 -30
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +35 -24
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +12 -5
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +27 -27
- data/lib/twilio-ruby/rest/insights.rb +8 -0
- data/lib/twilio-ruby/rest/insights/v1.rb +15 -0
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/room.rb +487 -0
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +378 -0
- data/lib/twilio-ruby/rest/ip_messaging.rb +8 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +6 -8
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +29 -68
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +198 -313
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +32 -59
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +23 -55
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +28 -71
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +31 -59
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +19 -39
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +29 -51
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +12 -18
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +6 -6
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +29 -66
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +116 -205
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +23 -50
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +41 -91
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +23 -50
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +42 -118
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +46 -100
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +36 -89
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +19 -41
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +29 -53
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +23 -53
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +27 -56
- data/lib/twilio-ruby/rest/lookups.rb +1 -1
- data/lib/twilio-ruby/rest/lookups/v1.rb +1 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +10 -10
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +36 -36
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +3 -3
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +3 -3
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +3 -3
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +15 -15
- data/lib/twilio-ruby/rest/notify/v1/service.rb +24 -24
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +10 -10
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +17 -17
- data/lib/twilio-ruby/rest/preview.rb +8 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +5 -22
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +21 -39
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +10 -10
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +6 -6
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +1 -1
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +15 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +4 -4
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel.rb +225 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb +165 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +0 -26
- data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +4 -4
- data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +52 -52
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +4 -4
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +4 -4
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +4 -4
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +3 -3
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +4 -4
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +4 -4
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +15 -15
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +11 -11
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +6 -6
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +6 -6
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +6 -6
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +9 -9
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +8 -8
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +5 -5
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +29 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +219 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +4 -4
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +6 -6
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +6 -6
- data/lib/twilio-ruby/rest/supersim/v1/command.rb +7 -7
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +6 -6
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +7 -7
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +6 -6
- data/lib/twilio-ruby/rest/sync/v1/service.rb +3 -3
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +21 -11
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +6 -6
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +21 -11
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +34 -11
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +6 -6
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +21 -11
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +40 -17
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +6 -6
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +21 -11
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +12 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +16 -16
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -8
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +9 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +6 -6
- 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 +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +27 -27
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +21 -24
- data/lib/twilio-ruby/rest/verify/v2/form.rb +4 -4
- data/lib/twilio-ruby/rest/verify/v2/service.rb +54 -33
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +23 -35
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +36 -61
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +59 -61
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +12 -12
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +12 -12
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +5 -5
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +4 -4
- data/lib/twilio-ruby/rest/video/v1/composition.rb +9 -9
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +24 -24
- data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/room.rb +26 -9
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +9 -9
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +150 -0
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +9 -9
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +2 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +22 -22
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +4 -4
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +2 -2
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +7 -7
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +7 -7
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +22 -22
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +4 -4
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +10 -10
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +6 -6
- data/lib/twilio-ruby/twiml/voice_response.rb +4 -2
- data/lib/twilio-ruby/util/configuration.rb +5 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/accounts/v1/auth_token_promotion_spec.rb +44 -0
- data/spec/integration/accounts/v1/secondary_auth_token_spec.rb +69 -0
- data/spec/integration/api/v2010/account/call/event_spec.rb +102 -0
- data/spec/integration/api/v2010/account/call/recording_spec.rb +4 -0
- data/spec/integration/api/v2010/account/call_spec.rb +20 -10
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +60 -0
- data/spec/integration/bulkexports/v1/export/export_custom_job_spec.rb +4 -2
- data/spec/integration/conversations/v1/conversation_spec.rb +1 -1
- data/spec/integration/conversations/v1/service/conversation_spec.rb +1 -1
- data/spec/integration/conversations/v1/service/user_spec.rb +9 -3
- data/spec/integration/conversations/v1/user_spec.rb +9 -3
- data/spec/integration/events/v1/sink/sink_test_spec.rb +1 -1
- data/spec/integration/events/v1/subscription_spec.rb +49 -0
- data/spec/integration/insights/v1/call/summary_spec.rb +1 -0
- data/spec/integration/insights/v1/room/participant_spec.rb +147 -0
- data/spec/integration/insights/v1/room_spec.rb +164 -0
- data/spec/integration/ip_messaging/v1/credential_spec.rb +13 -13
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +11 -11
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +14 -14
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +14 -14
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +25 -25
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +13 -13
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +7 -7
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +17 -17
- data/spec/integration/ip_messaging/v1/service_spec.rb +9 -9
- data/spec/integration/ip_messaging/v2/credential_spec.rb +13 -13
- data/spec/integration/ip_messaging/v2/service/binding_spec.rb +11 -11
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +11 -11
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +13 -13
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +17 -17
- data/spec/integration/ip_messaging/v2/service/channel/webhook_spec.rb +15 -15
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +29 -29
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +13 -13
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +9 -9
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +20 -20
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +21 -21
- data/spec/integration/ip_messaging/v2/service_spec.rb +29 -29
- data/spec/integration/lookups/v1/phone_number_spec.rb +7 -7
- data/spec/integration/preview/bulk_exports/export/export_custom_job_spec.rb +4 -2
- data/spec/integration/preview/trusted_comms/{business/brand/branded_channel → branded_channel}/channel_spec.rb +4 -8
- data/spec/integration/preview/trusted_comms/{business/brand/branded_channel_spec.rb → branded_channel_spec.rb} +5 -9
- data/spec/integration/preview/trusted_comms/business_spec.rb +0 -1
- data/spec/integration/serverless/v1/service/build/build_status_spec.rb +48 -0
- data/spec/integration/serverless/v1/service/build_spec.rb +8 -2
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +1 -1
- data/spec/integration/trunking/v1/trunk/recording_spec.rb +2 -6
- data/spec/integration/verify/v2/service/entity/challenge_spec.rb +56 -20
- data/spec/integration/verify/v2/service/entity/factor_spec.rb +11 -26
- data/spec/integration/verify/v2/service/entity_spec.rb +4 -12
- data/spec/integration/verify/v2/service_spec.rb +8 -4
- data/spec/integration/video/v1/room/room_recording_rule_spec.rb +89 -0
- data/spec/integration/video/v1/room_spec.rb +12 -7
- data/spec/jwt/access_token_spec.rb +9 -1
- data/spec/rest/client_spec.rb +24 -2
- data/twilio-ruby.gemspec +2 -1
- metadata +45 -13
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand.rb +0 -233
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb +0 -260
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb +0 -189
- data/spec/integration/preview/trusted_comms/business/brand_spec.rb +0 -48
@@ -12,17 +12,15 @@ module Twilio
|
|
12
12
|
class V1 < Version
|
13
13
|
class ServiceContext < InstanceContext
|
14
14
|
class ConversationContext < InstanceContext
|
15
|
-
##
|
16
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
17
15
|
class MessageList < ListResource
|
18
16
|
##
|
19
17
|
# Initialize the MessageList
|
20
18
|
# @param [Version] version Version that contains the resource
|
21
|
-
# @param [String] chat_service_sid The SID of the
|
22
|
-
# Service
|
19
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
20
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
23
21
|
# Participant resource is associated with.
|
24
22
|
# @param [String] conversation_sid The unique ID of the
|
25
|
-
# [
|
23
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
26
24
|
# for this message.
|
27
25
|
# @return [MessageList] MessageList
|
28
26
|
def initialize(version, chat_service_sid: nil, conversation_sid: nil)
|
@@ -157,8 +155,6 @@ module Twilio
|
|
157
155
|
end
|
158
156
|
end
|
159
157
|
|
160
|
-
##
|
161
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
162
158
|
class MessagePage < Page
|
163
159
|
##
|
164
160
|
# Initialize the MessagePage
|
@@ -193,17 +189,15 @@ module Twilio
|
|
193
189
|
end
|
194
190
|
end
|
195
191
|
|
196
|
-
##
|
197
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
198
192
|
class MessageContext < InstanceContext
|
199
193
|
##
|
200
194
|
# Initialize the MessageContext
|
201
195
|
# @param [Version] version Version that contains the resource
|
202
|
-
# @param [String] chat_service_sid The SID of the
|
203
|
-
# Service
|
196
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
197
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
204
198
|
# Participant resource is associated with.
|
205
199
|
# @param [String] conversation_sid The unique ID of the
|
206
|
-
# [
|
200
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
207
201
|
# for this message.
|
208
202
|
# @param [String] sid A 34 character string that uniquely identifies this
|
209
203
|
# resource.
|
@@ -325,18 +319,16 @@ module Twilio
|
|
325
319
|
end
|
326
320
|
end
|
327
321
|
|
328
|
-
##
|
329
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
330
322
|
class MessageInstance < InstanceResource
|
331
323
|
##
|
332
324
|
# Initialize the MessageInstance
|
333
325
|
# @param [Version] version Version that contains the resource
|
334
326
|
# @param [Hash] payload payload that contains response from Twilio
|
335
|
-
# @param [String] chat_service_sid The SID of the
|
336
|
-
# Service
|
327
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
328
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
337
329
|
# Participant resource is associated with.
|
338
330
|
# @param [String] conversation_sid The unique ID of the
|
339
|
-
# [
|
331
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
340
332
|
# for this message.
|
341
333
|
# @param [String] sid A 34 character string that uniquely identifies this
|
342
334
|
# resource.
|
@@ -473,7 +465,7 @@ module Twilio
|
|
473
465
|
end
|
474
466
|
|
475
467
|
##
|
476
|
-
# @return [String] Absolute
|
468
|
+
# @return [String] Absolute URL to access the receipts of this message.
|
477
469
|
def links
|
478
470
|
@properties['links']
|
479
471
|
end
|
@@ -13,20 +13,18 @@ module Twilio
|
|
13
13
|
class ServiceContext < InstanceContext
|
14
14
|
class ConversationContext < InstanceContext
|
15
15
|
class MessageContext < InstanceContext
|
16
|
-
##
|
17
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
18
16
|
class DeliveryReceiptList < ListResource
|
19
17
|
##
|
20
18
|
# Initialize the DeliveryReceiptList
|
21
19
|
# @param [Version] version Version that contains the resource
|
22
|
-
# @param [String] chat_service_sid The SID of the
|
23
|
-
# Service
|
20
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
21
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
24
22
|
# Message resource is associated with.
|
25
23
|
# @param [String] conversation_sid The unique ID of the
|
26
|
-
# [
|
24
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
27
25
|
# for this message.
|
28
26
|
# @param [String] message_sid The SID of the message within a
|
29
|
-
# [
|
27
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
30
28
|
# the delivery receipt belongs to
|
31
29
|
# @return [DeliveryReceiptList] DeliveryReceiptList
|
32
30
|
def initialize(version, chat_service_sid: nil, conversation_sid: nil, message_sid: nil)
|
@@ -128,8 +126,6 @@ module Twilio
|
|
128
126
|
end
|
129
127
|
end
|
130
128
|
|
131
|
-
##
|
132
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
133
129
|
class DeliveryReceiptPage < Page
|
134
130
|
##
|
135
131
|
# Initialize the DeliveryReceiptPage
|
@@ -165,20 +161,18 @@ module Twilio
|
|
165
161
|
end
|
166
162
|
end
|
167
163
|
|
168
|
-
##
|
169
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
170
164
|
class DeliveryReceiptContext < InstanceContext
|
171
165
|
##
|
172
166
|
# Initialize the DeliveryReceiptContext
|
173
167
|
# @param [Version] version Version that contains the resource
|
174
|
-
# @param [String] chat_service_sid The SID of the
|
175
|
-
# Service
|
168
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
169
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
176
170
|
# Message resource is associated with.
|
177
171
|
# @param [String] conversation_sid The unique ID of the
|
178
|
-
# [
|
172
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
179
173
|
# for this message.
|
180
174
|
# @param [String] message_sid The SID of the message within a
|
181
|
-
# [
|
175
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
182
176
|
# the delivery receipt belongs to.
|
183
177
|
# @param [String] sid A 34 character string that uniquely identifies this
|
184
178
|
# resource.
|
@@ -227,21 +221,19 @@ module Twilio
|
|
227
221
|
end
|
228
222
|
end
|
229
223
|
|
230
|
-
##
|
231
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
232
224
|
class DeliveryReceiptInstance < InstanceResource
|
233
225
|
##
|
234
226
|
# Initialize the DeliveryReceiptInstance
|
235
227
|
# @param [Version] version Version that contains the resource
|
236
228
|
# @param [Hash] payload payload that contains response from Twilio
|
237
|
-
# @param [String] chat_service_sid The SID of the
|
238
|
-
# Service
|
229
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
230
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
239
231
|
# Message resource is associated with.
|
240
232
|
# @param [String] conversation_sid The unique ID of the
|
241
|
-
# [
|
233
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
242
234
|
# for this message.
|
243
235
|
# @param [String] message_sid The SID of the message within a
|
244
|
-
# [
|
236
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
245
237
|
# the delivery receipt belongs to
|
246
238
|
# @param [String] sid A 34 character string that uniquely identifies this
|
247
239
|
# resource.
|
@@ -341,7 +333,7 @@ module Twilio
|
|
341
333
|
end
|
342
334
|
|
343
335
|
##
|
344
|
-
# @return [String] The message
|
336
|
+
# @return [String] The message {delivery error code}[https://www.twilio.com/docs/sms/api/message-resource#delivery-related-errors] for a `failed` status
|
345
337
|
def error_code
|
346
338
|
@properties['error_code']
|
347
339
|
end
|
@@ -12,17 +12,15 @@ module Twilio
|
|
12
12
|
class V1 < Version
|
13
13
|
class ServiceContext < InstanceContext
|
14
14
|
class ConversationContext < InstanceContext
|
15
|
-
##
|
16
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
17
15
|
class ParticipantList < ListResource
|
18
16
|
##
|
19
17
|
# Initialize the ParticipantList
|
20
18
|
# @param [Version] version Version that contains the resource
|
21
|
-
# @param [String] chat_service_sid The SID of the
|
22
|
-
# Service
|
19
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
20
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
23
21
|
# Participant resource is associated with.
|
24
22
|
# @param [String] conversation_sid The unique ID of the
|
25
|
-
# [
|
23
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
26
24
|
# for this participant.
|
27
25
|
# @return [ParticipantList] ParticipantList
|
28
26
|
def initialize(version, chat_service_sid: nil, conversation_sid: nil)
|
@@ -36,8 +34,8 @@ module Twilio
|
|
36
34
|
##
|
37
35
|
# Create the ParticipantInstance
|
38
36
|
# @param [String] identity A unique string identifier for the conversation
|
39
|
-
# participant as
|
40
|
-
# User
|
37
|
+
# participant as {Conversation
|
38
|
+
# User}[https://www.twilio.com/docs/conversations/api/user-resource]. This
|
41
39
|
# parameter is non-null if (and only if) the participant is using the Conversation
|
42
40
|
# SDK to communicate. Limited to 256 characters.
|
43
41
|
# @param [String] messaging_binding_address The address of the participant's
|
@@ -59,7 +57,7 @@ module Twilio
|
|
59
57
|
# phone number that is used in Group MMS. Communication mask for the Conversation
|
60
58
|
# participant with Identity.
|
61
59
|
# @param [String] role_sid The SID of a conversation-level
|
62
|
-
# [
|
60
|
+
# {Role}[https://www.twilio.com/docs/conversations/api/role-resource] to assign to
|
63
61
|
# the participant.
|
64
62
|
# @param [participant.WebhookEnabledType] x_twilio_webhook_enabled The
|
65
63
|
# X-Twilio-Webhook-Enabled HTTP request header
|
@@ -174,8 +172,6 @@ module Twilio
|
|
174
172
|
end
|
175
173
|
end
|
176
174
|
|
177
|
-
##
|
178
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
179
175
|
class ParticipantPage < Page
|
180
176
|
##
|
181
177
|
# Initialize the ParticipantPage
|
@@ -210,17 +206,15 @@ module Twilio
|
|
210
206
|
end
|
211
207
|
end
|
212
208
|
|
213
|
-
##
|
214
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
215
209
|
class ParticipantContext < InstanceContext
|
216
210
|
##
|
217
211
|
# Initialize the ParticipantContext
|
218
212
|
# @param [Version] version Version that contains the resource
|
219
|
-
# @param [String] chat_service_sid The SID of the
|
220
|
-
# Service
|
213
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
214
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
221
215
|
# Participant resource is associated with.
|
222
216
|
# @param [String] conversation_sid The unique ID of the
|
223
|
-
# [
|
217
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
224
218
|
# for this participant.
|
225
219
|
# @param [String] sid A 34 character string that uniquely identifies this
|
226
220
|
# resource.
|
@@ -238,8 +232,8 @@ module Twilio
|
|
238
232
|
# @param [Time] date_created The date that this resource was created.
|
239
233
|
# @param [Time] date_updated The date that this resource was last updated.
|
240
234
|
# @param [String] identity A unique string identifier for the conversation
|
241
|
-
# participant as
|
242
|
-
# User
|
235
|
+
# participant as {Conversation
|
236
|
+
# User}[https://www.twilio.com/docs/conversations/api/user-resource]. This
|
243
237
|
# parameter is non-null if (and only if) the participant is using the Conversation
|
244
238
|
# SDK to communicate. Limited to 256 characters.
|
245
239
|
# @param [String] attributes An optional string metadata field you can use to
|
@@ -247,7 +241,7 @@ module Twilio
|
|
247
241
|
# if specified. **Note** that if the attributes are not set "{}" will be
|
248
242
|
# returned.
|
249
243
|
# @param [String] role_sid The SID of a conversation-level
|
250
|
-
# [
|
244
|
+
# {Role}[https://www.twilio.com/docs/conversations/api/role-resource] to assign to
|
251
245
|
# the participant.
|
252
246
|
# @param [String] messaging_binding_proxy_address The address of the Twilio phone
|
253
247
|
# number that the participant is in contact with. 'null' value will remove it.
|
@@ -320,18 +314,16 @@ module Twilio
|
|
320
314
|
end
|
321
315
|
end
|
322
316
|
|
323
|
-
##
|
324
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
325
317
|
class ParticipantInstance < InstanceResource
|
326
318
|
##
|
327
319
|
# Initialize the ParticipantInstance
|
328
320
|
# @param [Version] version Version that contains the resource
|
329
321
|
# @param [Hash] payload payload that contains response from Twilio
|
330
|
-
# @param [String] chat_service_sid The SID of the
|
331
|
-
# Service
|
322
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
323
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
332
324
|
# Participant resource is associated with.
|
333
325
|
# @param [String] conversation_sid The unique ID of the
|
334
|
-
# [
|
326
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
335
327
|
# for this participant.
|
336
328
|
# @param [String] sid A 34 character string that uniquely identifies this
|
337
329
|
# resource.
|
@@ -450,8 +442,8 @@ module Twilio
|
|
450
442
|
# @param [Time] date_created The date that this resource was created.
|
451
443
|
# @param [Time] date_updated The date that this resource was last updated.
|
452
444
|
# @param [String] identity A unique string identifier for the conversation
|
453
|
-
# participant as
|
454
|
-
# User
|
445
|
+
# participant as {Conversation
|
446
|
+
# User}[https://www.twilio.com/docs/conversations/api/user-resource]. This
|
455
447
|
# parameter is non-null if (and only if) the participant is using the Conversation
|
456
448
|
# SDK to communicate. Limited to 256 characters.
|
457
449
|
# @param [String] attributes An optional string metadata field you can use to
|
@@ -459,7 +451,7 @@ module Twilio
|
|
459
451
|
# if specified. **Note** that if the attributes are not set "{}" will be
|
460
452
|
# returned.
|
461
453
|
# @param [String] role_sid The SID of a conversation-level
|
462
|
-
# [
|
454
|
+
# {Role}[https://www.twilio.com/docs/conversations/api/role-resource] to assign to
|
463
455
|
# the participant.
|
464
456
|
# @param [String] messaging_binding_proxy_address The address of the Twilio phone
|
465
457
|
# number that the participant is in contact with. 'null' value will remove it.
|
@@ -12,17 +12,15 @@ module Twilio
|
|
12
12
|
class V1 < Version
|
13
13
|
class ServiceContext < InstanceContext
|
14
14
|
class ConversationContext < InstanceContext
|
15
|
-
##
|
16
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
17
15
|
class WebhookList < ListResource
|
18
16
|
##
|
19
17
|
# Initialize the WebhookList
|
20
18
|
# @param [Version] version Version that contains the resource
|
21
|
-
# @param [String] chat_service_sid The SID of the
|
22
|
-
# Service
|
19
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
20
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
23
21
|
# Participant resource is associated with.
|
24
22
|
# @param [String] conversation_sid The unique ID of the
|
25
|
-
# [
|
23
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
26
24
|
# for this webhook.
|
27
25
|
# @return [WebhookList] WebhookList
|
28
26
|
def initialize(version, chat_service_sid: nil, conversation_sid: nil)
|
@@ -158,8 +156,6 @@ module Twilio
|
|
158
156
|
end
|
159
157
|
end
|
160
158
|
|
161
|
-
##
|
162
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
163
159
|
class WebhookPage < Page
|
164
160
|
##
|
165
161
|
# Initialize the WebhookPage
|
@@ -194,17 +190,15 @@ module Twilio
|
|
194
190
|
end
|
195
191
|
end
|
196
192
|
|
197
|
-
##
|
198
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
199
193
|
class WebhookContext < InstanceContext
|
200
194
|
##
|
201
195
|
# Initialize the WebhookContext
|
202
196
|
# @param [Version] version Version that contains the resource
|
203
|
-
# @param [String] chat_service_sid The SID of the
|
204
|
-
# Service
|
197
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
198
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
205
199
|
# Participant resource is associated with.
|
206
200
|
# @param [String] conversation_sid The unique ID of the
|
207
|
-
# [
|
201
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
208
202
|
# for this webhook.
|
209
203
|
# @param [String] sid A 34 character string that uniquely identifies this
|
210
204
|
# resource.
|
@@ -287,18 +281,16 @@ module Twilio
|
|
287
281
|
end
|
288
282
|
end
|
289
283
|
|
290
|
-
##
|
291
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
292
284
|
class WebhookInstance < InstanceResource
|
293
285
|
##
|
294
286
|
# Initialize the WebhookInstance
|
295
287
|
# @param [Version] version Version that contains the resource
|
296
288
|
# @param [Hash] payload payload that contains response from Twilio
|
297
|
-
# @param [String] chat_service_sid The SID of the
|
298
|
-
# Service
|
289
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
290
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
299
291
|
# Participant resource is associated with.
|
300
292
|
# @param [String] conversation_sid The unique ID of the
|
301
|
-
# [
|
293
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
302
294
|
# for this webhook.
|
303
295
|
# @param [String] sid A 34 character string that uniquely identifies this
|
304
296
|
# resource.
|
@@ -11,14 +11,12 @@ module Twilio
|
|
11
11
|
class Conversations < Domain
|
12
12
|
class V1 < Version
|
13
13
|
class ServiceContext < InstanceContext
|
14
|
-
##
|
15
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
16
14
|
class RoleList < ListResource
|
17
15
|
##
|
18
16
|
# Initialize the RoleList
|
19
17
|
# @param [Version] version Version that contains the resource
|
20
|
-
# @param [String] chat_service_sid The SID of the
|
21
|
-
# Service
|
18
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
19
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
22
20
|
# Role resource is associated with.
|
23
21
|
# @return [RoleList] RoleList
|
24
22
|
def initialize(version, chat_service_sid: nil)
|
@@ -34,9 +32,9 @@ module Twilio
|
|
34
32
|
# @param [String] friendly_name A descriptive string that you create to describe
|
35
33
|
# the new resource. It can be up to 64 characters long.
|
36
34
|
# @param [role.RoleType] type The type of role. Can be: `conversation` for
|
37
|
-
# [
|
38
|
-
# roles or `service` for
|
39
|
-
# Service
|
35
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
36
|
+
# roles or `service` for {Conversation
|
37
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] roles.
|
40
38
|
# @param [String] permission A permission that you grant to the new role. Only one
|
41
39
|
# permission can be granted per parameter. To assign more than one permission,
|
42
40
|
# repeat this parameter for each permission value. The values for this parameter
|
@@ -141,8 +139,6 @@ module Twilio
|
|
141
139
|
end
|
142
140
|
end
|
143
141
|
|
144
|
-
##
|
145
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
146
142
|
class RolePage < Page
|
147
143
|
##
|
148
144
|
# Initialize the RolePage
|
@@ -172,14 +168,12 @@ module Twilio
|
|
172
168
|
end
|
173
169
|
end
|
174
170
|
|
175
|
-
##
|
176
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
177
171
|
class RoleContext < InstanceContext
|
178
172
|
##
|
179
173
|
# Initialize the RoleContext
|
180
174
|
# @param [Version] version Version that contains the resource
|
181
|
-
# @param [String] chat_service_sid The SID of the
|
182
|
-
# Service
|
175
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
176
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] to
|
183
177
|
# fetch the Role resource from.
|
184
178
|
# @param [String] sid The SID of the Role resource to fetch.
|
185
179
|
# @return [RoleContext] RoleContext
|
@@ -249,15 +243,13 @@ module Twilio
|
|
249
243
|
end
|
250
244
|
end
|
251
245
|
|
252
|
-
##
|
253
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
254
246
|
class RoleInstance < InstanceResource
|
255
247
|
##
|
256
248
|
# Initialize the RoleInstance
|
257
249
|
# @param [Version] version Version that contains the resource
|
258
250
|
# @param [Hash] payload payload that contains response from Twilio
|
259
|
-
# @param [String] chat_service_sid The SID of the
|
260
|
-
# Service
|
251
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
252
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
261
253
|
# Role resource is associated with.
|
262
254
|
# @param [String] sid The SID of the Role resource to fetch.
|
263
255
|
# @return [RoleInstance] RoleInstance
|
@@ -342,7 +334,7 @@ module Twilio
|
|
342
334
|
end
|
343
335
|
|
344
336
|
##
|
345
|
-
# @return [String]
|
337
|
+
# @return [String] An absolute URL for this user role.
|
346
338
|
def url
|
347
339
|
@properties['url']
|
348
340
|
end
|