twilio-ruby 5.45.1 → 5.49.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGES.md +108 -0
- data/LICENSE +1 -1
- data/README.md +16 -2
- data/lib/twilio-ruby/rest/api.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010.rb +5 -4
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +17 -17
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1.rb +5 -4
- data/lib/twilio-ruby/rest/bulkexports.rb +4 -2
- data/lib/twilio-ruby/rest/bulkexports/v1.rb +14 -10
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +7 -4
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +7 -4
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +5 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +5 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +5 -3
- data/lib/twilio-ruby/rest/chat/v1.rb +10 -8
- data/lib/twilio-ruby/rest/chat/v1/service.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +6 -6
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +9 -9
- data/lib/twilio-ruby/rest/chat/v2.rb +10 -8
- data/lib/twilio-ruby/rest/chat/v2/service.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +6 -6
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +27 -24
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +9 -9
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +10 -10
- data/lib/twilio-ruby/rest/client.rb +8 -1
- data/lib/twilio-ruby/rest/conversations/v1.rb +25 -20
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +9 -9
- data/lib/twilio-ruby/rest/events/v1.rb +20 -16
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +4 -4
- data/lib/twilio-ruby/rest/events/v1/schema.rb +4 -4
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +4 -4
- data/lib/twilio-ruby/rest/events/v1/sink.rb +8 -6
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +3 -3
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +3 -3
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +7 -6
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +3 -3
- data/lib/twilio-ruby/rest/fax/v1.rb +5 -4
- data/lib/twilio-ruby/rest/flex_api/v1.rb +15 -12
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +18 -4
- data/lib/twilio-ruby/rest/insights.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1.rb +11 -9
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +8 -9
- data/lib/twilio-ruby/rest/insights/v1/room.rb +55 -43
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +22 -22
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +10 -8
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +10 -8
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +6 -6
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -4
- data/lib/twilio-ruby/rest/lookups/v1.rb +5 -4
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +16 -16
- data/lib/twilio-ruby/rest/messaging.rb +8 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +21 -4
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +328 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +1 -1
- data/lib/twilio-ruby/rest/monitor/v1.rb +10 -8
- data/lib/twilio-ruby/rest/notify/v1.rb +10 -8
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +16 -15
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +18 -18
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +1 -1
- data/lib/twilio-ruby/rest/preview.rb +4 -2
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +14 -10
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +7 -4
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +7 -4
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +5 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +5 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +5 -3
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +5 -4
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +10 -8
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +13 -13
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -8
- data/lib/twilio-ruby/rest/preview/marketplace.rb +10 -8
- data/lib/twilio-ruby/rest/preview/sync.rb +5 -4
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +4 -8
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +5 -4
- data/lib/twilio-ruby/rest/preview/understand.rb +5 -4
- data/lib/twilio-ruby/rest/preview/wireless.rb +15 -12
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1.rb +5 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1.rb +5 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +17 -7
- data/lib/twilio-ruby/rest/studio/v1.rb +5 -4
- data/lib/twilio-ruby/rest/studio/v2.rb +5 -4
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +6 -14
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +2 -10
- data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +10 -16
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -11
- data/lib/twilio-ruby/rest/supersim/v1.rb +25 -20
- data/lib/twilio-ruby/rest/supersim/v1/command.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +33 -12
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +5 -5
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -6
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +5 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +3 -3
- data/lib/twilio-ruby/rest/sync/v1.rb +5 -4
- data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +25 -52
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +18 -40
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +46 -76
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +18 -40
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +47 -79
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +1 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +14 -38
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +1 -7
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +5 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +17 -17
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +10 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +10 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1.rb +5 -4
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +1 -1
- data/lib/twilio-ruby/rest/trusthub.rb +100 -0
- data/lib/twilio-ruby/rest/trusthub/v1.rb +146 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +523 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +359 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +330 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +328 -0
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +356 -0
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +271 -0
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +262 -0
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +369 -0
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +271 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +523 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +359 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +330 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +328 -0
- data/lib/twilio-ruby/rest/verify.rb +9 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +26 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +7 -6
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +64 -13
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +10 -10
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +329 -0
- data/lib/twilio-ruby/rest/video/v1.rb +20 -16
- data/lib/twilio-ruby/rest/video/v1/composition.rb +16 -15
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +26 -26
- data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/room.rb +10 -3
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1.rb +20 -16
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1.rb +15 -12
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +4 -4
- data/lib/twilio-ruby/twiml/voice_response.rb +38 -8
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/conference_spec.rb +302 -44
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +4 -16
- data/spec/integration/api/v2010/account/message_spec.rb +37 -0
- data/spec/integration/events/v1/sink_spec.rb +14 -0
- data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
- data/spec/integration/insights/v1/call/summary_spec.rb +1 -0
- data/spec/integration/messaging/v1/brand_registration_spec.rb +143 -0
- data/spec/integration/preview/sync/service/document_spec.rb +1 -3
- data/spec/integration/serverless/v1/service/build_spec.rb +12 -2
- data/spec/integration/supersim/v1/fleet_spec.rb +8 -0
- data/spec/integration/sync/v1/service/document_spec.rb +1 -3
- data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment_spec.rb +192 -0
- data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_entity_assignments_spec.rb +186 -0
- data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_evaluations_spec.rb +615 -0
- data/spec/integration/trusthub/v1/customer_profiles_spec.rb +255 -0
- data/spec/integration/trusthub/v1/end_user_spec.rb +247 -0
- data/spec/integration/trusthub/v1/end_user_type_spec.rb +176 -0
- data/spec/integration/trusthub/v1/policies_spec.rb +252 -0
- data/spec/integration/trusthub/v1/supporting_document_spec.rb +235 -0
- data/spec/integration/trusthub/v1/supporting_document_type_spec.rb +159 -0
- data/spec/integration/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment_spec.rb +192 -0
- data/spec/integration/trusthub/v1/trust_products/trust_products_entity_assignments_spec.rb +186 -0
- data/spec/integration/trusthub/v1/trust_products/trust_products_evaluations_spec.rb +615 -0
- data/spec/integration/trusthub/v1/trust_products_spec.rb +255 -0
- data/spec/integration/verify/v2/service/entity/factor_spec.rb +3 -3
- data/spec/integration/verify/v2/verification_attempt_spec.rb +146 -0
- data/spec/integration/video/v1/room_spec.rb +5 -0
- data/spec/twiml/voice_response_spec.rb +1 -1
- metadata +49 -2
@@ -29,11 +29,15 @@ module Twilio
|
|
29
29
|
# Lists RoomInstance records from the API as a list.
|
30
30
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
31
31
|
# memory before returning.
|
32
|
-
# @param [room.RoomType] room_type
|
33
|
-
#
|
34
|
-
# @param [
|
35
|
-
#
|
36
|
-
# @param [
|
32
|
+
# @param [Array[room.RoomType]] room_type Type of room. Can be `go`,
|
33
|
+
# `peer_to_peer`, `group`, or `group_small`.
|
34
|
+
# @param [Array[room.Codec]] codec Codecs used by participants in the room. Can be
|
35
|
+
# `VP8`, `H264`, or `VP9`.
|
36
|
+
# @param [String] room_name Room friendly name.
|
37
|
+
# @param [Time] created_after Only read rooms that started on or after this ISO
|
38
|
+
# 8601 timestamp.
|
39
|
+
# @param [Time] created_before Only read rooms that started before this ISO 8601
|
40
|
+
# timestamp.
|
37
41
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
38
42
|
# guarantees to never return more than limit. Default is no limit
|
39
43
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -57,11 +61,15 @@ module Twilio
|
|
57
61
|
# Streams RoomInstance records from the API as an Enumerable.
|
58
62
|
# This operation lazily loads records as efficiently as possible until the limit
|
59
63
|
# is reached.
|
60
|
-
# @param [room.RoomType] room_type
|
61
|
-
#
|
62
|
-
# @param [
|
63
|
-
#
|
64
|
-
# @param [
|
64
|
+
# @param [Array[room.RoomType]] room_type Type of room. Can be `go`,
|
65
|
+
# `peer_to_peer`, `group`, or `group_small`.
|
66
|
+
# @param [Array[room.Codec]] codec Codecs used by participants in the room. Can be
|
67
|
+
# `VP8`, `H264`, or `VP9`.
|
68
|
+
# @param [String] room_name Room friendly name.
|
69
|
+
# @param [Time] created_after Only read rooms that started on or after this ISO
|
70
|
+
# 8601 timestamp.
|
71
|
+
# @param [Time] created_before Only read rooms that started before this ISO 8601
|
72
|
+
# timestamp.
|
65
73
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
66
74
|
# guarantees to never return more than limit. Default is no limit.
|
67
75
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -101,11 +109,15 @@ module Twilio
|
|
101
109
|
##
|
102
110
|
# Retrieve a single page of RoomInstance records from the API.
|
103
111
|
# Request is executed immediately.
|
104
|
-
# @param [room.RoomType] room_type
|
105
|
-
#
|
106
|
-
# @param [
|
107
|
-
#
|
108
|
-
# @param [
|
112
|
+
# @param [Array[room.RoomType]] room_type Type of room. Can be `go`,
|
113
|
+
# `peer_to_peer`, `group`, or `group_small`.
|
114
|
+
# @param [Array[room.Codec]] codec Codecs used by participants in the room. Can be
|
115
|
+
# `VP8`, `H264`, or `VP9`.
|
116
|
+
# @param [String] room_name Room friendly name.
|
117
|
+
# @param [Time] created_after Only read rooms that started on or after this ISO
|
118
|
+
# 8601 timestamp.
|
119
|
+
# @param [Time] created_before Only read rooms that started before this ISO 8601
|
120
|
+
# timestamp.
|
109
121
|
# @param [String] page_token PageToken provided by the API
|
110
122
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
111
123
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -184,7 +196,7 @@ module Twilio
|
|
184
196
|
##
|
185
197
|
# Initialize the RoomContext
|
186
198
|
# @param [Version] version Version that contains the resource
|
187
|
-
# @param [String] room_sid The
|
199
|
+
# @param [String] room_sid The SID of the Room resource.
|
188
200
|
# @return [RoomContext] RoomContext
|
189
201
|
def initialize(version, room_sid)
|
190
202
|
super(version)
|
@@ -246,7 +258,7 @@ module Twilio
|
|
246
258
|
# Initialize the RoomInstance
|
247
259
|
# @param [Version] version Version that contains the resource
|
248
260
|
# @param [Hash] payload payload that contains response from Twilio
|
249
|
-
# @param [String] room_sid The
|
261
|
+
# @param [String] room_sid The SID of the Room resource.
|
250
262
|
# @return [RoomInstance] RoomInstance
|
251
263
|
def initialize(version, payload, room_sid: nil)
|
252
264
|
super(version)
|
@@ -298,157 +310,157 @@ module Twilio
|
|
298
310
|
end
|
299
311
|
|
300
312
|
##
|
301
|
-
# @return [String]
|
313
|
+
# @return [String] Account SID associated with this room.
|
302
314
|
def account_sid
|
303
315
|
@properties['account_sid']
|
304
316
|
end
|
305
317
|
|
306
318
|
##
|
307
|
-
# @return [String]
|
319
|
+
# @return [String] Unique identifier for the room.
|
308
320
|
def room_sid
|
309
321
|
@properties['room_sid']
|
310
322
|
end
|
311
323
|
|
312
324
|
##
|
313
|
-
# @return [String]
|
325
|
+
# @return [String] room friendly name.
|
314
326
|
def room_name
|
315
327
|
@properties['room_name']
|
316
328
|
end
|
317
329
|
|
318
330
|
##
|
319
|
-
# @return [Time]
|
331
|
+
# @return [Time] Creation time of the room.
|
320
332
|
def create_time
|
321
333
|
@properties['create_time']
|
322
334
|
end
|
323
335
|
|
324
336
|
##
|
325
|
-
# @return [Time]
|
337
|
+
# @return [Time] End time for the room.
|
326
338
|
def end_time
|
327
339
|
@properties['end_time']
|
328
340
|
end
|
329
341
|
|
330
342
|
##
|
331
|
-
# @return [room.RoomType]
|
343
|
+
# @return [room.RoomType] Type of room.
|
332
344
|
def room_type
|
333
345
|
@properties['room_type']
|
334
346
|
end
|
335
347
|
|
336
348
|
##
|
337
|
-
# @return [room.RoomStatus]
|
349
|
+
# @return [room.RoomStatus] Status of the room.
|
338
350
|
def room_status
|
339
351
|
@properties['room_status']
|
340
352
|
end
|
341
353
|
|
342
354
|
##
|
343
|
-
# @return [String]
|
355
|
+
# @return [String] Webhook provided for status callbacks.
|
344
356
|
def status_callback
|
345
357
|
@properties['status_callback']
|
346
358
|
end
|
347
359
|
|
348
360
|
##
|
349
|
-
# @return [String]
|
361
|
+
# @return [String] HTTP method provided for status callback URL.
|
350
362
|
def status_callback_method
|
351
363
|
@properties['status_callback_method']
|
352
364
|
end
|
353
365
|
|
354
366
|
##
|
355
|
-
# @return [room.CreatedMethod]
|
367
|
+
# @return [room.CreatedMethod] How the room was created.
|
356
368
|
def created_method
|
357
369
|
@properties['created_method']
|
358
370
|
end
|
359
371
|
|
360
372
|
##
|
361
|
-
# @return [room.EndReason]
|
373
|
+
# @return [room.EndReason] Reason the room ended.
|
362
374
|
def end_reason
|
363
375
|
@properties['end_reason']
|
364
376
|
end
|
365
377
|
|
366
378
|
##
|
367
|
-
# @return [String]
|
379
|
+
# @return [String] Max number of total participants allowed by the application settings.
|
368
380
|
def max_participants
|
369
381
|
@properties['max_participants']
|
370
382
|
end
|
371
383
|
|
372
384
|
##
|
373
|
-
# @return [String]
|
385
|
+
# @return [String] Number of participants. May include duplicate identities for participants who left and rejoined.
|
374
386
|
def unique_participants
|
375
387
|
@properties['unique_participants']
|
376
388
|
end
|
377
389
|
|
378
390
|
##
|
379
|
-
# @return [String]
|
391
|
+
# @return [String] Unique number of participant identities.
|
380
392
|
def unique_participant_identities
|
381
393
|
@properties['unique_participant_identities']
|
382
394
|
end
|
383
395
|
|
384
396
|
##
|
385
|
-
# @return [String]
|
397
|
+
# @return [String] Actual number of concurrent participants.
|
386
398
|
def concurrent_participants
|
387
399
|
@properties['concurrent_participants']
|
388
400
|
end
|
389
401
|
|
390
402
|
##
|
391
|
-
# @return [String]
|
403
|
+
# @return [String] Maximum number of participants allowed in the room at the same time allowed by the application settings.
|
392
404
|
def max_concurrent_participants
|
393
405
|
@properties['max_concurrent_participants']
|
394
406
|
end
|
395
407
|
|
396
408
|
##
|
397
|
-
# @return [room.Codec]
|
409
|
+
# @return [Array[room.Codec]] Codecs used by participants in the room.
|
398
410
|
def codecs
|
399
411
|
@properties['codecs']
|
400
412
|
end
|
401
413
|
|
402
414
|
##
|
403
|
-
# @return [room.TwilioRealm]
|
415
|
+
# @return [room.TwilioRealm] Region of Twilio media servers for the room.
|
404
416
|
def media_region
|
405
417
|
@properties['media_region']
|
406
418
|
end
|
407
419
|
|
408
420
|
##
|
409
|
-
# @return [String]
|
421
|
+
# @return [String] Total room duration from create time to end time.
|
410
422
|
def duration_sec
|
411
423
|
@properties['duration_sec']
|
412
424
|
end
|
413
425
|
|
414
426
|
##
|
415
|
-
# @return [String]
|
427
|
+
# @return [String] Combined amount of participant time in the room.
|
416
428
|
def total_participant_duration_sec
|
417
429
|
@properties['total_participant_duration_sec']
|
418
430
|
end
|
419
431
|
|
420
432
|
##
|
421
|
-
# @return [String]
|
433
|
+
# @return [String] Combined amount of recorded seconds for participants in the room.
|
422
434
|
def total_recording_duration_sec
|
423
435
|
@properties['total_recording_duration_sec']
|
424
436
|
end
|
425
437
|
|
426
438
|
##
|
427
|
-
# @return [room.ProcessingState]
|
439
|
+
# @return [room.ProcessingState] Video Log Analyzer resource state. Will be either `in-progress` or `complete`.
|
428
440
|
def processing_state
|
429
441
|
@properties['processing_state']
|
430
442
|
end
|
431
443
|
|
432
444
|
##
|
433
|
-
# @return [Boolean]
|
445
|
+
# @return [Boolean] Boolean indicating if recording is enabled for the room.
|
434
446
|
def recording_enabled
|
435
447
|
@properties['recording_enabled']
|
436
448
|
end
|
437
449
|
|
438
450
|
##
|
439
|
-
# @return [room.EdgeLocation]
|
451
|
+
# @return [room.EdgeLocation] Edge location of Twilio media servers for the room.
|
440
452
|
def edge_location
|
441
453
|
@properties['edge_location']
|
442
454
|
end
|
443
455
|
|
444
456
|
##
|
445
|
-
# @return [String]
|
457
|
+
# @return [String] URL for the room resource.
|
446
458
|
def url
|
447
459
|
@properties['url']
|
448
460
|
end
|
449
461
|
|
450
462
|
##
|
451
|
-
# @return [String]
|
463
|
+
# @return [String] Room subresources.
|
452
464
|
def links
|
453
465
|
@properties['links']
|
454
466
|
end
|
@@ -17,7 +17,7 @@ module Twilio
|
|
17
17
|
##
|
18
18
|
# Initialize the ParticipantList
|
19
19
|
# @param [Version] version Version that contains the resource
|
20
|
-
# @param [String] room_sid
|
20
|
+
# @param [String] room_sid Unique identifier for the room.
|
21
21
|
# @return [ParticipantList] ParticipantList
|
22
22
|
def initialize(version, room_sid: nil)
|
23
23
|
super(version)
|
@@ -151,8 +151,8 @@ module Twilio
|
|
151
151
|
##
|
152
152
|
# Initialize the ParticipantContext
|
153
153
|
# @param [Version] version Version that contains the resource
|
154
|
-
# @param [String] room_sid The
|
155
|
-
# @param [String] participant_sid The
|
154
|
+
# @param [String] room_sid The SID of the Room resource.
|
155
|
+
# @param [String] participant_sid The SID of the Participant resource.
|
156
156
|
# @return [ParticipantContext] ParticipantContext
|
157
157
|
def initialize(version, room_sid, participant_sid)
|
158
158
|
super(version)
|
@@ -198,8 +198,8 @@ module Twilio
|
|
198
198
|
# Initialize the ParticipantInstance
|
199
199
|
# @param [Version] version Version that contains the resource
|
200
200
|
# @param [Hash] payload payload that contains response from Twilio
|
201
|
-
# @param [String] room_sid
|
202
|
-
# @param [String] participant_sid The
|
201
|
+
# @param [String] room_sid Unique identifier for the room.
|
202
|
+
# @param [String] participant_sid The SID of the Participant resource.
|
203
203
|
# @return [ParticipantInstance] ParticipantInstance
|
204
204
|
def initialize(version, payload, room_sid: nil, participant_sid: nil)
|
205
205
|
super(version)
|
@@ -249,103 +249,103 @@ module Twilio
|
|
249
249
|
end
|
250
250
|
|
251
251
|
##
|
252
|
-
# @return [String]
|
252
|
+
# @return [String] Unique identifier for the participant.
|
253
253
|
def participant_sid
|
254
254
|
@properties['participant_sid']
|
255
255
|
end
|
256
256
|
|
257
257
|
##
|
258
|
-
# @return [String] The
|
258
|
+
# @return [String] The application-defined string that uniquely identifies the participant within a Room.
|
259
259
|
def participant_identity
|
260
260
|
@properties['participant_identity']
|
261
261
|
end
|
262
262
|
|
263
263
|
##
|
264
|
-
# @return [Time]
|
264
|
+
# @return [Time] When the participant joined the room.
|
265
265
|
def join_time
|
266
266
|
@properties['join_time']
|
267
267
|
end
|
268
268
|
|
269
269
|
##
|
270
|
-
# @return [Time]
|
270
|
+
# @return [Time] When the participant left the room
|
271
271
|
def leave_time
|
272
272
|
@properties['leave_time']
|
273
273
|
end
|
274
274
|
|
275
275
|
##
|
276
|
-
# @return [String]
|
276
|
+
# @return [String] Amount of time in seconds the participant was in the room.
|
277
277
|
def duration_sec
|
278
278
|
@properties['duration_sec']
|
279
279
|
end
|
280
280
|
|
281
281
|
##
|
282
|
-
# @return [String]
|
282
|
+
# @return [String] Account SID associated with the room.
|
283
283
|
def account_sid
|
284
284
|
@properties['account_sid']
|
285
285
|
end
|
286
286
|
|
287
287
|
##
|
288
|
-
# @return [String]
|
288
|
+
# @return [String] Unique identifier for the room.
|
289
289
|
def room_sid
|
290
290
|
@properties['room_sid']
|
291
291
|
end
|
292
292
|
|
293
293
|
##
|
294
|
-
# @return [participant.RoomStatus]
|
294
|
+
# @return [participant.RoomStatus] Status of the room.
|
295
295
|
def status
|
296
296
|
@properties['status']
|
297
297
|
end
|
298
298
|
|
299
299
|
##
|
300
|
-
# @return [participant.Codec]
|
300
|
+
# @return [Array[participant.Codec]] Codecs detected from the participant.
|
301
301
|
def codecs
|
302
302
|
@properties['codecs']
|
303
303
|
end
|
304
304
|
|
305
305
|
##
|
306
|
-
# @return [String]
|
306
|
+
# @return [String] Reason the participant left the room.
|
307
307
|
def end_reason
|
308
308
|
@properties['end_reason']
|
309
309
|
end
|
310
310
|
|
311
311
|
##
|
312
|
-
# @return [String]
|
312
|
+
# @return [String] Errors encountered by the participant.
|
313
313
|
def error_code
|
314
314
|
@properties['error_code']
|
315
315
|
end
|
316
316
|
|
317
317
|
##
|
318
|
-
# @return [String]
|
318
|
+
# @return [String] Twilio error code dictionary link.
|
319
319
|
def error_code_url
|
320
320
|
@properties['error_code_url']
|
321
321
|
end
|
322
322
|
|
323
323
|
##
|
324
|
-
# @return [participant.TwilioRealm]
|
324
|
+
# @return [participant.TwilioRealm] Twilio media region the participant connected to.
|
325
325
|
def media_region
|
326
326
|
@properties['media_region']
|
327
327
|
end
|
328
328
|
|
329
329
|
##
|
330
|
-
# @return [Hash]
|
330
|
+
# @return [Hash] Object containing information about the participant's data from the room.
|
331
331
|
def properties
|
332
332
|
@properties['properties']
|
333
333
|
end
|
334
334
|
|
335
335
|
##
|
336
|
-
# @return [participant.EdgeLocation]
|
336
|
+
# @return [participant.EdgeLocation] Name of the edge location the participant connected to.
|
337
337
|
def edge_location
|
338
338
|
@properties['edge_location']
|
339
339
|
end
|
340
340
|
|
341
341
|
##
|
342
|
-
# @return [Hash]
|
342
|
+
# @return [Hash] Object containing information about the SDK name and version.
|
343
343
|
def publisher_info
|
344
344
|
@properties['publisher_info']
|
345
345
|
end
|
346
346
|
|
347
347
|
##
|
348
|
-
# @return [String]
|
348
|
+
# @return [String] URL of the participant resource.
|
349
349
|
def url
|
350
350
|
@properties['url']
|
351
351
|
end
|
@@ -25,11 +25,12 @@ module Twilio
|
|
25
25
|
# @return [Twilio::REST::Ip_messaging::V1::CredentialList]
|
26
26
|
def credentials(sid=:unset)
|
27
27
|
if sid.nil?
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
raise ArgumentError, 'sid cannot be nil'
|
29
|
+
end
|
30
|
+
if sid == :unset
|
31
|
+
@credentials ||= CredentialList.new self
|
31
32
|
else
|
32
|
-
|
33
|
+
CredentialContext.new(self, sid)
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
@@ -39,11 +40,12 @@ module Twilio
|
|
39
40
|
# @return [Twilio::REST::Ip_messaging::V1::ServiceList]
|
40
41
|
def services(sid=:unset)
|
41
42
|
if sid.nil?
|
42
|
-
|
43
|
-
|
44
|
-
|
43
|
+
raise ArgumentError, 'sid cannot be nil'
|
44
|
+
end
|
45
|
+
if sid == :unset
|
46
|
+
@services ||= ServiceList.new self
|
45
47
|
else
|
46
|
-
|
48
|
+
ServiceContext.new(self, sid)
|
47
49
|
end
|
48
50
|
end
|
49
51
|
|
@@ -216,7 +216,7 @@ module Twilio
|
|
216
216
|
# @param [String] pre_webhook_url The pre_webhook_url
|
217
217
|
# @param [String] post_webhook_url The post_webhook_url
|
218
218
|
# @param [String] webhook_method The webhook_method
|
219
|
-
# @param [String] webhook_filters The webhook_filters
|
219
|
+
# @param [Array[String]] webhook_filters The webhook_filters
|
220
220
|
# @param [String] webhooks_on_message_send_url The webhooks.on_message_send.url
|
221
221
|
# @param [String] webhooks_on_message_send_method The
|
222
222
|
# webhooks.on_message_send.method
|
@@ -562,7 +562,7 @@ module Twilio
|
|
562
562
|
end
|
563
563
|
|
564
564
|
##
|
565
|
-
# @return [String] The webhook_filters
|
565
|
+
# @return [Array[String]] The webhook_filters
|
566
566
|
def webhook_filters
|
567
567
|
@properties['webhook_filters']
|
568
568
|
end
|
@@ -629,7 +629,7 @@ module Twilio
|
|
629
629
|
# @param [String] pre_webhook_url The pre_webhook_url
|
630
630
|
# @param [String] post_webhook_url The post_webhook_url
|
631
631
|
# @param [String] webhook_method The webhook_method
|
632
|
-
# @param [String] webhook_filters The webhook_filters
|
632
|
+
# @param [Array[String]] webhook_filters The webhook_filters
|
633
633
|
# @param [String] webhooks_on_message_send_url The webhooks.on_message_send.url
|
634
634
|
# @param [String] webhooks_on_message_send_method The
|
635
635
|
# webhooks.on_message_send.method
|