twilio-ruby 5.39.2 → 5.40.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/CHANGES.md +107 -1
  4. data/CONTRIBUTING.md +2 -2
  5. data/ISSUE_TEMPLATE.md +5 -1
  6. data/PULL_REQUEST_TEMPLATE.md +1 -1
  7. data/README.md +4 -3
  8. data/lib/twilio-ruby/framework/version.rb +4 -8
  9. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +6 -4
  10. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +12 -3
  11. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +12 -3
  12. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +12 -3
  13. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +12 -3
  14. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +12 -3
  15. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +12 -3
  16. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +12 -3
  17. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +2 -1
  18. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +85 -60
  19. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +5 -2
  20. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +14 -0
  21. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +14 -0
  22. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +14 -0
  23. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +8 -1
  24. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +3 -1
  25. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +2 -1
  26. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +8 -4
  27. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +11 -4
  28. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +13 -6
  29. data/lib/twilio-ruby/rest/client.rb +7 -0
  30. data/lib/twilio-ruby/rest/conversations.rb +39 -3
  31. data/lib/twilio-ruby/rest/conversations/v1.rb +68 -5
  32. data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +268 -0
  33. data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +262 -0
  34. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +21 -10
  35. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +13 -10
  36. data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +34 -19
  37. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +48 -32
  38. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +14 -11
  39. data/lib/twilio-ruby/rest/conversations/v1/credential.rb +427 -0
  40. data/lib/twilio-ruby/rest/conversations/v1/role.rb +374 -0
  41. data/lib/twilio-ruby/rest/conversations/v1/service.rb +442 -0
  42. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +388 -0
  43. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +271 -0
  44. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +315 -0
  45. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +586 -0
  46. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +549 -0
  47. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +394 -0
  48. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +519 -0
  49. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +457 -0
  50. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +395 -0
  51. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +419 -0
  52. data/lib/twilio-ruby/rest/conversations/v1/user.rb +398 -0
  53. data/lib/twilio-ruby/rest/events.rb +72 -0
  54. data/lib/twilio-ruby/rest/events/v1.rb +90 -0
  55. data/lib/twilio-ruby/rest/events/v1/event_type.rb +291 -0
  56. data/lib/twilio-ruby/rest/events/v1/schema.rb +226 -0
  57. data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +290 -0
  58. data/lib/twilio-ruby/rest/events/v1/sink.rb +380 -0
  59. data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +115 -0
  60. data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +119 -0
  61. data/lib/twilio-ruby/rest/events/v1/subscription.rb +383 -0
  62. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +216 -0
  63. data/lib/twilio-ruby/rest/fax/v1/fax.rb +2 -1
  64. data/lib/twilio-ruby/rest/messaging.rb +6 -0
  65. data/lib/twilio-ruby/rest/messaging/v1.rb +7 -0
  66. data/lib/twilio-ruby/rest/messaging/v1/deactivation.rb +164 -0
  67. data/lib/twilio-ruby/rest/messaging/v1/service.rb +6 -3
  68. data/lib/twilio-ruby/rest/notify/v1/credential.rb +12 -6
  69. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +10 -2
  70. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +3 -3
  71. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +16 -2
  72. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +18 -4
  73. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +10 -5
  74. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +6 -3
  75. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +1 -4
  76. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +3 -1
  77. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +45 -4
  78. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +14 -1
  79. data/lib/twilio-ruby/rest/serverless/v1/service.rb +13 -13
  80. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +6 -6
  81. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +5 -5
  82. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +8 -8
  83. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +6 -8
  84. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +8 -8
  85. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +14 -14
  86. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +4 -4
  87. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +7 -7
  88. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +1 -1
  89. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +12 -11
  90. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +17 -7
  91. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +75 -9
  92. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +2 -1
  93. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +6 -2
  94. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +1 -4
  95. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +6 -2
  96. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +38 -23
  97. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -1
  98. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -1
  99. data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +201 -0
  100. data/lib/twilio-ruby/rest/verify/v2/service.rb +21 -9
  101. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +10 -2
  102. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +7 -2
  103. data/lib/twilio-ruby/rest/video/v1/composition.rb +7 -3
  104. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +18 -9
  105. data/lib/twilio-ruby/rest/video/v1/room.rb +2 -1
  106. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +0 -6
  107. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -4
  108. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +2 -1
  109. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +5 -19
  110. data/lib/twilio-ruby/version.rb +1 -1
  111. data/spec/framework/version_spec.rb +53 -0
  112. data/spec/holodeck/holodeck.rb +3 -3
  113. data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +35 -36
  114. data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +39 -40
  115. data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +35 -36
  116. data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +25 -23
  117. data/spec/integration/api/v2010/account/message_spec.rb +37 -0
  118. data/spec/integration/bulkexports/v1/export/day_spec.rb +5 -5
  119. data/spec/integration/bulkexports/v1/export_configuration_spec.rb +4 -4
  120. data/spec/integration/bulkexports/v1/export_spec.rb +3 -3
  121. data/spec/integration/conversations/v1/{webhook_spec.rb → configuration/webhook_spec.rb} +12 -8
  122. data/spec/integration/conversations/v1/configuration_spec.rb +87 -0
  123. data/spec/integration/conversations/v1/conversation/message/delivery_receipt_spec.rb +4 -0
  124. data/spec/integration/conversations/v1/conversation/message_spec.rb +38 -0
  125. data/spec/integration/conversations/v1/conversation/participant_spec.rb +60 -4
  126. data/spec/integration/conversations/v1/conversation_spec.rb +35 -0
  127. data/spec/integration/conversations/v1/credential_spec.rb +219 -0
  128. data/spec/integration/conversations/v1/role_spec.rb +249 -0
  129. data/spec/integration/conversations/v1/service/binding_spec.rb +166 -0
  130. data/spec/integration/conversations/v1/service/configuration/notification_spec.rb +115 -0
  131. data/spec/integration/conversations/v1/service/configuration_spec.rb +87 -0
  132. data/spec/integration/conversations/v1/service/conversation/message/delivery_receipt_spec.rb +144 -0
  133. data/spec/integration/conversations/v1/service/conversation/message_spec.rb +429 -0
  134. data/spec/integration/conversations/v1/service/conversation/participant_spec.rb +407 -0
  135. data/spec/integration/conversations/v1/service/conversation/webhook_spec.rb +299 -0
  136. data/spec/integration/conversations/v1/service/conversation_spec.rb +289 -0
  137. data/spec/integration/conversations/v1/service/role_spec.rb +260 -0
  138. data/spec/integration/conversations/v1/service/user_spec.rb +230 -0
  139. data/spec/integration/conversations/v1/service_spec.rb +174 -0
  140. data/spec/integration/conversations/v1/user_spec.rb +220 -0
  141. data/spec/integration/events/v1/event_type_spec.rb +133 -0
  142. data/spec/integration/events/v1/schema/schema_version_spec.rb +126 -0
  143. data/spec/integration/events/v1/schema_spec.rb +46 -0
  144. data/spec/integration/events/v1/sink/sink_test_spec.rb +42 -0
  145. data/spec/integration/events/v1/sink/sink_validate_spec.rb +44 -0
  146. data/spec/integration/events/v1/sink_spec.rb +217 -0
  147. data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +91 -0
  148. data/spec/integration/events/v1/subscription_spec.rb +243 -0
  149. data/spec/integration/messaging/v1/deactivation_spec.rb +40 -0
  150. data/spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb +27 -0
  151. data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_spec.rb +27 -0
  152. data/spec/integration/studio/v1/flow/execution/execution_step_spec.rb +1 -0
  153. data/spec/integration/studio/v2/flow/execution/execution_step_spec.rb +1 -0
  154. data/spec/integration/supersim/v1/sim_spec.rb +23 -0
  155. data/spec/integration/supersim/v1/usage_record_spec.rb +463 -18
  156. data/spec/integration/trunking/v1/trunk/recording_spec.rb +79 -0
  157. data/spec/integration/trunking/v1/trunk_spec.rb +4 -0
  158. data/spec/integration/verify/v2/service/access_token_spec.rb +1 -1
  159. data/spec/integration/verify/v2/service/entity/challenge_spec.rb +8 -8
  160. data/spec/integration/video/v1/room_spec.rb +37 -0
  161. data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -2
  162. data/spec/spec_helper.rb +1 -1
  163. metadata +82 -5
  164. data/lib/twilio-ruby/rest/conversations/v1/webhook.rb +0 -262
@@ -31,7 +31,8 @@ module Twilio
31
31
  ##
32
32
  # Create the PhoneNumberInstance
33
33
  # @param [String] phone_number_sid The SID of the [Incoming Phone
34
- # Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk.
34
+ # Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource)
35
+ # that you want to associate with the trunk.
35
36
  # @return [PhoneNumberInstance] Created PhoneNumberInstance
36
37
  def create(phone_number_sid: nil)
37
38
  data = Twilio::Values.of({'PhoneNumberSid' => phone_number_sid, })
@@ -0,0 +1,201 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+ #
7
+ # frozen_string_literal: true
8
+
9
+ module Twilio
10
+ module REST
11
+ class Trunking < Domain
12
+ class V1 < Version
13
+ class TrunkContext < InstanceContext
14
+ class RecordingList < ListResource
15
+ ##
16
+ # Initialize the RecordingList
17
+ # @param [Version] version Version that contains the resource
18
+ # @param [String] trunk_sid The trunk_sid
19
+ # @return [RecordingList] RecordingList
20
+ def initialize(version, trunk_sid: nil)
21
+ super(version)
22
+
23
+ # Path Solution
24
+ @solution = {trunk_sid: trunk_sid}
25
+ end
26
+
27
+ ##
28
+ # Provide a user friendly representation
29
+ def to_s
30
+ '#<Twilio.Trunking.V1.RecordingList>'
31
+ end
32
+ end
33
+
34
+ class RecordingPage < Page
35
+ ##
36
+ # Initialize the RecordingPage
37
+ # @param [Version] version Version that contains the resource
38
+ # @param [Response] response Response from the API
39
+ # @param [Hash] solution Path solution for the resource
40
+ # @return [RecordingPage] RecordingPage
41
+ def initialize(version, response, solution)
42
+ super(version, response)
43
+
44
+ # Path Solution
45
+ @solution = solution
46
+ end
47
+
48
+ ##
49
+ # Build an instance of RecordingInstance
50
+ # @param [Hash] payload Payload response from the API
51
+ # @return [RecordingInstance] RecordingInstance
52
+ def get_instance(payload)
53
+ RecordingInstance.new(@version, payload, trunk_sid: @solution[:trunk_sid], )
54
+ end
55
+
56
+ ##
57
+ # Provide a user friendly representation
58
+ def to_s
59
+ '<Twilio.Trunking.V1.RecordingPage>'
60
+ end
61
+ end
62
+
63
+ class RecordingContext < InstanceContext
64
+ ##
65
+ # Initialize the RecordingContext
66
+ # @param [Version] version Version that contains the resource
67
+ # @param [String] trunk_sid The SID of the Trunk from which to fetch the recording
68
+ # settings.
69
+ # @return [RecordingContext] RecordingContext
70
+ def initialize(version, trunk_sid)
71
+ super(version)
72
+
73
+ # Path Solution
74
+ @solution = {trunk_sid: trunk_sid, }
75
+ @uri = "/Trunks/#{@solution[:trunk_sid]}/Recording"
76
+ end
77
+
78
+ ##
79
+ # Fetch the RecordingInstance
80
+ # @return [RecordingInstance] Fetched RecordingInstance
81
+ def fetch
82
+ payload = @version.fetch('GET', @uri)
83
+
84
+ RecordingInstance.new(@version, payload, trunk_sid: @solution[:trunk_sid], )
85
+ end
86
+
87
+ ##
88
+ # Update the RecordingInstance
89
+ # @return [RecordingInstance] Updated RecordingInstance
90
+ def update
91
+ payload = @version.update('POST', @uri)
92
+
93
+ RecordingInstance.new(@version, payload, trunk_sid: @solution[:trunk_sid], )
94
+ end
95
+
96
+ ##
97
+ # Provide a user friendly representation
98
+ def to_s
99
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
100
+ "#<Twilio.Trunking.V1.RecordingContext #{context}>"
101
+ end
102
+
103
+ ##
104
+ # Provide a detailed, user friendly representation
105
+ def inspect
106
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
107
+ "#<Twilio.Trunking.V1.RecordingContext #{context}>"
108
+ end
109
+ end
110
+
111
+ class RecordingInstance < InstanceResource
112
+ ##
113
+ # Initialize the RecordingInstance
114
+ # @param [Version] version Version that contains the resource
115
+ # @param [Hash] payload payload that contains response from Twilio
116
+ # @param [String] trunk_sid The trunk_sid
117
+ # @return [RecordingInstance] RecordingInstance
118
+ def initialize(version, payload, trunk_sid: nil)
119
+ super(version)
120
+
121
+ # Marshaled Properties
122
+ @properties = {
123
+ 'mode' => payload['mode'],
124
+ 'trim' => payload['trim'],
125
+ 'url' => payload['url'],
126
+ 'trunk_sid' => payload['trunk_sid'],
127
+ }
128
+
129
+ # Context
130
+ @instance_context = nil
131
+ @params = {'trunk_sid' => trunk_sid, }
132
+ end
133
+
134
+ ##
135
+ # Generate an instance context for the instance, the context is capable of
136
+ # performing various actions. All instance actions are proxied to the context
137
+ # @return [RecordingContext] RecordingContext for this RecordingInstance
138
+ def context
139
+ unless @instance_context
140
+ @instance_context = RecordingContext.new(@version, @params['trunk_sid'], )
141
+ end
142
+ @instance_context
143
+ end
144
+
145
+ ##
146
+ # @return [recording.RecordingMode] The recording mode for the trunk.
147
+ def mode
148
+ @properties['mode']
149
+ end
150
+
151
+ ##
152
+ # @return [recording.RecordingTrim] The recording trim setting for the trunk.
153
+ def trim
154
+ @properties['trim']
155
+ end
156
+
157
+ ##
158
+ # @return [String] The url
159
+ def url
160
+ @properties['url']
161
+ end
162
+
163
+ ##
164
+ # @return [String] The trunk_sid
165
+ def trunk_sid
166
+ @properties['trunk_sid']
167
+ end
168
+
169
+ ##
170
+ # Fetch the RecordingInstance
171
+ # @return [RecordingInstance] Fetched RecordingInstance
172
+ def fetch
173
+ context.fetch
174
+ end
175
+
176
+ ##
177
+ # Update the RecordingInstance
178
+ # @return [RecordingInstance] Updated RecordingInstance
179
+ def update
180
+ context.update
181
+ end
182
+
183
+ ##
184
+ # Provide a user friendly representation
185
+ def to_s
186
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
187
+ "<Twilio.Trunking.V1.RecordingInstance #{values}>"
188
+ end
189
+
190
+ ##
191
+ # Provide a detailed, user friendly representation
192
+ def inspect
193
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
194
+ "<Twilio.Trunking.V1.RecordingInstance #{values}>"
195
+ end
196
+ end
197
+ end
198
+ end
199
+ end
200
+ end
201
+ end
@@ -47,10 +47,14 @@ module Twilio
47
47
  # @param [Boolean] custom_code_enabled Whether to allow sending verifications with
48
48
  # a custom code instead of a randomly generated one. Not available for all
49
49
  # customers.
50
- # @param [Hash] push The optional service level push factors configuration. If
51
- # present it must be a json string with the following format:
50
+ # @param [Hash] push Configurations for the Push factors (channel) created under
51
+ # this Service. If present, it must be a json string with the following format:
52
52
  # {"notify_service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "include_date":
53
- # true}
53
+ # true}. If `include_date` is set to `true`, which is the default, that means that
54
+ # the push challenge’s response will include the date created value. If
55
+ # `include_date` is set to `false`, then the date created value will not be
56
+ # included. See [Challenge](https://www.twilio.com/docs/verify/api/challenge)
57
+ # resource’s details parameter for more info
54
58
  # @return [ServiceInstance] Created ServiceInstance
55
59
  def create(friendly_name: nil, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push: :unset)
56
60
  data = Twilio::Values.of({
@@ -249,10 +253,14 @@ module Twilio
249
253
  # @param [Boolean] custom_code_enabled Whether to allow sending verifications with
250
254
  # a custom code instead of a randomly generated one. Not available for all
251
255
  # customers.
252
- # @param [Hash] push The optional service level push factors configuration. If
253
- # present it must be a json string with the following format:
256
+ # @param [Hash] push Configurations for the Push factors (channel) created under
257
+ # this Service. If present, it must be a json string with the following format:
254
258
  # {"notify_service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "include_date":
255
- # true}
259
+ # true}. If `include_date` is set to `true`, which is the default, that means that
260
+ # the push challenge’s response will include the date created value. If
261
+ # `include_date` is set to `false`, then the date created value will not be
262
+ # included. See [Challenge](https://www.twilio.com/docs/verify/api/challenge)
263
+ # resource’s details parameter for more info
256
264
  # @return [ServiceInstance] Updated ServiceInstance
257
265
  def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push: :unset)
258
266
  data = Twilio::Values.of({
@@ -581,10 +589,14 @@ module Twilio
581
589
  # @param [Boolean] custom_code_enabled Whether to allow sending verifications with
582
590
  # a custom code instead of a randomly generated one. Not available for all
583
591
  # customers.
584
- # @param [Hash] push The optional service level push factors configuration. If
585
- # present it must be a json string with the following format:
592
+ # @param [Hash] push Configurations for the Push factors (channel) created under
593
+ # this Service. If present, it must be a json string with the following format:
586
594
  # {"notify_service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "include_date":
587
- # true}
595
+ # true}. If `include_date` is set to `true`, which is the default, that means that
596
+ # the push challenge’s response will include the date created value. If
597
+ # `include_date` is set to `false`, then the date created value will not be
598
+ # included. See [Challenge](https://www.twilio.com/docs/verify/api/challenge)
599
+ # resource’s details parameter for more info
588
600
  # @return [ServiceInstance] Updated ServiceInstance
589
601
  def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push: :unset)
590
602
  context.update(
@@ -36,9 +36,17 @@ module Twilio
36
36
  # @param [Time] expiration_date The future date in which this Challenge will
37
37
  # expire, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
38
38
  # @param [String] details Details provided to give context about the Challenge.
39
- # Shown to the end user.
39
+ # Shown to the end user. It must be a stringified JSON with the following
40
+ # structure: {"message": "string", "fields": [ { "label": "string", "value":
41
+ # "string"}]}. `message` is required. If you send the `fields` property, each
42
+ # field has to include `label` and `value` properties. If you had set
43
+ # `include_date=true` in the `push` configuration of the
44
+ # [service](https://www.twilio.com/docs/verify/api/service), the response will
45
+ # also include the challenge's date created value as an additional field called
46
+ # `date`
40
47
  # @param [String] hidden_details Details provided to give context about the
41
- # Challenge. Not shown to the end user.
48
+ # Challenge. Not shown to the end user. It must be a stringified JSON with only
49
+ # strings values eg. `{"ip": "172.168.1.234"}`
42
50
  # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
43
51
  # @return [ChallengeInstance] Created ChallengeInstance
44
52
  def create(factor_sid: nil, expiration_date: :unset, details: :unset, hidden_details: :unset, twilio_sandbox_mode: :unset)
@@ -34,6 +34,8 @@ module Twilio
34
34
  # be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
35
35
  # @param [String] channel The verification method to use. Can be:
36
36
  # [`email`](https://www.twilio.com/docs/verify/email), `sms` or `call`.
37
+ # @param [String] custom_friendly_name A custom user defined friendly name that
38
+ # overwrites the existing one in the verification message
37
39
  # @param [String] custom_message The text of a custom message to use for the
38
40
  # verification.
39
41
  # @param [String] send_digits The digits to send after a phone call is answered,
@@ -59,12 +61,15 @@ module Twilio
59
61
  # [`email`](https://www.twilio.com/docs/verify/email) channel configuration in
60
62
  # json format. Must include 'from' and 'from_name'.
61
63
  # @param [String] app_hash Your [App
62
- # Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`.
64
+ # Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string)
65
+ # to be appended at the end of your verification SMS body. Applies only to SMS.
66
+ # Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`.
63
67
  # @return [VerificationInstance] Created VerificationInstance
64
- def create(to: nil, channel: nil, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset, channel_configuration: :unset, app_hash: :unset)
68
+ def create(to: nil, channel: nil, custom_friendly_name: :unset, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset, channel_configuration: :unset, app_hash: :unset)
65
69
  data = Twilio::Values.of({
66
70
  'To' => to,
67
71
  'Channel' => channel,
72
+ 'CustomFriendlyName' => custom_friendly_name,
68
73
  'CustomMessage' => custom_message,
69
74
  'SendDigits' => send_digits,
70
75
  'Locale' => locale,
@@ -152,7 +152,9 @@ module Twilio
152
152
  # used as composition sources.
153
153
  # @param [Hash] video_layout An object that describes the video layout of the
154
154
  # composition in terms of regions. See [Specifying Video
155
- # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request
155
+ # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts)
156
+ # for more info. Please, be aware that either video_layout or audio_sources have
157
+ # to be provided to get a valid creation request
156
158
  # @param [String] audio_sources An array of track names from the same group room
157
159
  # to merge into the new composition. Can include zero or more track names. The new
158
160
  # composition includes all audio sources specified in `audio_sources` except for
@@ -185,7 +187,8 @@ module Twilio
185
187
  # Note that the `resolution` imposes an aspect ratio to the resulting composition.
186
188
  # When the original video tracks are constrained by the aspect ratio, they are
187
189
  # scaled to fit. See [Specifying Video
188
- # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
190
+ # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts)
191
+ # for more info.
189
192
  # @param [composition.Format] format The container format of the composition's
190
193
  # media files. Can be: `mp4` or `webm` and the default is `webm`. If you specify
191
194
  # `mp4` or `webm`, you must also specify one or more `audio_sources` and/or a
@@ -202,7 +205,8 @@ module Twilio
202
205
  # enabled are shorter when the Room is created and no Participant joins for a
203
206
  # while as well as if all the Participants leave the room and join later, because
204
207
  # those gaps will be removed. See [Specifying Video
205
- # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
208
+ # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts)
209
+ # for more info.
206
210
  # @return [CompositionInstance] Created CompositionInstance
207
211
  def create(room_sid: nil, video_layout: :unset, audio_sources: :unset, audio_sources_excluded: :unset, resolution: :unset, format: :unset, status_callback: :unset, status_callback_method: :unset, trim: :unset)
208
212
  data = Twilio::Values.of({
@@ -165,7 +165,8 @@ module Twilio
165
165
  # account. When `false`, the composition hook will never be triggered.
166
166
  # @param [Hash] video_layout An object that describes the video layout of the
167
167
  # composition hook in terms of regions. See [Specifying Video
168
- # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
168
+ # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts)
169
+ # for more info.
169
170
  # @param [String] audio_sources An array of track names from the same group room
170
171
  # to merge into the compositions created by the composition hook. Can include zero
171
172
  # or more track names. A composition triggered by the composition hook includes
@@ -199,7 +200,8 @@ module Twilio
199
200
  # Note that the `resolution` imposes an aspect ratio to the resulting composition.
200
201
  # When the original video tracks are constrained by the aspect ratio, they are
201
202
  # scaled to fit. See [Specifying Video
202
- # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
203
+ # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts)
204
+ # for more info.
203
205
  # @param [composition_hook.Format] format The container format of the media files
204
206
  # used by the compositions created by the composition hook. Can be: `mp4` or
205
207
  # `webm` and the default is `webm`. If `mp4` or `webm`, `audio_sources` must have
@@ -217,7 +219,8 @@ module Twilio
217
219
  # and no Participant joins for a while as well as if all the Participants leave
218
220
  # the room and join later, because those gaps will be removed. See [Specifying
219
221
  # Video
220
- # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
222
+ # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts)
223
+ # for more info.
221
224
  # @return [CompositionHookInstance] Created CompositionHookInstance
222
225
  def create(friendly_name: nil, enabled: :unset, video_layout: :unset, audio_sources: :unset, audio_sources_excluded: :unset, resolution: :unset, format: :unset, status_callback: :unset, status_callback_method: :unset, trim: :unset)
223
226
  data = Twilio::Values.of({
@@ -318,7 +321,8 @@ module Twilio
318
321
  # account. When `false`, the composition hook never triggers.
319
322
  # @param [Hash] video_layout A JSON object that describes the video layout of the
320
323
  # composition hook in terms of regions. See [Specifying Video
321
- # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
324
+ # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts)
325
+ # for more info.
322
326
  # @param [String] audio_sources An array of track names from the same group room
323
327
  # to merge into the compositions created by the composition hook. Can include zero
324
328
  # or more track names. A composition triggered by the composition hook includes
@@ -340,7 +344,8 @@ module Twilio
340
344
  # and no Participant joins for a while as well as if all the Participants leave
341
345
  # the room and join later, because those gaps will be removed. See [Specifying
342
346
  # Video
343
- # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
347
+ # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts)
348
+ # for more info.
344
349
  # @param [composition_hook.Format] format The container format of the media files
345
350
  # used by the compositions created by the composition hook. Can be: `mp4` or
346
351
  # `webm` and the default is `webm`. If `mp4` or `webm`, `audio_sources` must have
@@ -364,7 +369,8 @@ module Twilio
364
369
  # Note that the `resolution` imposes an aspect ratio to the resulting composition.
365
370
  # When the original video tracks are constrained by the aspect ratio, they are
366
371
  # scaled to fit. See [Specifying Video
367
- # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
372
+ # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts)
373
+ # for more info.
368
374
  # @param [String] status_callback The URL we should call using the
369
375
  # `status_callback_method` to send status information to your application on every
370
376
  # composition event. If not provided, status callback events will not be
@@ -567,7 +573,8 @@ module Twilio
567
573
  # account. When `false`, the composition hook never triggers.
568
574
  # @param [Hash] video_layout A JSON object that describes the video layout of the
569
575
  # composition hook in terms of regions. See [Specifying Video
570
- # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
576
+ # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts)
577
+ # for more info.
571
578
  # @param [String] audio_sources An array of track names from the same group room
572
579
  # to merge into the compositions created by the composition hook. Can include zero
573
580
  # or more track names. A composition triggered by the composition hook includes
@@ -589,7 +596,8 @@ module Twilio
589
596
  # and no Participant joins for a while as well as if all the Participants leave
590
597
  # the room and join later, because those gaps will be removed. See [Specifying
591
598
  # Video
592
- # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
599
+ # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts)
600
+ # for more info.
593
601
  # @param [composition_hook.Format] format The container format of the media files
594
602
  # used by the compositions created by the composition hook. Can be: `mp4` or
595
603
  # `webm` and the default is `webm`. If `mp4` or `webm`, `audio_sources` must have
@@ -613,7 +621,8 @@ module Twilio
613
621
  # Note that the `resolution` imposes an aspect ratio to the resulting composition.
614
622
  # When the original video tracks are constrained by the aspect ratio, they are
615
623
  # scaled to fit. See [Specifying Video
616
- # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
624
+ # Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts)
625
+ # for more info.
617
626
  # @param [String] status_callback The URL we should call using the
618
627
  # `status_callback_method` to send status information to your application on every
619
628
  # composition event. If not provided, status callback events will not be
@@ -56,7 +56,8 @@ module Twilio
56
56
  # ***This feature is not available in `peer-to-peer` rooms***
57
57
  # @param [String] media_region The region for the media server in Group Rooms.
58
58
  # Can be: one of the [available Media
59
- # Regions](https://www.twilio.com/docs/video/ip-address-whitelisting#group-rooms-media-servers). ***This feature is not available in `peer-to-peer` rooms.***
59
+ # Regions](https://www.twilio.com/docs/video/ip-address-whitelisting#group-rooms-media-servers).
60
+ # ***This feature is not available in `peer-to-peer` rooms.***
60
61
  # @return [RoomInstance] Created RoomInstance
61
62
  def create(enable_turn: :unset, type: :unset, unique_name: :unset, status_callback: :unset, status_callback_method: :unset, max_participants: :unset, record_participants_on_connect: :unset, video_codecs: :unset, media_region: :unset)
62
63
  data = Twilio::Values.of({
@@ -12,8 +12,6 @@ module Twilio
12
12
  class V1 < Version
13
13
  class RoomContext < InstanceContext
14
14
  class ParticipantContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class SubscribeRulesList < ListResource
18
16
  ##
19
17
  # Initialize the SubscribeRulesList
@@ -71,8 +69,6 @@ module Twilio
71
69
  end
72
70
  end
73
71
 
74
- ##
75
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
76
72
  class SubscribeRulesPage < Page
77
73
  ##
78
74
  # Initialize the SubscribeRulesPage
@@ -107,8 +103,6 @@ module Twilio
107
103
  end
108
104
  end
109
105
 
110
- ##
111
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
112
106
  class SubscribeRulesInstance < InstanceResource
113
107
  ##
114
108
  # Initialize the SubscribeRulesInstance