twilio-ruby 5.40.2 → 5.43.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 +111 -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/framework/version.rb +2 -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 +32 -23
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +32 -23
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +32 -23
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +32 -23
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +32 -23
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +32 -23
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +32 -23
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +41 -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 +20 -14
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +29 -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 +28 -21
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +6 -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 +19 -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 +15 -11
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +3 -3
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +33 -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 +31 -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.rb +0 -16
- data/lib/twilio-ruby/rest/conversations/v1.rb +0 -24
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +23 -21
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +254 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +20 -20
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +15 -20
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +23 -25
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +42 -44
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +14 -19
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +1 -9
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +5 -11
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +2 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +34 -39
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +32 -28
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +307 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +27 -25
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +24 -29
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +33 -35
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +52 -54
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +24 -29
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +14 -20
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +53 -42
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +44 -33
- data/lib/twilio-ruby/rest/events.rb +10 -1
- data/lib/twilio-ruby/rest/events/v1.rb +17 -1
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +8 -8
- data/lib/twilio-ruby/rest/events/v1/schema.rb +226 -0
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +290 -0
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +40 -13
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +3 -109
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +28 -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 +39 -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/credential.rb +12 -6
- 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 +23 -15
- 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 +15 -10
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +9 -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/business/insights.rb +1 -4
- 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 +13 -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 +16 -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 +4 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +16 -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 +46 -53
- 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 +3 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +3 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +201 -0
- 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 +14 -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 +13 -9
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +33 -24
- data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/room.rb +27 -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 +3 -6
- 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 +8 -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/util/configuration.rb +5 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/framework/version_spec.rb +11 -0
- 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_spec.rb +20 -10
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +30 -0
- data/spec/integration/bulkexports/v1/export/export_custom_job_spec.rb +4 -2
- data/spec/integration/conversations/v1/{webhook_spec.rb → configuration/webhook_spec.rb} +12 -8
- data/spec/integration/conversations/v1/configuration_spec.rb +4 -2
- data/spec/integration/conversations/v1/conversation_spec.rb +1 -1
- data/spec/integration/conversations/v1/{notification_spec.rb → service/configuration/notification_spec.rb} +12 -4
- 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/schema/schema_version_spec.rb +126 -0
- data/spec/integration/events/v1/schema_spec.rb +46 -0
- data/spec/integration/events/v1/sink/sink_test_spec.rb +1 -1
- data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +0 -121
- data/spec/integration/events/v1/subscription_spec.rb +87 -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/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/trunking/v1/trunk/recording_spec.rb +79 -0
- 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 +60 -19
- data/lib/twilio-ruby/rest/conversations/v1/notification.rb +0 -310
- data/lib/twilio-ruby/rest/conversations/v1/webhook.rb +0 -262
- 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
|
@@ -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 ConversationList < ListResource
|
|
17
15
|
##
|
|
18
16
|
# Initialize the ConversationList
|
|
19
17
|
# @param [Version] version Version that contains the resource
|
|
20
|
-
# @param [String] chat_service_sid The unique
|
|
21
|
-
# Service
|
|
18
|
+
# @param [String] chat_service_sid The unique ID of the {Conversation
|
|
19
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] this
|
|
22
20
|
# conversation belongs to.
|
|
23
21
|
# @return [ConversationList] ConversationList
|
|
24
22
|
def initialize(version, chat_service_sid: nil)
|
|
@@ -40,8 +38,8 @@ module Twilio
|
|
|
40
38
|
# store any data you wish. The string value must contain structurally valid JSON
|
|
41
39
|
# if specified. **Note** that if the attributes are not set "{}" will be
|
|
42
40
|
# returned.
|
|
43
|
-
# @param [String] messaging_service_sid The unique
|
|
44
|
-
# Service
|
|
41
|
+
# @param [String] messaging_service_sid The unique ID of the {Messaging
|
|
42
|
+
# Service}[https://www.twilio.com/docs/sms/services/api] this conversation belongs
|
|
45
43
|
# to.
|
|
46
44
|
# @param [Time] date_created The date that this resource was created.
|
|
47
45
|
# @param [Time] date_updated The date that this resource was last updated.
|
|
@@ -160,8 +158,6 @@ module Twilio
|
|
|
160
158
|
end
|
|
161
159
|
end
|
|
162
160
|
|
|
163
|
-
##
|
|
164
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
165
161
|
class ConversationPage < Page
|
|
166
162
|
##
|
|
167
163
|
# Initialize the ConversationPage
|
|
@@ -191,13 +187,13 @@ module Twilio
|
|
|
191
187
|
end
|
|
192
188
|
end
|
|
193
189
|
|
|
194
|
-
##
|
|
195
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
196
190
|
class ConversationContext < InstanceContext
|
|
197
191
|
##
|
|
198
192
|
# Initialize the ConversationContext
|
|
199
193
|
# @param [Version] version Version that contains the resource
|
|
200
|
-
# @param [String] chat_service_sid The
|
|
194
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
|
195
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
|
196
|
+
# Conversation resource is associated with.
|
|
201
197
|
# @param [String] sid A 34 character string that uniquely identifies this
|
|
202
198
|
# resource. Can also be the `unique_name` of the Conversation.
|
|
203
199
|
# @return [ConversationContext] ConversationContext
|
|
@@ -224,8 +220,8 @@ module Twilio
|
|
|
224
220
|
# store any data you wish. The string value must contain structurally valid JSON
|
|
225
221
|
# if specified. **Note** that if the attributes are not set "{}" will be
|
|
226
222
|
# returned.
|
|
227
|
-
# @param [String] messaging_service_sid The unique
|
|
228
|
-
# Service
|
|
223
|
+
# @param [String] messaging_service_sid The unique ID of the {Messaging
|
|
224
|
+
# Service}[https://www.twilio.com/docs/sms/services/api] this conversation belongs
|
|
229
225
|
# to.
|
|
230
226
|
# @param [conversation.State] state Current state of this conversation. Can be
|
|
231
227
|
# either `active`, `inactive` or `closed` and defaults to `active`
|
|
@@ -233,10 +229,13 @@ module Twilio
|
|
|
233
229
|
# switched to `inactive` state. Minimum value for this timer is 1 minute.
|
|
234
230
|
# @param [String] timers_closed ISO8601 duration when conversation will be
|
|
235
231
|
# switched to `closed` state. Minimum value for this timer is 10 minutes.
|
|
232
|
+
# @param [String] unique_name An application-defined string that uniquely
|
|
233
|
+
# identifies the resource. It can be used to address the resource in place of the
|
|
234
|
+
# resource's `sid` in the URL.
|
|
236
235
|
# @param [conversation.WebhookEnabledType] x_twilio_webhook_enabled The
|
|
237
236
|
# X-Twilio-Webhook-Enabled HTTP request header
|
|
238
237
|
# @return [ConversationInstance] Updated ConversationInstance
|
|
239
|
-
def update(friendly_name: :unset, date_created: :unset, date_updated: :unset, attributes: :unset, messaging_service_sid: :unset, state: :unset, timers_inactive: :unset, timers_closed: :unset, x_twilio_webhook_enabled: :unset)
|
|
238
|
+
def update(friendly_name: :unset, date_created: :unset, date_updated: :unset, attributes: :unset, messaging_service_sid: :unset, state: :unset, timers_inactive: :unset, timers_closed: :unset, unique_name: :unset, x_twilio_webhook_enabled: :unset)
|
|
240
239
|
data = Twilio::Values.of({
|
|
241
240
|
'FriendlyName' => friendly_name,
|
|
242
241
|
'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
|
|
@@ -246,6 +245,7 @@ module Twilio
|
|
|
246
245
|
'State' => state,
|
|
247
246
|
'Timers.Inactive' => timers_inactive,
|
|
248
247
|
'Timers.Closed' => timers_closed,
|
|
248
|
+
'UniqueName' => unique_name,
|
|
249
249
|
})
|
|
250
250
|
headers = Twilio::Values.of({'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
|
251
251
|
|
|
@@ -365,15 +365,13 @@ module Twilio
|
|
|
365
365
|
end
|
|
366
366
|
end
|
|
367
367
|
|
|
368
|
-
##
|
|
369
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
370
368
|
class ConversationInstance < InstanceResource
|
|
371
369
|
##
|
|
372
370
|
# Initialize the ConversationInstance
|
|
373
371
|
# @param [Version] version Version that contains the resource
|
|
374
372
|
# @param [Hash] payload payload that contains response from Twilio
|
|
375
|
-
# @param [String] chat_service_sid The unique
|
|
376
|
-
# Service
|
|
373
|
+
# @param [String] chat_service_sid The unique ID of the {Conversation
|
|
374
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] this
|
|
377
375
|
# conversation belongs to.
|
|
378
376
|
# @param [String] sid A 34 character string that uniquely identifies this
|
|
379
377
|
# resource. Can also be the `unique_name` of the Conversation.
|
|
@@ -415,19 +413,19 @@ module Twilio
|
|
|
415
413
|
end
|
|
416
414
|
|
|
417
415
|
##
|
|
418
|
-
# @return [String] The unique
|
|
416
|
+
# @return [String] The unique ID of the Account responsible for this conversation.
|
|
419
417
|
def account_sid
|
|
420
418
|
@properties['account_sid']
|
|
421
419
|
end
|
|
422
420
|
|
|
423
421
|
##
|
|
424
|
-
# @return [String] The unique
|
|
422
|
+
# @return [String] The unique ID of the Conversation Service this conversation belongs to.
|
|
425
423
|
def chat_service_sid
|
|
426
424
|
@properties['chat_service_sid']
|
|
427
425
|
end
|
|
428
426
|
|
|
429
427
|
##
|
|
430
|
-
# @return [String] The unique
|
|
428
|
+
# @return [String] The unique ID of the Messaging Service this conversation belongs to.
|
|
431
429
|
def messaging_service_sid
|
|
432
430
|
@properties['messaging_service_sid']
|
|
433
431
|
end
|
|
@@ -487,7 +485,7 @@ module Twilio
|
|
|
487
485
|
end
|
|
488
486
|
|
|
489
487
|
##
|
|
490
|
-
# @return [String] Absolute URLs to access the
|
|
488
|
+
# @return [String] Absolute URLs to access the participants, messages and webhooks of this conversation.
|
|
491
489
|
def links
|
|
492
490
|
@properties['links']
|
|
493
491
|
end
|
|
@@ -502,8 +500,8 @@ module Twilio
|
|
|
502
500
|
# store any data you wish. The string value must contain structurally valid JSON
|
|
503
501
|
# if specified. **Note** that if the attributes are not set "{}" will be
|
|
504
502
|
# returned.
|
|
505
|
-
# @param [String] messaging_service_sid The unique
|
|
506
|
-
# Service
|
|
503
|
+
# @param [String] messaging_service_sid The unique ID of the {Messaging
|
|
504
|
+
# Service}[https://www.twilio.com/docs/sms/services/api] this conversation belongs
|
|
507
505
|
# to.
|
|
508
506
|
# @param [conversation.State] state Current state of this conversation. Can be
|
|
509
507
|
# either `active`, `inactive` or `closed` and defaults to `active`
|
|
@@ -511,10 +509,13 @@ module Twilio
|
|
|
511
509
|
# switched to `inactive` state. Minimum value for this timer is 1 minute.
|
|
512
510
|
# @param [String] timers_closed ISO8601 duration when conversation will be
|
|
513
511
|
# switched to `closed` state. Minimum value for this timer is 10 minutes.
|
|
512
|
+
# @param [String] unique_name An application-defined string that uniquely
|
|
513
|
+
# identifies the resource. It can be used to address the resource in place of the
|
|
514
|
+
# resource's `sid` in the URL.
|
|
514
515
|
# @param [conversation.WebhookEnabledType] x_twilio_webhook_enabled The
|
|
515
516
|
# X-Twilio-Webhook-Enabled HTTP request header
|
|
516
517
|
# @return [ConversationInstance] Updated ConversationInstance
|
|
517
|
-
def update(friendly_name: :unset, date_created: :unset, date_updated: :unset, attributes: :unset, messaging_service_sid: :unset, state: :unset, timers_inactive: :unset, timers_closed: :unset, x_twilio_webhook_enabled: :unset)
|
|
518
|
+
def update(friendly_name: :unset, date_created: :unset, date_updated: :unset, attributes: :unset, messaging_service_sid: :unset, state: :unset, timers_inactive: :unset, timers_closed: :unset, unique_name: :unset, x_twilio_webhook_enabled: :unset)
|
|
518
519
|
context.update(
|
|
519
520
|
friendly_name: friendly_name,
|
|
520
521
|
date_created: date_created,
|
|
@@ -524,6 +525,7 @@ module Twilio
|
|
|
524
525
|
state: state,
|
|
525
526
|
timers_inactive: timers_inactive,
|
|
526
527
|
timers_closed: timers_closed,
|
|
528
|
+
unique_name: unique_name,
|
|
527
529
|
x_twilio_webhook_enabled: x_twilio_webhook_enabled,
|
|
528
530
|
)
|
|
529
531
|
end
|
|
@@ -12,17 +12,16 @@ 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
|
|
23
|
-
# resource is associated with.
|
|
24
|
-
# @param [String] conversation_sid The unique
|
|
25
|
-
# [
|
|
19
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
|
20
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
|
21
|
+
# Participant resource is associated with.
|
|
22
|
+
# @param [String] conversation_sid The unique ID of the
|
|
23
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
24
|
+
# for this message.
|
|
26
25
|
# @return [MessageList] MessageList
|
|
27
26
|
def initialize(version, chat_service_sid: nil, conversation_sid: nil)
|
|
28
27
|
super(version)
|
|
@@ -44,7 +43,7 @@ module Twilio
|
|
|
44
43
|
# @param [String] attributes A string metadata field you can use to store any data
|
|
45
44
|
# you wish. The string value must contain structurally valid JSON if specified.
|
|
46
45
|
# **Note** that if the attributes are not set "{}" will be returned.
|
|
47
|
-
# @param [String] media_sid The Media
|
|
46
|
+
# @param [String] media_sid The Media SID to be attached to the new Message.
|
|
48
47
|
# @param [message.WebhookEnabledType] x_twilio_webhook_enabled The
|
|
49
48
|
# X-Twilio-Webhook-Enabled HTTP request header
|
|
50
49
|
# @return [MessageInstance] Created MessageInstance
|
|
@@ -156,8 +155,6 @@ module Twilio
|
|
|
156
155
|
end
|
|
157
156
|
end
|
|
158
157
|
|
|
159
|
-
##
|
|
160
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
161
158
|
class MessagePage < Page
|
|
162
159
|
##
|
|
163
160
|
# Initialize the MessagePage
|
|
@@ -192,17 +189,16 @@ module Twilio
|
|
|
192
189
|
end
|
|
193
190
|
end
|
|
194
191
|
|
|
195
|
-
##
|
|
196
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
197
192
|
class MessageContext < InstanceContext
|
|
198
193
|
##
|
|
199
194
|
# Initialize the MessageContext
|
|
200
195
|
# @param [Version] version Version that contains the resource
|
|
201
|
-
# @param [String] chat_service_sid The SID of the
|
|
202
|
-
# Service
|
|
203
|
-
# resource is associated with.
|
|
204
|
-
# @param [String] conversation_sid The unique
|
|
205
|
-
# [
|
|
196
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
|
197
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
|
198
|
+
# Participant resource is associated with.
|
|
199
|
+
# @param [String] conversation_sid The unique ID of the
|
|
200
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
201
|
+
# for this message.
|
|
206
202
|
# @param [String] sid A 34 character string that uniquely identifies this
|
|
207
203
|
# resource.
|
|
208
204
|
# @return [MessageContext] MessageContext
|
|
@@ -323,18 +319,17 @@ module Twilio
|
|
|
323
319
|
end
|
|
324
320
|
end
|
|
325
321
|
|
|
326
|
-
##
|
|
327
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
328
322
|
class MessageInstance < InstanceResource
|
|
329
323
|
##
|
|
330
324
|
# Initialize the MessageInstance
|
|
331
325
|
# @param [Version] version Version that contains the resource
|
|
332
326
|
# @param [Hash] payload payload that contains response from Twilio
|
|
333
|
-
# @param [String] chat_service_sid The SID of the
|
|
334
|
-
# Service
|
|
335
|
-
# resource is associated with.
|
|
336
|
-
# @param [String] conversation_sid The unique
|
|
337
|
-
# [
|
|
327
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
|
328
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
|
329
|
+
# Participant resource is associated with.
|
|
330
|
+
# @param [String] conversation_sid The unique ID of the
|
|
331
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
332
|
+
# for this message.
|
|
338
333
|
# @param [String] sid A 34 character string that uniquely identifies this
|
|
339
334
|
# resource.
|
|
340
335
|
# @return [MessageInstance] MessageInstance
|
|
@@ -386,19 +381,19 @@ module Twilio
|
|
|
386
381
|
end
|
|
387
382
|
|
|
388
383
|
##
|
|
389
|
-
# @return [String] The unique
|
|
384
|
+
# @return [String] The unique ID of the Account responsible for this message.
|
|
390
385
|
def account_sid
|
|
391
386
|
@properties['account_sid']
|
|
392
387
|
end
|
|
393
388
|
|
|
394
389
|
##
|
|
395
|
-
# @return [String] The SID of the
|
|
390
|
+
# @return [String] The SID of the Conversation Service that the resource is associated with.
|
|
396
391
|
def chat_service_sid
|
|
397
392
|
@properties['chat_service_sid']
|
|
398
393
|
end
|
|
399
394
|
|
|
400
395
|
##
|
|
401
|
-
# @return [String] The unique
|
|
396
|
+
# @return [String] The unique ID of the Conversation for this message.
|
|
402
397
|
def conversation_sid
|
|
403
398
|
@properties['conversation_sid']
|
|
404
399
|
end
|
|
@@ -440,7 +435,7 @@ module Twilio
|
|
|
440
435
|
end
|
|
441
436
|
|
|
442
437
|
##
|
|
443
|
-
# @return [String] The unique
|
|
438
|
+
# @return [String] The unique ID of messages's author participant.
|
|
444
439
|
def participant_sid
|
|
445
440
|
@properties['participant_sid']
|
|
446
441
|
end
|
|
@@ -470,7 +465,7 @@ module Twilio
|
|
|
470
465
|
end
|
|
471
466
|
|
|
472
467
|
##
|
|
473
|
-
# @return [String] Absolute
|
|
468
|
+
# @return [String] Absolute URL to access the receipts of this message.
|
|
474
469
|
def links
|
|
475
470
|
@properties['links']
|
|
476
471
|
end
|
|
@@ -13,19 +13,19 @@ 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
|
|
24
|
-
# resource is associated with.
|
|
25
|
-
# @param [String] conversation_sid The unique
|
|
26
|
-
# [
|
|
27
|
-
#
|
|
28
|
-
#
|
|
20
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
|
21
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
|
22
|
+
# Message resource is associated with.
|
|
23
|
+
# @param [String] conversation_sid The unique ID of the
|
|
24
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
25
|
+
# for this message.
|
|
26
|
+
# @param [String] message_sid The SID of the message within a
|
|
27
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
28
|
+
# the delivery receipt belongs to
|
|
29
29
|
# @return [DeliveryReceiptList] DeliveryReceiptList
|
|
30
30
|
def initialize(version, chat_service_sid: nil, conversation_sid: nil, message_sid: nil)
|
|
31
31
|
super(version)
|
|
@@ -126,8 +126,6 @@ module Twilio
|
|
|
126
126
|
end
|
|
127
127
|
end
|
|
128
128
|
|
|
129
|
-
##
|
|
130
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
131
129
|
class DeliveryReceiptPage < Page
|
|
132
130
|
##
|
|
133
131
|
# Initialize the DeliveryReceiptPage
|
|
@@ -163,19 +161,19 @@ module Twilio
|
|
|
163
161
|
end
|
|
164
162
|
end
|
|
165
163
|
|
|
166
|
-
##
|
|
167
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
168
164
|
class DeliveryReceiptContext < InstanceContext
|
|
169
165
|
##
|
|
170
166
|
# Initialize the DeliveryReceiptContext
|
|
171
167
|
# @param [Version] version Version that contains the resource
|
|
172
|
-
# @param [String] chat_service_sid The SID of the
|
|
173
|
-
# Service
|
|
174
|
-
# resource is associated with.
|
|
175
|
-
# @param [String] conversation_sid The unique
|
|
176
|
-
# [
|
|
177
|
-
#
|
|
178
|
-
#
|
|
168
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
|
169
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
|
170
|
+
# Message resource is associated with.
|
|
171
|
+
# @param [String] conversation_sid The unique ID of the
|
|
172
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
173
|
+
# for this message.
|
|
174
|
+
# @param [String] message_sid The SID of the message within a
|
|
175
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
176
|
+
# the delivery receipt belongs to.
|
|
179
177
|
# @param [String] sid A 34 character string that uniquely identifies this
|
|
180
178
|
# resource.
|
|
181
179
|
# @return [DeliveryReceiptContext] DeliveryReceiptContext
|
|
@@ -223,20 +221,20 @@ module Twilio
|
|
|
223
221
|
end
|
|
224
222
|
end
|
|
225
223
|
|
|
226
|
-
##
|
|
227
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
228
224
|
class DeliveryReceiptInstance < InstanceResource
|
|
229
225
|
##
|
|
230
226
|
# Initialize the DeliveryReceiptInstance
|
|
231
227
|
# @param [Version] version Version that contains the resource
|
|
232
228
|
# @param [Hash] payload payload that contains response from Twilio
|
|
233
|
-
# @param [String] chat_service_sid The SID of the
|
|
234
|
-
# Service
|
|
235
|
-
# resource is associated with.
|
|
236
|
-
# @param [String] conversation_sid The unique
|
|
237
|
-
# [
|
|
238
|
-
#
|
|
239
|
-
#
|
|
229
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
|
230
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
|
231
|
+
# Message resource is associated with.
|
|
232
|
+
# @param [String] conversation_sid The unique ID of the
|
|
233
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
234
|
+
# for this message.
|
|
235
|
+
# @param [String] message_sid The SID of the message within a
|
|
236
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
237
|
+
# the delivery receipt belongs to
|
|
240
238
|
# @param [String] sid A 34 character string that uniquely identifies this
|
|
241
239
|
# resource.
|
|
242
240
|
# @return [DeliveryReceiptInstance] DeliveryReceiptInstance
|
|
@@ -287,25 +285,25 @@ module Twilio
|
|
|
287
285
|
end
|
|
288
286
|
|
|
289
287
|
##
|
|
290
|
-
# @return [String] The unique
|
|
288
|
+
# @return [String] The unique ID of the Account responsible for this participant.
|
|
291
289
|
def account_sid
|
|
292
290
|
@properties['account_sid']
|
|
293
291
|
end
|
|
294
292
|
|
|
295
293
|
##
|
|
296
|
-
# @return [String] The SID of the
|
|
294
|
+
# @return [String] The SID of the Conversation Service that the resource is associated with.
|
|
297
295
|
def chat_service_sid
|
|
298
296
|
@properties['chat_service_sid']
|
|
299
297
|
end
|
|
300
298
|
|
|
301
299
|
##
|
|
302
|
-
# @return [String] The unique
|
|
300
|
+
# @return [String] The unique ID of the Conversation for this message.
|
|
303
301
|
def conversation_sid
|
|
304
302
|
@properties['conversation_sid']
|
|
305
303
|
end
|
|
306
304
|
|
|
307
305
|
##
|
|
308
|
-
# @return [String] The
|
|
306
|
+
# @return [String] The SID of the message the delivery receipt belongs to
|
|
309
307
|
def message_sid
|
|
310
308
|
@properties['message_sid']
|
|
311
309
|
end
|
|
@@ -323,7 +321,7 @@ module Twilio
|
|
|
323
321
|
end
|
|
324
322
|
|
|
325
323
|
##
|
|
326
|
-
# @return [String] The unique
|
|
324
|
+
# @return [String] The unique ID of the participant the delivery receipt belongs to.
|
|
327
325
|
def participant_sid
|
|
328
326
|
@properties['participant_sid']
|
|
329
327
|
end
|
|
@@ -335,7 +333,7 @@ module Twilio
|
|
|
335
333
|
end
|
|
336
334
|
|
|
337
335
|
##
|
|
338
|
-
# @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
|
|
339
337
|
def error_code
|
|
340
338
|
@properties['error_code']
|
|
341
339
|
end
|
|
@@ -12,17 +12,16 @@ 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
|
|
23
|
-
# resource is associated with.
|
|
24
|
-
# @param [String] conversation_sid The unique
|
|
25
|
-
# [
|
|
19
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
|
20
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
|
21
|
+
# Participant resource is associated with.
|
|
22
|
+
# @param [String] conversation_sid The unique ID of the
|
|
23
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
24
|
+
# for this participant.
|
|
26
25
|
# @return [ParticipantList] ParticipantList
|
|
27
26
|
def initialize(version, chat_service_sid: nil, conversation_sid: nil)
|
|
28
27
|
super(version)
|
|
@@ -35,18 +34,19 @@ module Twilio
|
|
|
35
34
|
##
|
|
36
35
|
# Create the ParticipantInstance
|
|
37
36
|
# @param [String] identity A unique string identifier for the conversation
|
|
38
|
-
# participant as
|
|
39
|
-
#
|
|
40
|
-
#
|
|
37
|
+
# participant as {Conversation
|
|
38
|
+
# User}[https://www.twilio.com/docs/conversations/api/user-resource]. This
|
|
39
|
+
# parameter is non-null if (and only if) the participant is using the Conversation
|
|
40
|
+
# SDK to communicate. Limited to 256 characters.
|
|
41
41
|
# @param [String] messaging_binding_address The address of the participant's
|
|
42
|
-
# device, e.g. a phone
|
|
43
|
-
#
|
|
44
|
-
#
|
|
45
|
-
#
|
|
42
|
+
# device, e.g. a phone or WhatsApp number. Together with the Proxy address, this
|
|
43
|
+
# determines a participant uniquely. This field (with proxy_address) is only null
|
|
44
|
+
# when the participant is interacting from an SDK endpoint (see the 'identity'
|
|
45
|
+
# field).
|
|
46
46
|
# @param [String] messaging_binding_proxy_address The address of the Twilio phone
|
|
47
|
-
# number (or WhatsApp number
|
|
48
|
-
#
|
|
49
|
-
#
|
|
47
|
+
# number (or WhatsApp number) that the participant is in contact with. This field,
|
|
48
|
+
# together with participant address, is only null when the participant is
|
|
49
|
+
# interacting from an SDK endpoint (see the 'identity' field).
|
|
50
50
|
# @param [Time] date_created The date that this resource was created.
|
|
51
51
|
# @param [Time] date_updated The date that this resource was last updated.
|
|
52
52
|
# @param [String] attributes An optional string metadata field you can use to
|
|
@@ -54,11 +54,11 @@ module Twilio
|
|
|
54
54
|
# if specified. **Note** that if the attributes are not set "{}" will be
|
|
55
55
|
# returned.
|
|
56
56
|
# @param [String] messaging_binding_projected_address The address of the Twilio
|
|
57
|
-
# phone number that is used in Group MMS. Communication mask for the
|
|
57
|
+
# phone number that is used in Group MMS. Communication mask for the Conversation
|
|
58
58
|
# participant with Identity.
|
|
59
|
-
# @param [String] role_sid The SID of
|
|
60
|
-
# [
|
|
61
|
-
# participant.
|
|
59
|
+
# @param [String] role_sid The SID of a conversation-level
|
|
60
|
+
# {Role}[https://www.twilio.com/docs/conversations/api/role-resource] to assign to
|
|
61
|
+
# the participant.
|
|
62
62
|
# @param [participant.WebhookEnabledType] x_twilio_webhook_enabled The
|
|
63
63
|
# X-Twilio-Webhook-Enabled HTTP request header
|
|
64
64
|
# @return [ParticipantInstance] Created ParticipantInstance
|
|
@@ -172,8 +172,6 @@ module Twilio
|
|
|
172
172
|
end
|
|
173
173
|
end
|
|
174
174
|
|
|
175
|
-
##
|
|
176
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
177
175
|
class ParticipantPage < Page
|
|
178
176
|
##
|
|
179
177
|
# Initialize the ParticipantPage
|
|
@@ -208,17 +206,16 @@ module Twilio
|
|
|
208
206
|
end
|
|
209
207
|
end
|
|
210
208
|
|
|
211
|
-
##
|
|
212
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
213
209
|
class ParticipantContext < InstanceContext
|
|
214
210
|
##
|
|
215
211
|
# Initialize the ParticipantContext
|
|
216
212
|
# @param [Version] version Version that contains the resource
|
|
217
|
-
# @param [String] chat_service_sid The SID of the
|
|
218
|
-
# Service
|
|
219
|
-
# resource is associated with.
|
|
220
|
-
# @param [String] conversation_sid The unique
|
|
221
|
-
# [
|
|
213
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
|
214
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
|
215
|
+
# Participant resource is associated with.
|
|
216
|
+
# @param [String] conversation_sid The unique ID of the
|
|
217
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
218
|
+
# for this participant.
|
|
222
219
|
# @param [String] sid A 34 character string that uniquely identifies this
|
|
223
220
|
# resource.
|
|
224
221
|
# @return [ParticipantContext] ParticipantContext
|
|
@@ -235,16 +232,17 @@ module Twilio
|
|
|
235
232
|
# @param [Time] date_created The date that this resource was created.
|
|
236
233
|
# @param [Time] date_updated The date that this resource was last updated.
|
|
237
234
|
# @param [String] identity A unique string identifier for the conversation
|
|
238
|
-
# participant as
|
|
239
|
-
#
|
|
240
|
-
#
|
|
235
|
+
# participant as {Conversation
|
|
236
|
+
# User}[https://www.twilio.com/docs/conversations/api/user-resource]. This
|
|
237
|
+
# parameter is non-null if (and only if) the participant is using the Conversation
|
|
238
|
+
# SDK to communicate. Limited to 256 characters.
|
|
241
239
|
# @param [String] attributes An optional string metadata field you can use to
|
|
242
240
|
# store any data you wish. The string value must contain structurally valid JSON
|
|
243
241
|
# if specified. **Note** that if the attributes are not set "{}" will be
|
|
244
242
|
# returned.
|
|
245
|
-
# @param [String] role_sid The SID of
|
|
246
|
-
# [
|
|
247
|
-
# participant.
|
|
243
|
+
# @param [String] role_sid The SID of a conversation-level
|
|
244
|
+
# {Role}[https://www.twilio.com/docs/conversations/api/role-resource] to assign to
|
|
245
|
+
# the participant.
|
|
248
246
|
# @param [String] messaging_binding_proxy_address The address of the Twilio phone
|
|
249
247
|
# number that the participant is in contact with. 'null' value will remove it.
|
|
250
248
|
# @param [String] messaging_binding_projected_address The address of the Twilio
|
|
@@ -316,18 +314,17 @@ module Twilio
|
|
|
316
314
|
end
|
|
317
315
|
end
|
|
318
316
|
|
|
319
|
-
##
|
|
320
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
321
317
|
class ParticipantInstance < InstanceResource
|
|
322
318
|
##
|
|
323
319
|
# Initialize the ParticipantInstance
|
|
324
320
|
# @param [Version] version Version that contains the resource
|
|
325
321
|
# @param [Hash] payload payload that contains response from Twilio
|
|
326
|
-
# @param [String] chat_service_sid The SID of the
|
|
327
|
-
# Service
|
|
328
|
-
# resource is associated with.
|
|
329
|
-
# @param [String] conversation_sid The unique
|
|
330
|
-
# [
|
|
322
|
+
# @param [String] chat_service_sid The SID of the {Conversation
|
|
323
|
+
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
|
|
324
|
+
# Participant resource is associated with.
|
|
325
|
+
# @param [String] conversation_sid The unique ID of the
|
|
326
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
|
327
|
+
# for this participant.
|
|
331
328
|
# @param [String] sid A 34 character string that uniquely identifies this
|
|
332
329
|
# resource.
|
|
333
330
|
# @return [ParticipantInstance] ParticipantInstance
|
|
@@ -375,19 +372,19 @@ module Twilio
|
|
|
375
372
|
end
|
|
376
373
|
|
|
377
374
|
##
|
|
378
|
-
# @return [String] The unique
|
|
375
|
+
# @return [String] The unique ID of the Account responsible for this participant.
|
|
379
376
|
def account_sid
|
|
380
377
|
@properties['account_sid']
|
|
381
378
|
end
|
|
382
379
|
|
|
383
380
|
##
|
|
384
|
-
# @return [String] The SID of the
|
|
381
|
+
# @return [String] The SID of the Conversation Service that the resource is associated with.
|
|
385
382
|
def chat_service_sid
|
|
386
383
|
@properties['chat_service_sid']
|
|
387
384
|
end
|
|
388
385
|
|
|
389
386
|
##
|
|
390
|
-
# @return [String] The unique
|
|
387
|
+
# @return [String] The unique ID of the Conversation for this participant.
|
|
391
388
|
def conversation_sid
|
|
392
389
|
@properties['conversation_sid']
|
|
393
390
|
end
|
|
@@ -399,7 +396,7 @@ module Twilio
|
|
|
399
396
|
end
|
|
400
397
|
|
|
401
398
|
##
|
|
402
|
-
# @return [String] A unique string identifier for the conversation participant as
|
|
399
|
+
# @return [String] A unique string identifier for the conversation participant as Conversation User.
|
|
403
400
|
def identity
|
|
404
401
|
@properties['identity']
|
|
405
402
|
end
|
|
@@ -417,7 +414,7 @@ module Twilio
|
|
|
417
414
|
end
|
|
418
415
|
|
|
419
416
|
##
|
|
420
|
-
# @return [String] The SID of
|
|
417
|
+
# @return [String] The SID of a conversation-level Role to assign to the participant
|
|
421
418
|
def role_sid
|
|
422
419
|
@properties['role_sid']
|
|
423
420
|
end
|
|
@@ -445,16 +442,17 @@ module Twilio
|
|
|
445
442
|
# @param [Time] date_created The date that this resource was created.
|
|
446
443
|
# @param [Time] date_updated The date that this resource was last updated.
|
|
447
444
|
# @param [String] identity A unique string identifier for the conversation
|
|
448
|
-
# participant as
|
|
449
|
-
#
|
|
450
|
-
#
|
|
445
|
+
# participant as {Conversation
|
|
446
|
+
# User}[https://www.twilio.com/docs/conversations/api/user-resource]. This
|
|
447
|
+
# parameter is non-null if (and only if) the participant is using the Conversation
|
|
448
|
+
# SDK to communicate. Limited to 256 characters.
|
|
451
449
|
# @param [String] attributes An optional string metadata field you can use to
|
|
452
450
|
# store any data you wish. The string value must contain structurally valid JSON
|
|
453
451
|
# if specified. **Note** that if the attributes are not set "{}" will be
|
|
454
452
|
# returned.
|
|
455
|
-
# @param [String] role_sid The SID of
|
|
456
|
-
# [
|
|
457
|
-
# participant.
|
|
453
|
+
# @param [String] role_sid The SID of a conversation-level
|
|
454
|
+
# {Role}[https://www.twilio.com/docs/conversations/api/role-resource] to assign to
|
|
455
|
+
# the participant.
|
|
458
456
|
# @param [String] messaging_binding_proxy_address The address of the Twilio phone
|
|
459
457
|
# number that the participant is in contact with. 'null' value will remove it.
|
|
460
458
|
# @param [String] messaging_binding_projected_address The address of the Twilio
|