twilio-ruby 5.25.4 → 5.26.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.
Files changed (220) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -3
  3. data/.travis.yml +3 -0
  4. data/CHANGES.md +24 -0
  5. data/README.md +22 -14
  6. data/lib/twilio-ruby/http/http_client.rb +4 -3
  7. data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +2 -2
  8. data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +2 -2
  9. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +2 -2
  10. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +2 -2
  11. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +10 -4
  12. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +2 -2
  13. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +2 -2
  14. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -2
  15. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +4 -4
  16. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +2 -2
  17. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +2 -2
  18. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +2 -2
  19. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +2 -2
  20. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +2 -2
  21. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
  22. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +2 -2
  23. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +2 -2
  24. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +2 -2
  25. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +2 -2
  26. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -2
  27. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +2 -2
  28. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +2 -2
  29. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +2 -2
  30. data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +2 -2
  31. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +2 -2
  32. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +2 -2
  33. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +2 -2
  34. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +2 -2
  35. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +2 -2
  36. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +2 -2
  37. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +2 -2
  38. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +2 -2
  39. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +2 -2
  40. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +2 -2
  41. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +2 -2
  42. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +2 -2
  43. data/lib/twilio-ruby/rest/authy/v1/service.rb +2 -2
  44. data/lib/twilio-ruby/rest/authy/v1/service/entity.rb +2 -2
  45. data/lib/twilio-ruby/rest/authy/v1/service/entity/factor.rb +2 -2
  46. data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +2 -2
  47. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +2 -2
  48. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +2 -2
  49. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +2 -2
  50. data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +2 -2
  51. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +2 -2
  52. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -2
  53. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +2 -2
  54. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +2 -2
  55. data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +2 -2
  56. data/lib/twilio-ruby/rest/chat/v1/credential.rb +2 -2
  57. data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -2
  58. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -2
  59. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +2 -2
  60. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +2 -2
  61. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +2 -2
  62. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +2 -2
  63. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +2 -2
  64. data/lib/twilio-ruby/rest/chat/v2.rb +2 -4
  65. data/lib/twilio-ruby/rest/chat/v2/credential.rb +12 -14
  66. data/lib/twilio-ruby/rest/chat/v2/service.rb +35 -43
  67. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +17 -19
  68. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +28 -24
  69. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +17 -16
  70. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +43 -44
  71. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +38 -37
  72. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +25 -26
  73. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +19 -17
  74. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +17 -17
  75. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +25 -27
  76. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +8 -5
  77. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +32 -6
  78. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +30 -6
  79. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +27 -6
  80. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +2 -2
  81. data/lib/twilio-ruby/rest/fax/v1/fax.rb +2 -2
  82. data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +2 -2
  83. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +2 -2
  84. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
  85. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +2 -2
  86. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +2 -2
  87. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +2 -2
  88. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -2
  89. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -2
  90. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +2 -2
  91. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +2 -2
  92. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +2 -2
  93. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +2 -2
  94. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +2 -2
  95. data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -4
  96. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +12 -14
  97. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +35 -43
  98. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +17 -19
  99. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +28 -24
  100. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +17 -16
  101. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +43 -44
  102. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +38 -37
  103. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +25 -26
  104. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +19 -17
  105. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +17 -17
  106. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +25 -27
  107. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +8 -5
  108. data/lib/twilio-ruby/rest/messaging/v1/service.rb +2 -2
  109. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +2 -2
  110. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +2 -2
  111. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +2 -2
  112. data/lib/twilio-ruby/rest/messaging/v1/session.rb +2 -2
  113. data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +2 -2
  114. data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +2 -2
  115. data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +2 -2
  116. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +2 -2
  117. data/lib/twilio-ruby/rest/notify/v1/credential.rb +2 -2
  118. data/lib/twilio-ruby/rest/notify/v1/service.rb +2 -2
  119. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +2 -2
  120. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +2 -2
  121. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +2 -2
  122. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +2 -2
  123. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +2 -2
  124. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +2 -2
  125. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +2 -2
  126. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +2 -2
  127. data/lib/twilio-ruby/rest/preview/sync/service.rb +2 -2
  128. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +2 -2
  129. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +2 -2
  130. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -2
  131. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +2 -2
  132. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +2 -2
  133. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -2
  134. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +2 -2
  135. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +2 -2
  136. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +10 -2
  137. data/lib/twilio-ruby/rest/preview/understand/assistant.rb +2 -2
  138. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +2 -2
  139. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +2 -2
  140. data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +2 -2
  141. data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +2 -2
  142. data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -2
  143. data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +2 -2
  144. data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +2 -2
  145. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
  146. data/lib/twilio-ruby/rest/proxy/v1/service.rb +2 -2
  147. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +2 -2
  148. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -2
  149. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +2 -2
  150. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +2 -2
  151. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +2 -2
  152. data/lib/twilio-ruby/rest/serverless/v1/service.rb +2 -2
  153. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +2 -2
  154. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +2 -2
  155. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +2 -2
  156. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +2 -2
  157. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +2 -2
  158. data/lib/twilio-ruby/rest/studio.rb +2 -1
  159. data/lib/twilio-ruby/rest/studio/v1.rb +1 -1
  160. data/lib/twilio-ruby/rest/studio/v1/flow.rb +13 -13
  161. data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +25 -24
  162. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +11 -11
  163. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +20 -20
  164. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +15 -17
  165. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +44 -38
  166. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +12 -11
  167. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +21 -20
  168. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +18 -17
  169. data/lib/twilio-ruby/rest/sync.rb +2 -1
  170. data/lib/twilio-ruby/rest/sync/v1.rb +1 -1
  171. data/lib/twilio-ruby/rest/sync/v1/service.rb +90 -93
  172. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +46 -33
  173. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +36 -38
  174. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +44 -31
  175. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +94 -76
  176. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +37 -38
  177. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +45 -33
  178. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +98 -81
  179. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +35 -38
  180. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +39 -28
  181. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +14 -12
  182. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +2 -2
  183. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +2 -2
  184. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +2 -2
  185. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +2 -2
  186. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +2 -2
  187. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -2
  188. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +2 -2
  189. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +2 -2
  190. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +2 -2
  191. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -2
  192. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -2
  193. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -2
  194. data/lib/twilio-ruby/rest/trunking/v1/trunk/terminating_sip_domain.rb +2 -2
  195. data/lib/twilio-ruby/rest/verify/v2/service.rb +2 -2
  196. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +2 -2
  197. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +3 -3
  198. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +2 -2
  199. data/lib/twilio-ruby/rest/video/v1/composition.rb +2 -2
  200. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +2 -2
  201. data/lib/twilio-ruby/rest/video/v1/recording.rb +2 -2
  202. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +2 -2
  203. data/lib/twilio-ruby/rest/wireless.rb +3 -3
  204. data/lib/twilio-ruby/rest/wireless/v1.rb +3 -6
  205. data/lib/twilio-ruby/rest/wireless/v1/command.rb +54 -52
  206. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +64 -65
  207. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +147 -141
  208. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +34 -28
  209. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +32 -32
  210. data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +19 -19
  211. data/lib/twilio-ruby/version.rb +1 -1
  212. data/spec/integration/api/v2010/account/call_spec.rb +45 -0
  213. data/spec/integration/api/v2010/account/message_spec.rb +37 -0
  214. data/spec/integration/conversations/v1/conversation/message_spec.rb +5 -0
  215. data/spec/integration/conversations/v1/conversation/participant_spec.rb +8 -10
  216. data/spec/integration/conversations/v1/conversation_spec.rb +4 -0
  217. data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
  218. data/spec/integration/preview/trusted_comms/branded_call_spec.rb +1 -0
  219. data/spec/integration/verify/v2/service/verification_spec.rb +1 -1
  220. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85fe4385815510c6e6ef8d4d4697adfbac376a96141a5aa4610a8a6538aed999
4
- data.tar.gz: da45f6917c09d04948ea1039b2ac5e0c36642f37a3446b6ec0c43d82d1939dad
3
+ metadata.gz: 55c89da2b5143eb59bd22cd782d0e30f6dbb6aaceccf75c7c8f39f4909025163
4
+ data.tar.gz: 42e084bbdade6e00d00a2bc48d349f3192ae0743b0fa4e94e762303845aa2a8a
5
5
  SHA512:
6
- metadata.gz: 5872e52b4c22b8ff5a0c22d39d0d3fce6f3ae19947437d4429a625c6b55669857522e66c50af3ceb5f93edfd34425877c4ee31ef3342e3f6e3dbf29a71d5f166
7
- data.tar.gz: 1c7d0564ad462ba2f3406beb500afe0a31433996a57b73253cad9890ba539cfc50d177d75e9a999121d0b1bbad8587da8c1271899784b69ae086dc0b9d09338d
6
+ metadata.gz: 96053dc3a647f44894727c1497d0dc866a27bae51f84bfddf53a85bc9a306250b929f29e271ddcd7a61ed46f65bb541fbe8ba6e851303d4015ef8a634fa531f0
7
+ data.tar.gz: 8021f6aad6b54029a6e5ded5280e72b8d918d6c1c74e3819cccf8deb809df3f3340e3a762cbe7d25354de17e0e370fab4edeb0ec8419d807aa76e3a7108ae10b
@@ -8,6 +8,7 @@ AllCops:
8
8
  - 'lib/twilio-ruby/version.rb'
9
9
  - 'lib/twilio-ruby/twiml/**/*'
10
10
  - 'lib/twilio-ruby/util/configuration.rb'
11
+ - 'vendor/**/*'
11
12
 
12
13
  Metrics/LineLength:
13
14
  Max: 120
@@ -18,9 +19,6 @@ Metrics/BlockLength:
18
19
  Exclude:
19
20
  - 'spec/**/*'
20
21
 
21
- Metrics/AbcSize:
22
- Enabled: false
23
-
24
22
  Layout/IndentHeredoc:
25
23
  Enabled: false
26
24
 
@@ -14,6 +14,9 @@ rvm:
14
14
  services:
15
15
  - docker
16
16
 
17
+ install: make install
18
+ script: make test
19
+
17
20
  matrix:
18
21
  fast_finish: true
19
22
 
data/CHANGES.md CHANGED
@@ -1,6 +1,30 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2019-09-04] Version 5.26.0
5
+ ----------------------------
6
+ **Library**
7
+ - [PR #463](https://github.com/twilio/twilio-ruby/pull/463): Reduce line length to satisfy rubocop constraints. Thanks to [@igracia](https://github.com/igracia)!
8
+ - [PR #399](https://github.com/twilio/twilio-ruby/pull/399): breaking: Added proxy protocol to HTTP Client constructor. Thanks to [@po5i](https://github.com/po5i)! **(breaking change)**
9
+ - [PR #462](https://github.com/twilio/twilio-ruby/pull/462): Correct 'delete' method doc to indicate 'false' when resource not deleted. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
10
+ - [PR #441](https://github.com/twilio/twilio-ruby/pull/441): Link to actual documentation. Thanks to [@alexford](https://github.com/alexford)!
11
+
12
+ **Api**
13
+ - Pass Twiml in call update request
14
+
15
+ **Conversations**
16
+ - Add attributes to Conversations resources
17
+
18
+ **Flex**
19
+ - Adding `features_enabled` and `serverless_service_sids` to Flex Configuration
20
+
21
+ **Messaging**
22
+ - Message API required params updated **(breaking change)**
23
+
24
+ **Preview**
25
+ - Added support for the optional `CallSid` to `/BrandedCalls` endpoint
26
+
27
+
4
28
  [2019-08-21] Version 5.25.4
5
29
  ----------------------------
6
30
  **Library**
data/README.md CHANGED
@@ -1,9 +1,13 @@
1
1
  # twilio-ruby
2
2
 
3
- [![Build Status](http://img.shields.io/travis/twilio/twilio-ruby.svg)][travis]
4
- [![Gem Version](http://img.shields.io/gem/v/twilio-ruby.svg)](https://rubygems.org/gems/twilio-ruby)
3
+ [![Build Status](https://img.shields.io/travis/twilio/twilio-ruby.svg)][travis]
4
+ [![Gem Version](https://img.shields.io/gem/v/twilio-ruby.svg)](https://rubygems.org/gems/twilio-ruby)
5
5
 
6
- A module for using the Twilio REST API and generating valid [TwiML](http://www.twilio.com/docs/api/twiml/ "TwiML - Twilio Markup Language"). [Click here to read the full documentation.][documentation]
6
+ ## Documentation
7
+
8
+ The documentation for the Twilio API can be found [here][apidocs].
9
+
10
+ The Ruby library documentation can be found [here][libdocs] and individual releases [here][refdocs].
7
11
 
8
12
  ## Recent Update
9
13
 
@@ -20,19 +24,18 @@ Developer Preview status. Such products are explicitly documented as
20
24
  Beta/Developer Preview both in the Twilio docs and console, as well as through
21
25
  in-line code documentation here in the library.
22
26
 
23
-
24
27
  ## Installation
25
28
 
26
29
  To install using [Bundler][bundler] grab the latest stable version:
27
30
 
28
31
  ```ruby
29
- gem 'twilio-ruby', '~> 5.25.4'
32
+ gem 'twilio-ruby', '~> 5.26.0'
30
33
  ```
31
34
 
32
35
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
33
36
 
34
37
  ```bash
35
- gem install twilio-ruby -v 5.25.4
38
+ gem install twilio-ruby -v 5.26.0
36
39
  ```
37
40
 
38
41
  To build and install the development branch yourself from the latest source:
@@ -44,12 +47,11 @@ make install
44
47
  ```
45
48
 
46
49
  ### Migration from 4.x
47
- [Upgrade Guide][upgrade]
48
50
 
49
- ## Documentation
50
- [Here][documentation]
51
+ [Upgrade Guide][upgrade]
51
52
 
52
53
  ## Docker Image
54
+
53
55
  The `Dockerfile` present in this repository and its respective `twilio/twilio-ruby` Docker image are currently used by Twilio for testing purposes only.
54
56
 
55
57
  ## Getting help
@@ -108,6 +110,7 @@ message_sid = 'SMxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
108
110
  ```
109
111
 
110
112
  ### Customizing your HTTP Client
113
+
111
114
  twilio-ruby uses [Faraday][faraday] to make HTTP requests. You can tell
112
115
  Twilio::REST::Client to use any of the Faraday adapters like so:
113
116
 
@@ -145,7 +148,9 @@ capability.add_scope(incoming_scope)
145
148
  There is a slightly more detailed document in the [Capability][capability]
146
149
  section of the wiki.
147
150
 
148
- ## Getting Started With TwiML
151
+ ### Generating TwiML
152
+
153
+ To control phone calls, your application needs to output [TwiML][twiml].
149
154
 
150
155
  You can construct a TwiML response like this:
151
156
 
@@ -185,14 +190,17 @@ implementations:
185
190
  - Ruby 2.3.0
186
191
  - Ruby 2.2.0
187
192
 
193
+ [apidocs]: https://www.twilio.com/docs/api
194
+ [twiml]: https://www.twilio.com/docs/api/twiml
195
+ [libdocs]: https://www.twilio.com/docs/libraries/ruby
196
+ [refdocs]: https://twilio.github.io/twilio-ruby
188
197
  [capability]: https://github.com/twilio/twilio-ruby/wiki/JWT-Tokens
189
198
  [examples]: https://github.com/twilio/twilio-ruby/blob/master/examples
190
- [documentation]: http://twilio.github.io/twilio-ruby
191
199
  [wiki]: https://github.com/twilio/twilio-ruby/wiki
192
- [bundler]: http://bundler.io
193
- [rubygems]: http://rubygems.org
200
+ [bundler]: https://bundler.io
201
+ [rubygems]: https://rubygems.org
194
202
  [gem]: https://rubygems.org/gems/twilio
195
- [travis]: http://travis-ci.org/twilio/twilio-ruby
203
+ [travis]: https://travis-ci.org/twilio/twilio-ruby
196
204
  [upgrade]: https://github.com/twilio/twilio-ruby/wiki/Ruby-Version-5.x-Upgrade-Guide
197
205
  [issues]: https://github.com/twilio/twilio-ruby/issues
198
206
  [faraday]: https://github.com/lostisland/faraday
@@ -8,8 +8,9 @@ module Twilio
8
8
  attr_accessor :adapter
9
9
  attr_reader :timeout, :last_response, :last_request
10
10
 
11
- def initialize(proxy_addr = nil, proxy_port = nil, proxy_user = nil, proxy_pass = nil, ssl_ca_file = nil,
12
- timeout: nil)
11
+ def initialize(proxy_prot = nil, proxy_addr = nil, proxy_port = nil, proxy_user = nil, proxy_pass = nil,
12
+ ssl_ca_file = nil, timeout: nil)
13
+ @proxy_prot = proxy_prot
13
14
  @proxy_addr = proxy_addr
14
15
  @proxy_port = proxy_port
15
16
  @proxy_user = proxy_user
@@ -27,7 +28,7 @@ module Twilio
27
28
  f.headers = request.headers
28
29
  f.basic_auth(request.auth[0], request.auth[1])
29
30
  if @proxy_addr
30
- f.proxy "#{@proxy_user}:#{@proxy_pass}@#{@proxy_addr}:#{@proxy_port}"
31
+ f.proxy = "#{@proxy_prot}://#{@proxy_user}:#{@proxy_pass}@#{@proxy_addr}:#{@proxy_port}"
31
32
  end
32
33
  f.options.open_timeout = request.timeout || @timeout
33
34
  f.options.timeout = request.timeout || @timeout
@@ -219,7 +219,7 @@ module Twilio
219
219
 
220
220
  ##
221
221
  # Deletes the AwsInstance
222
- # @return [Boolean] true if delete succeeds, true otherwise
222
+ # @return [Boolean] true if delete succeeds, false otherwise
223
223
  def delete
224
224
  @version.delete('delete', @uri)
225
225
  end
@@ -330,7 +330,7 @@ module Twilio
330
330
 
331
331
  ##
332
332
  # Deletes the AwsInstance
333
- # @return [Boolean] true if delete succeeds, true otherwise
333
+ # @return [Boolean] true if delete succeeds, false otherwise
334
334
  def delete
335
335
  context.delete
336
336
  end
@@ -219,7 +219,7 @@ module Twilio
219
219
 
220
220
  ##
221
221
  # Deletes the PublicKeyInstance
222
- # @return [Boolean] true if delete succeeds, true otherwise
222
+ # @return [Boolean] true if delete succeeds, false otherwise
223
223
  def delete
224
224
  @version.delete('delete', @uri)
225
225
  end
@@ -330,7 +330,7 @@ module Twilio
330
330
 
331
331
  ##
332
332
  # Deletes the PublicKeyInstance
333
- # @return [Boolean] true if delete succeeds, true otherwise
333
+ # @return [Boolean] true if delete succeeds, false otherwise
334
334
  def delete
335
335
  context.delete
336
336
  end
@@ -240,7 +240,7 @@ module Twilio
240
240
 
241
241
  ##
242
242
  # Deletes the AddressInstance
243
- # @return [Boolean] true if delete succeeds, true otherwise
243
+ # @return [Boolean] true if delete succeeds, false otherwise
244
244
  def delete
245
245
  @version.delete('delete', @uri)
246
246
  end
@@ -469,7 +469,7 @@ module Twilio
469
469
 
470
470
  ##
471
471
  # Deletes the AddressInstance
472
- # @return [Boolean] true if delete succeeds, true otherwise
472
+ # @return [Boolean] true if delete succeeds, false otherwise
473
473
  def delete
474
474
  context.delete
475
475
  end
@@ -236,7 +236,7 @@ module Twilio
236
236
 
237
237
  ##
238
238
  # Deletes the ApplicationInstance
239
- # @return [Boolean] true if delete succeeds, true otherwise
239
+ # @return [Boolean] true if delete succeeds, false otherwise
240
240
  def delete
241
241
  @version.delete('delete', @uri)
242
242
  end
@@ -520,7 +520,7 @@ module Twilio
520
520
 
521
521
  ##
522
522
  # Deletes the ApplicationInstance
523
- # @return [Boolean] true if delete succeeds, true otherwise
523
+ # @return [Boolean] true if delete succeeds, false otherwise
524
524
  def delete
525
525
  context.delete
526
526
  end
@@ -413,7 +413,7 @@ module Twilio
413
413
 
414
414
  ##
415
415
  # Deletes the CallInstance
416
- # @return [Boolean] true if delete succeeds, true otherwise
416
+ # @return [Boolean] true if delete succeeds, false otherwise
417
417
  def delete
418
418
  @version.delete('delete', @uri)
419
419
  end
@@ -462,8 +462,10 @@ module Twilio
462
462
  # @param [String] status_callback_method The HTTP method we should use when
463
463
  # requesting the `status_callback` URL. Can be: `GET` or `POST` and the default is
464
464
  # `POST`. If an `application_sid` parameter is present, this parameter is ignored.
465
+ # @param [String] twiml TwiML instructions for the call Twilio will use without
466
+ # fetching Twiml from url. Twiml and url parameters are mutually exclusive
465
467
  # @return [CallInstance] Updated CallInstance
466
- def update(url: :unset, method: :unset, status: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_method: :unset)
468
+ def update(url: :unset, method: :unset, status: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, twiml: :unset)
467
469
  data = Twilio::Values.of({
468
470
  'Url' => url,
469
471
  'Method' => method,
@@ -472,6 +474,7 @@ module Twilio
472
474
  'FallbackMethod' => fallback_method,
473
475
  'StatusCallback' => status_callback,
474
476
  'StatusCallbackMethod' => status_callback_method,
477
+ 'Twiml' => twiml,
475
478
  })
476
479
 
477
480
  payload = @version.update(
@@ -761,7 +764,7 @@ module Twilio
761
764
 
762
765
  ##
763
766
  # Deletes the CallInstance
764
- # @return [Boolean] true if delete succeeds, true otherwise
767
+ # @return [Boolean] true if delete succeeds, false otherwise
765
768
  def delete
766
769
  context.delete
767
770
  end
@@ -802,8 +805,10 @@ module Twilio
802
805
  # @param [String] status_callback_method The HTTP method we should use when
803
806
  # requesting the `status_callback` URL. Can be: `GET` or `POST` and the default is
804
807
  # `POST`. If an `application_sid` parameter is present, this parameter is ignored.
808
+ # @param [String] twiml TwiML instructions for the call Twilio will use without
809
+ # fetching Twiml from url. Twiml and url parameters are mutually exclusive
805
810
  # @return [CallInstance] Updated CallInstance
806
- def update(url: :unset, method: :unset, status: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_method: :unset)
811
+ def update(url: :unset, method: :unset, status: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, twiml: :unset)
807
812
  context.update(
808
813
  url: url,
809
814
  method: method,
@@ -812,6 +817,7 @@ module Twilio
812
817
  fallback_method: fallback_method,
813
818
  status_callback: status_callback,
814
819
  status_callback_method: status_callback_method,
820
+ twiml: twiml,
815
821
  )
816
822
  end
817
823
 
@@ -137,7 +137,7 @@ module Twilio
137
137
 
138
138
  ##
139
139
  # Deletes the FeedbackSummaryInstance
140
- # @return [Boolean] true if delete succeeds, true otherwise
140
+ # @return [Boolean] true if delete succeeds, false otherwise
141
141
  def delete
142
142
  @version.delete('delete', @uri)
143
143
  end
@@ -298,7 +298,7 @@ module Twilio
298
298
 
299
299
  ##
300
300
  # Deletes the FeedbackSummaryInstance
301
- # @return [Boolean] true if delete succeeds, true otherwise
301
+ # @return [Boolean] true if delete succeeds, false otherwise
302
302
  def delete
303
303
  context.delete
304
304
  end
@@ -232,7 +232,7 @@ module Twilio
232
232
 
233
233
  ##
234
234
  # Deletes the NotificationInstance
235
- # @return [Boolean] true if delete succeeds, true otherwise
235
+ # @return [Boolean] true if delete succeeds, false otherwise
236
236
  def delete
237
237
  @version.delete('delete', @uri)
238
238
  end
@@ -422,7 +422,7 @@ module Twilio
422
422
 
423
423
  ##
424
424
  # Deletes the NotificationInstance
425
- # @return [Boolean] true if delete succeeds, true otherwise
425
+ # @return [Boolean] true if delete succeeds, false otherwise
426
426
  def delete
427
427
  context.delete
428
428
  end
@@ -295,7 +295,7 @@ module Twilio
295
295
 
296
296
  ##
297
297
  # Deletes the RecordingInstance
298
- # @return [Boolean] true if delete succeeds, true otherwise
298
+ # @return [Boolean] true if delete succeeds, false otherwise
299
299
  def delete
300
300
  @version.delete('delete', @uri)
301
301
  end
@@ -499,7 +499,7 @@ module Twilio
499
499
 
500
500
  ##
501
501
  # Deletes the RecordingInstance
502
- # @return [Boolean] true if delete succeeds, true otherwise
502
+ # @return [Boolean] true if delete succeeds, false otherwise
503
503
  def delete
504
504
  context.delete
505
505
  end
@@ -75,8 +75,8 @@ module Twilio
75
75
  # outbound call, including ringing or disconnect messages. Can be: `true` or
76
76
  # `false` and defaults to `true`.
77
77
  # @param [String] max_participants The maximum number of participants in the
78
- # conference. Can be a positive integer from `2` to `10`. The default value is
79
- # `10`.
78
+ # conference. Can be a positive integer from `2` to `250`. The default value is
79
+ # `250`.
80
80
  # @param [String] conference_record Whether to record the conference the
81
81
  # participant is joining. Can be: `true`, `false`, `record-from-start`, and
82
82
  # `do-not-record`. The default value is `false`.
@@ -439,7 +439,7 @@ module Twilio
439
439
 
440
440
  ##
441
441
  # Deletes the ParticipantInstance
442
- # @return [Boolean] true if delete succeeds, true otherwise
442
+ # @return [Boolean] true if delete succeeds, false otherwise
443
443
  def delete
444
444
  @version.delete('delete', @uri)
445
445
  end
@@ -657,7 +657,7 @@ module Twilio
657
657
 
658
658
  ##
659
659
  # Deletes the ParticipantInstance
660
- # @return [Boolean] true if delete succeeds, true otherwise
660
+ # @return [Boolean] true if delete succeeds, false otherwise
661
661
  def delete
662
662
  context.delete
663
663
  end
@@ -247,7 +247,7 @@ module Twilio
247
247
 
248
248
  ##
249
249
  # Deletes the RecordingInstance
250
- # @return [Boolean] true if delete succeeds, true otherwise
250
+ # @return [Boolean] true if delete succeeds, false otherwise
251
251
  def delete
252
252
  @version.delete('delete', @uri)
253
253
  end
@@ -454,7 +454,7 @@ module Twilio
454
454
 
455
455
  ##
456
456
  # Deletes the RecordingInstance
457
- # @return [Boolean] true if delete succeeds, true otherwise
457
+ # @return [Boolean] true if delete succeeds, false otherwise
458
458
  def delete
459
459
  context.delete
460
460
  end
@@ -229,7 +229,7 @@ module Twilio
229
229
 
230
230
  ##
231
231
  # Deletes the ConnectAppInstance
232
- # @return [Boolean] true if delete succeeds, true otherwise
232
+ # @return [Boolean] true if delete succeeds, false otherwise
233
233
  def delete
234
234
  @version.delete('delete', @uri)
235
235
  end
@@ -400,7 +400,7 @@ module Twilio
400
400
 
401
401
  ##
402
402
  # Deletes the ConnectAppInstance
403
- # @return [Boolean] true if delete succeeds, true otherwise
403
+ # @return [Boolean] true if delete succeeds, false otherwise
404
404
  def delete
405
405
  context.delete
406
406
  end
@@ -472,7 +472,7 @@ module Twilio
472
472
 
473
473
  ##
474
474
  # Deletes the IncomingPhoneNumberInstance
475
- # @return [Boolean] true if delete succeeds, true otherwise
475
+ # @return [Boolean] true if delete succeeds, false otherwise
476
476
  def delete
477
477
  @version.delete('delete', @uri)
478
478
  end
@@ -857,7 +857,7 @@ module Twilio
857
857
 
858
858
  ##
859
859
  # Deletes the IncomingPhoneNumberInstance
860
- # @return [Boolean] true if delete succeeds, true otherwise
860
+ # @return [Boolean] true if delete succeeds, false otherwise
861
861
  def delete
862
862
  context.delete
863
863
  end