twilio-ruby 7.1.1 → 7.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (443) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +43 -0
  3. data/Makefile +3 -0
  4. data/README.md +2 -2
  5. data/lib/twilio-ruby/base/client_base.rb +4 -1
  6. data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +2 -1
  7. data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +8 -4
  8. data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +8 -4
  9. data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +6 -3
  10. data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +4 -2
  11. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +8 -4
  12. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +8 -4
  13. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +2 -1
  14. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +2 -1
  15. data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +2 -1
  16. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +2 -1
  17. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +4 -2
  18. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +8 -4
  19. data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +4 -2
  20. data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +4 -2
  21. data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +901 -0
  22. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +2 -1
  23. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +4 -2
  24. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +36 -5
  25. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +8 -4
  26. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +6 -3
  27. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +4 -2
  28. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +6 -3
  29. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +2 -1
  30. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +6 -3
  31. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +2 -1
  32. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +2 -1
  33. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +2 -1
  34. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +8 -4
  35. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +6 -3
  36. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +2 -1
  37. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +4 -2
  38. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +8 -4
  39. data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +2 -1
  40. data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +2 -1
  41. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +2 -1
  42. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +6 -3
  43. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +4 -2
  44. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +8 -4
  45. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +4 -2
  46. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +4 -2
  47. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +4 -2
  48. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +5 -3
  49. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +4 -2
  50. data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +6 -3
  51. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +8 -4
  52. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +8 -4
  53. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +6 -3
  54. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +6 -3
  55. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +6 -3
  56. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +6 -3
  57. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +6 -3
  58. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +8 -4
  59. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +8 -4
  60. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +8 -4
  61. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +2 -1
  62. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +4 -2
  63. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +8 -4
  64. data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +2 -1
  65. data/lib/twilio-ruby/rest/api/v2010/account.rb +6 -3
  66. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +2 -1
  67. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +2 -1
  68. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +4 -2
  69. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +2 -1
  70. data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +4 -2
  71. data/lib/twilio-ruby/rest/chat/v1/credential.rb +8 -4
  72. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +6 -3
  73. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +8 -4
  74. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +8 -4
  75. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +8 -4
  76. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +8 -4
  77. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +8 -4
  78. data/lib/twilio-ruby/rest/chat/v1/service.rb +8 -4
  79. data/lib/twilio-ruby/rest/chat/v2/credential.rb +8 -4
  80. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +4 -2
  81. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +6 -3
  82. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +5 -4
  83. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +5 -4
  84. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +8 -4
  85. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +5 -4
  86. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +8 -4
  87. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +4 -2
  88. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +5 -3
  89. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +6 -4
  90. data/lib/twilio-ruby/rest/chat/v2/service.rb +8 -4
  91. data/lib/twilio-ruby/rest/chat/v3/channel.rb +1 -1
  92. data/lib/twilio-ruby/rest/client.rb +5 -0
  93. data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +3 -2
  94. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +2 -1
  95. data/lib/twilio-ruby/rest/content/v1/content.rb +7 -4
  96. data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +8 -4
  97. data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +4 -2
  98. data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +4 -2
  99. data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +2 -1
  100. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +5 -4
  101. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +5 -4
  102. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +8 -4
  103. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +5 -4
  104. data/lib/twilio-ruby/rest/conversations/v1/credential.rb +8 -4
  105. data/lib/twilio-ruby/rest/conversations/v1/role.rb +8 -4
  106. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +4 -2
  107. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +4 -2
  108. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +4 -2
  109. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +4 -2
  110. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +2 -1
  111. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +5 -4
  112. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +5 -4
  113. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +8 -4
  114. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +5 -4
  115. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +8 -4
  116. data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +6 -3
  117. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +5 -4
  118. data/lib/twilio-ruby/rest/conversations/v1/service.rb +6 -3
  119. data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +6 -3
  120. data/lib/twilio-ruby/rest/conversations/v1/user.rb +5 -4
  121. data/lib/twilio-ruby/rest/events/v1/event_type.rb +16 -1
  122. data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +2 -1
  123. data/lib/twilio-ruby/rest/events/v1/schema.rb +2 -1
  124. data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +2 -1
  125. data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +2 -1
  126. data/lib/twilio-ruby/rest/events/v1/sink.rb +8 -4
  127. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +8 -4
  128. data/lib/twilio-ruby/rest/events/v1/subscription.rb +8 -4
  129. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +2 -2
  130. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +6 -3
  131. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +5 -3
  132. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +8 -4
  133. data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +1 -1
  134. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +4 -4
  135. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +3 -3
  136. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +3 -3
  137. data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +1 -1
  138. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +1 -1
  139. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +1 -1
  140. data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +1 -1
  141. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +2 -1
  142. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +4 -2
  143. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +4 -2
  144. data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +4 -2
  145. data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +2 -2
  146. data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +3 -3
  147. data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +1 -1
  148. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +1 -1
  149. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +2 -2
  150. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +1 -1
  151. data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +2 -2
  152. data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +1 -1
  153. data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +2 -1
  154. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +8 -4
  155. data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +2 -1
  156. data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +1 -1
  157. data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +4 -2
  158. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +4 -2
  159. data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +2 -1
  160. data/lib/twilio-ruby/rest/insights/v1/call.rb +2 -1
  161. data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +2 -1
  162. data/lib/twilio-ruby/rest/insights/v1/conference.rb +2 -1
  163. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +2 -1
  164. data/lib/twilio-ruby/rest/insights/v1/room.rb +2 -1
  165. data/lib/twilio-ruby/rest/insights/v1/setting.rb +4 -2
  166. data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +7 -4
  167. data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +2 -1
  168. data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +4 -2
  169. data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +2 -1
  170. data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +2 -1
  171. data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +2 -1
  172. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +7 -4
  173. data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +2 -1
  174. data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +2 -1
  175. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +6 -3
  176. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +8 -4
  177. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +6 -3
  178. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +8 -4
  179. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +8 -4
  180. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +8 -4
  181. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +8 -4
  182. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +8 -4
  183. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +8 -4
  184. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +8 -4
  185. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +4 -2
  186. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +6 -3
  187. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +5 -4
  188. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +5 -4
  189. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +8 -4
  190. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +5 -4
  191. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +8 -4
  192. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -2
  193. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +6 -3
  194. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +6 -4
  195. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +8 -4
  196. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +2 -1
  197. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +2 -1
  198. data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +2 -1
  199. data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +2 -1
  200. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +4 -2
  201. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +9 -8
  202. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +8 -4
  203. data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +4 -2
  204. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +2 -1
  205. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +4 -2
  206. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +6 -3
  207. data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +2 -1
  208. data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +6 -3
  209. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +4 -2
  210. data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +2 -1
  211. data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +2 -1
  212. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +4 -2
  213. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +2 -1
  214. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +6 -3
  215. data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +2 -1
  216. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +6 -3
  217. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +6 -3
  218. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +8 -4
  219. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +2 -1
  220. data/lib/twilio-ruby/rest/messaging/v1/service.rb +8 -4
  221. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +8 -4
  222. data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +2 -1
  223. data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +8 -4
  224. data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +8 -4
  225. data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +2 -1
  226. data/lib/twilio-ruby/rest/microvisor/v1/app.rb +4 -2
  227. data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +8 -4
  228. data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +8 -4
  229. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +4 -2
  230. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +2 -1
  231. data/lib/twilio-ruby/rest/monitor/v1/event.rb +2 -1
  232. data/lib/twilio-ruby/rest/notify/v1/credential.rb +8 -4
  233. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +6 -3
  234. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +2 -1
  235. data/lib/twilio-ruby/rest/notify/v1/service.rb +8 -4
  236. data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +5 -3
  237. data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +3 -2
  238. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +14 -4
  239. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +29 -6
  240. data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +2 -15
  241. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +3 -2
  242. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +2 -1
  243. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb +2 -1
  244. data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +3 -2
  245. data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +6 -3
  246. data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +5 -3
  247. data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +6 -3
  248. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +2 -1
  249. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +4 -2
  250. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +6 -3
  251. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +2 -1
  252. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +8 -4
  253. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +8 -4
  254. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +2 -1
  255. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +25 -7
  256. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +8 -4
  257. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +2 -1
  258. data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +2 -1
  259. data/lib/twilio-ruby/rest/oauth/v1/token.rb +2 -1
  260. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +8 -4
  261. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +8 -4
  262. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +8 -4
  263. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +8 -4
  264. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +8 -4
  265. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +6 -3
  266. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -4
  267. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +2 -1
  268. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +2 -1
  269. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +4 -2
  270. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +8 -4
  271. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +6 -3
  272. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +7 -4
  273. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +6 -4
  274. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +6 -3
  275. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +6 -3
  276. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +6 -4
  277. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +6 -3
  278. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +6 -3
  279. data/lib/twilio-ruby/rest/preview/sync/service.rb +8 -4
  280. data/lib/twilio-ruby/rest/preview/wireless/command.rb +4 -2
  281. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +8 -4
  282. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +2 -1
  283. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +4 -2
  284. data/lib/twilio-ruby/rest/preview_iam.rb +6 -0
  285. data/lib/twilio-ruby/rest/preview_iam_base.rb +33 -0
  286. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -1
  287. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +2 -1
  288. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -1
  289. data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +2 -1
  290. data/lib/twilio-ruby/rest/pricing/v2/country.rb +2 -1
  291. data/lib/twilio-ruby/rest/pricing/v2/number.rb +2 -1
  292. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +2 -1
  293. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +2 -1
  294. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +8 -4
  295. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +4 -2
  296. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +4 -2
  297. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +6 -3
  298. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +8 -4
  299. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +8 -4
  300. data/lib/twilio-ruby/rest/proxy/v1/service.rb +8 -4
  301. data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +4 -2
  302. data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +4 -2
  303. data/lib/twilio-ruby/rest/routes/v2/trunk.rb +4 -2
  304. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +2 -1
  305. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +8 -4
  306. data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +2 -1
  307. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +6 -3
  308. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +4 -2
  309. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +2 -1
  310. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +8 -4
  311. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +6 -3
  312. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +2 -1
  313. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +2 -1
  314. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +8 -4
  315. data/lib/twilio-ruby/rest/serverless/v1/service.rb +8 -4
  316. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +2 -1
  317. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +2 -1
  318. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +2 -1
  319. data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +6 -3
  320. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +2 -1
  321. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +2 -1
  322. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +2 -1
  323. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +8 -4
  324. data/lib/twilio-ruby/rest/studio/v1/flow.rb +4 -2
  325. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +2 -1
  326. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +2 -1
  327. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +2 -1
  328. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +8 -4
  329. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +2 -1
  330. data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +4 -2
  331. data/lib/twilio-ruby/rest/studio/v2/flow.rb +8 -4
  332. data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +2 -1
  333. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +4 -2
  334. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +6 -3
  335. data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +4 -2
  336. data/lib/twilio-ruby/rest/supersim/v1/network.rb +2 -1
  337. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +6 -3
  338. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -3
  339. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +6 -3
  340. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +4 -2
  341. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +6 -3
  342. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
  343. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +6 -4
  344. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +6 -3
  345. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +8 -4
  346. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +6 -4
  347. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +6 -3
  348. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +8 -4
  349. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +2 -1
  350. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +8 -4
  351. data/lib/twilio-ruby/rest/sync/v1/service.rb +8 -4
  352. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +8 -4
  353. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +2 -1
  354. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +3 -2
  355. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +6 -4
  356. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +8 -4
  357. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +3 -2
  358. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +2 -1
  359. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +2 -1
  360. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +2 -1
  361. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -4
  362. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +3 -2
  363. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +4 -2
  364. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +2 -1
  365. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +2 -1
  366. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +2 -1
  367. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +2 -1
  368. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +6 -4
  369. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +2 -1
  370. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +2 -1
  371. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +2 -1
  372. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +8 -4
  373. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +2 -1
  374. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +2 -1
  375. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +2 -1
  376. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +8 -4
  377. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +6 -3
  378. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +6 -3
  379. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +8 -4
  380. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +6 -3
  381. data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +4 -2
  382. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +8 -4
  383. data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +4 -2
  384. data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +4 -2
  385. data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +6 -2
  386. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +6 -3
  387. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +6 -3
  388. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +4 -2
  389. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +8 -4
  390. data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +8 -4
  391. data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +2 -1
  392. data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +2 -1
  393. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +8 -4
  394. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +2 -1
  395. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +6 -3
  396. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +6 -3
  397. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +4 -2
  398. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +8 -4
  399. data/lib/twilio-ruby/rest/verify/v2/form.rb +2 -1
  400. data/lib/twilio-ruby/rest/verify/v2/safelist.rb +6 -3
  401. data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +4 -2
  402. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +2 -1
  403. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +6 -3
  404. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +6 -3
  405. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +2 -1
  406. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +6 -3
  407. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +8 -4
  408. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +8 -4
  409. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +8 -4
  410. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +6 -3
  411. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
  412. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +8 -4
  413. data/lib/twilio-ruby/rest/verify/v2/service.rb +8 -4
  414. data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +2 -1
  415. data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +2 -1
  416. data/lib/twilio-ruby/rest/video/v1/composition.rb +6 -3
  417. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +8 -4
  418. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +4 -2
  419. data/lib/twilio-ruby/rest/video/v1/recording.rb +4 -2
  420. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +4 -2
  421. data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +2 -1
  422. data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +2 -1
  423. data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +4 -2
  424. data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +2 -1
  425. data/lib/twilio-ruby/rest/video/v1/room/participant.rb +4 -2
  426. data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +4 -2
  427. data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +4 -2
  428. data/lib/twilio-ruby/rest/video/v1/room.rb +6 -3
  429. data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +2 -1
  430. data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +8 -4
  431. data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +8 -4
  432. data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +8 -4
  433. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +2 -1
  434. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +2 -1
  435. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +4 -2
  436. data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +8 -4
  437. data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +8 -4
  438. data/lib/twilio-ruby/rest/wireless/v1/command.rb +6 -3
  439. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +8 -4
  440. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +6 -3
  441. data/lib/twilio-ruby/twiml/voice_response.rb +89 -14
  442. data/lib/twilio-ruby/version.rb +1 -1
  443. metadata +5 -2
@@ -48,8 +48,9 @@ module Twilio
48
48
  'IdempotencyKey' => idempotency_key,
49
49
  })
50
50
 
51
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
51
52
 
52
- payload = @version.create('POST', @uri, data: data)
53
+ payload = @version.create('POST', @uri, data: data, headers: headers)
53
54
  UserDefinedMessageInstance.new(
54
55
  @version,
55
56
  payload,
@@ -51,8 +51,9 @@ module Twilio
51
51
  'Method' => method,
52
52
  })
53
53
 
54
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
54
55
 
55
- payload = @version.create('POST', @uri, data: data)
56
+ payload = @version.create('POST', @uri, data: data, headers: headers)
56
57
  UserDefinedMessageSubscriptionInstance.new(
57
58
  @version,
58
59
  payload,
@@ -93,8 +94,9 @@ module Twilio
93
94
  # @return [Boolean] True if delete succeeds, false otherwise
94
95
  def delete
95
96
 
97
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
96
98
 
97
- @version.delete('DELETE', @uri)
99
+ @version.delete('DELETE', @uri, headers: headers)
98
100
  end
99
101
 
100
102
 
@@ -146,8 +146,9 @@ module Twilio
146
146
  'ApplicationSid' => application_sid,
147
147
  })
148
148
 
149
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
149
150
 
150
- payload = @version.create('POST', @uri, data: data)
151
+ payload = @version.create('POST', @uri, data: data, headers: headers)
151
152
  CallInstance.new(
152
153
  @version,
153
154
  payload,
@@ -326,6 +327,7 @@ module Twilio
326
327
  # Dependents
327
328
  @events = nil
328
329
  @user_defined_messages = nil
330
+ @transcriptions = nil
329
331
  @siprec = nil
330
332
  @user_defined_message_subscriptions = nil
331
333
  @payments = nil
@@ -338,8 +340,9 @@ module Twilio
338
340
  # @return [Boolean] True if delete succeeds, false otherwise
339
341
  def delete
340
342
 
343
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
341
344
 
342
- @version.delete('DELETE', @uri)
345
+ @version.delete('DELETE', @uri, headers: headers)
343
346
  end
344
347
 
345
348
  ##
@@ -347,8 +350,9 @@ module Twilio
347
350
  # @return [CallInstance] Fetched CallInstance
348
351
  def fetch
349
352
 
353
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
350
354
 
351
- payload = @version.fetch('GET', @uri)
355
+ payload = @version.fetch('GET', @uri, headers: headers)
352
356
  CallInstance.new(
353
357
  @version,
354
358
  payload,
@@ -393,8 +397,9 @@ module Twilio
393
397
  'TimeLimit' => time_limit,
394
398
  })
395
399
 
400
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
396
401
 
397
- payload = @version.update('POST', @uri, data: data)
402
+ payload = @version.update('POST', @uri, data: data, headers: headers)
398
403
  CallInstance.new(
399
404
  @version,
400
405
  payload,
@@ -426,6 +431,25 @@ module Twilio
426
431
  @user_defined_messages
427
432
  end
428
433
  ##
434
+ # Access the transcriptions
435
+ # @return [TranscriptionList]
436
+ # @return [TranscriptionContext] if sid was passed.
437
+ def transcriptions(sid=:unset)
438
+
439
+ raise ArgumentError, 'sid cannot be nil' if sid.nil?
440
+
441
+ if sid != :unset
442
+ return TranscriptionContext.new(@version, @solution[:account_sid], @solution[:sid],sid )
443
+ end
444
+
445
+ unless @transcriptions
446
+ @transcriptions = TranscriptionList.new(
447
+ @version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
448
+ end
449
+
450
+ @transcriptions
451
+ end
452
+ ##
429
453
  # Access the siprec
430
454
  # @return [SiprecList]
431
455
  # @return [SiprecContext] if sid was passed.
@@ -727,7 +751,7 @@ module Twilio
727
751
  end
728
752
 
729
753
  ##
730
- # @return [String] The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available.
754
+ # @return [String] The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available. The price associated with a call only reflects the charge for connectivity. Charges for other call-related features such as Answering Machine Detection, Text-To-Speech, and SIP REFER are not included in this value.
731
755
  def price
732
756
  @properties['price']
733
757
  end
@@ -865,6 +889,13 @@ module Twilio
865
889
  context.user_defined_messages
866
890
  end
867
891
 
892
+ ##
893
+ # Access the transcriptions
894
+ # @return [transcriptions] transcriptions
895
+ def transcriptions
896
+ context.transcriptions
897
+ end
898
+
868
899
  ##
869
900
  # Access the siprec
870
901
  # @return [siprec] siprec
@@ -186,8 +186,9 @@ module Twilio
186
186
  'CallToken' => call_token,
187
187
  })
188
188
 
189
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
189
190
 
190
- payload = @version.create('POST', @uri, data: data)
191
+ payload = @version.create('POST', @uri, data: data, headers: headers)
191
192
  ParticipantInstance.new(
192
193
  @version,
193
194
  payload,
@@ -330,8 +331,9 @@ module Twilio
330
331
  # @return [Boolean] True if delete succeeds, false otherwise
331
332
  def delete
332
333
 
334
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
333
335
 
334
- @version.delete('DELETE', @uri)
336
+ @version.delete('DELETE', @uri, headers: headers)
335
337
  end
336
338
 
337
339
  ##
@@ -339,8 +341,9 @@ module Twilio
339
341
  # @return [ParticipantInstance] Fetched ParticipantInstance
340
342
  def fetch
341
343
 
344
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
342
345
 
343
- payload = @version.fetch('GET', @uri)
346
+ payload = @version.fetch('GET', @uri, headers: headers)
344
347
  ParticipantInstance.new(
345
348
  @version,
346
349
  payload,
@@ -395,8 +398,9 @@ module Twilio
395
398
  'CallSidToCoach' => call_sid_to_coach,
396
399
  })
397
400
 
401
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
398
402
 
399
- payload = @version.update('POST', @uri, data: data)
403
+ payload = @version.update('POST', @uri, data: data, headers: headers)
400
404
  ParticipantInstance.new(
401
405
  @version,
402
406
  payload,
@@ -167,8 +167,9 @@ module Twilio
167
167
  # @return [Boolean] True if delete succeeds, false otherwise
168
168
  def delete
169
169
 
170
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
170
171
 
171
- @version.delete('DELETE', @uri)
172
+ @version.delete('DELETE', @uri, headers: headers)
172
173
  end
173
174
 
174
175
  ##
@@ -176,8 +177,9 @@ module Twilio
176
177
  # @return [RecordingInstance] Fetched RecordingInstance
177
178
  def fetch
178
179
 
180
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
179
181
 
180
- payload = @version.fetch('GET', @uri)
182
+ payload = @version.fetch('GET', @uri, headers: headers)
181
183
  RecordingInstance.new(
182
184
  @version,
183
185
  payload,
@@ -202,8 +204,9 @@ module Twilio
202
204
  'PauseBehavior' => pause_behavior,
203
205
  })
204
206
 
207
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
205
208
 
206
- payload = @version.update('POST', @uri, data: data)
209
+ payload = @version.update('POST', @uri, data: data, headers: headers)
207
210
  RecordingInstance.new(
208
211
  @version,
209
212
  payload,
@@ -197,8 +197,9 @@ module Twilio
197
197
  # @return [ConferenceInstance] Fetched ConferenceInstance
198
198
  def fetch
199
199
 
200
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
200
201
 
201
- payload = @version.fetch('GET', @uri)
202
+ payload = @version.fetch('GET', @uri, headers: headers)
202
203
  ConferenceInstance.new(
203
204
  @version,
204
205
  payload,
@@ -225,8 +226,9 @@ module Twilio
225
226
  'AnnounceMethod' => announce_method,
226
227
  })
227
228
 
229
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
228
230
 
229
- payload = @version.update('POST', @uri, data: data)
231
+ payload = @version.update('POST', @uri, data: data, headers: headers)
230
232
  ConferenceInstance.new(
231
233
  @version,
232
234
  payload,
@@ -147,8 +147,9 @@ module Twilio
147
147
  # @return [Boolean] True if delete succeeds, false otherwise
148
148
  def delete
149
149
 
150
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
150
151
 
151
- @version.delete('DELETE', @uri)
152
+ @version.delete('DELETE', @uri, headers: headers)
152
153
  end
153
154
 
154
155
  ##
@@ -156,8 +157,9 @@ module Twilio
156
157
  # @return [ConnectAppInstance] Fetched ConnectAppInstance
157
158
  def fetch
158
159
 
160
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
159
161
 
160
- payload = @version.fetch('GET', @uri)
162
+ payload = @version.fetch('GET', @uri, headers: headers)
161
163
  ConnectAppInstance.new(
162
164
  @version,
163
165
  payload,
@@ -199,8 +201,9 @@ module Twilio
199
201
  'Permissions' => Twilio.serialize_list(permissions) { |e| e },
200
202
  })
201
203
 
204
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
202
205
 
203
- payload = @version.update('POST', @uri, data: data)
206
+ payload = @version.update('POST', @uri, data: data, headers: headers)
204
207
  ConnectAppInstance.new(
205
208
  @version,
206
209
  payload,
@@ -151,8 +151,9 @@ module Twilio
151
151
  # @return [AssignedAddOnExtensionInstance] Fetched AssignedAddOnExtensionInstance
152
152
  def fetch
153
153
 
154
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
154
155
 
155
- payload = @version.fetch('GET', @uri)
156
+ payload = @version.fetch('GET', @uri, headers: headers)
156
157
  AssignedAddOnExtensionInstance.new(
157
158
  @version,
158
159
  payload,
@@ -45,8 +45,9 @@ module Twilio
45
45
  'InstalledAddOnSid' => installed_add_on_sid,
46
46
  })
47
47
 
48
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
48
49
 
49
- payload = @version.create('POST', @uri, data: data)
50
+ payload = @version.create('POST', @uri, data: data, headers: headers)
50
51
  AssignedAddOnInstance.new(
51
52
  @version,
52
53
  payload,
@@ -172,8 +173,9 @@ module Twilio
172
173
  # @return [Boolean] True if delete succeeds, false otherwise
173
174
  def delete
174
175
 
176
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
175
177
 
176
- @version.delete('DELETE', @uri)
178
+ @version.delete('DELETE', @uri, headers: headers)
177
179
  end
178
180
 
179
181
  ##
@@ -181,8 +183,9 @@ module Twilio
181
183
  # @return [AssignedAddOnInstance] Fetched AssignedAddOnInstance
182
184
  def fetch
183
185
 
186
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
184
187
 
185
- payload = @version.fetch('GET', @uri)
188
+ payload = @version.fetch('GET', @uri, headers: headers)
186
189
  AssignedAddOnInstance.new(
187
190
  @version,
188
191
  payload,
@@ -111,8 +111,9 @@ module Twilio
111
111
  'BundleSid' => bundle_sid,
112
112
  })
113
113
 
114
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
114
115
 
115
- payload = @version.create('POST', @uri, data: data)
116
+ payload = @version.create('POST', @uri, data: data, headers: headers)
116
117
  LocalInstance.new(
117
118
  @version,
118
119
  payload,
@@ -111,8 +111,9 @@ module Twilio
111
111
  'BundleSid' => bundle_sid,
112
112
  })
113
113
 
114
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
114
115
 
115
- payload = @version.create('POST', @uri, data: data)
116
+ payload = @version.create('POST', @uri, data: data, headers: headers)
116
117
  MobileInstance.new(
117
118
  @version,
118
119
  payload,
@@ -111,8 +111,9 @@ module Twilio
111
111
  'BundleSid' => bundle_sid,
112
112
  })
113
113
 
114
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
114
115
 
115
- payload = @version.create('POST', @uri, data: data)
116
+ payload = @version.create('POST', @uri, data: data, headers: headers)
116
117
  TollFreeInstance.new(
117
118
  @version,
118
119
  payload,
@@ -116,8 +116,9 @@ module Twilio
116
116
  'AreaCode' => area_code,
117
117
  })
118
118
 
119
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
119
120
 
120
- payload = @version.create('POST', @uri, data: data)
121
+ payload = @version.create('POST', @uri, data: data, headers: headers)
121
122
  IncomingPhoneNumberInstance.new(
122
123
  @version,
123
124
  payload,
@@ -286,8 +287,9 @@ module Twilio
286
287
  # @return [Boolean] True if delete succeeds, false otherwise
287
288
  def delete
288
289
 
290
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
289
291
 
290
- @version.delete('DELETE', @uri)
292
+ @version.delete('DELETE', @uri, headers: headers)
291
293
  end
292
294
 
293
295
  ##
@@ -295,8 +297,9 @@ module Twilio
295
297
  # @return [IncomingPhoneNumberInstance] Fetched IncomingPhoneNumberInstance
296
298
  def fetch
297
299
 
300
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
298
301
 
299
- payload = @version.fetch('GET', @uri)
302
+ payload = @version.fetch('GET', @uri, headers: headers)
300
303
  IncomingPhoneNumberInstance.new(
301
304
  @version,
302
305
  payload,
@@ -383,8 +386,9 @@ module Twilio
383
386
  'BundleSid' => bundle_sid,
384
387
  })
385
388
 
389
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
386
390
 
387
- payload = @version.update('POST', @uri, data: data)
391
+ payload = @version.update('POST', @uri, data: data, headers: headers)
388
392
  IncomingPhoneNumberInstance.new(
389
393
  @version,
390
394
  payload,
@@ -147,8 +147,9 @@ module Twilio
147
147
  # @return [Boolean] True if delete succeeds, false otherwise
148
148
  def delete
149
149
 
150
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
150
151
 
151
- @version.delete('DELETE', @uri)
152
+ @version.delete('DELETE', @uri, headers: headers)
152
153
  end
153
154
 
154
155
  ##
@@ -156,8 +157,9 @@ module Twilio
156
157
  # @return [KeyInstance] Fetched KeyInstance
157
158
  def fetch
158
159
 
160
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
159
161
 
160
- payload = @version.fetch('GET', @uri)
162
+ payload = @version.fetch('GET', @uri, headers: headers)
161
163
  KeyInstance.new(
162
164
  @version,
163
165
  payload,
@@ -178,8 +180,9 @@ module Twilio
178
180
  'FriendlyName' => friendly_name,
179
181
  })
180
182
 
183
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
181
184
 
182
- payload = @version.update('POST', @uri, data: data)
185
+ payload = @version.update('POST', @uri, data: data, headers: headers)
183
186
  KeyInstance.new(
184
187
  @version,
185
188
  payload,
@@ -45,8 +45,9 @@ module Twilio
45
45
  'Outcome' => outcome,
46
46
  })
47
47
 
48
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
48
49
 
49
- payload = @version.create('POST', @uri, data: data)
50
+ payload = @version.create('POST', @uri, data: data, headers: headers)
50
51
  FeedbackInstance.new(
51
52
  @version,
52
53
  payload,
@@ -167,8 +167,9 @@ module Twilio
167
167
  # @return [Boolean] True if delete succeeds, false otherwise
168
168
  def delete
169
169
 
170
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
170
171
 
171
- @version.delete('DELETE', @uri)
172
+ @version.delete('DELETE', @uri, headers: headers)
172
173
  end
173
174
 
174
175
  ##
@@ -176,8 +177,9 @@ module Twilio
176
177
  # @return [MediaInstance] Fetched MediaInstance
177
178
  def fetch
178
179
 
180
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
179
181
 
180
- payload = @version.fetch('GET', @uri)
182
+ payload = @version.fetch('GET', @uri, headers: headers)
181
183
  MediaInstance.new(
182
184
  @version,
183
185
  payload,
@@ -110,8 +110,9 @@ module Twilio
110
110
  'ContentSid' => content_sid,
111
111
  })
112
112
 
113
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
113
114
 
114
- payload = @version.create('POST', @uri, data: data)
115
+ payload = @version.create('POST', @uri, data: data, headers: headers)
115
116
  MessageInstance.new(
116
117
  @version,
117
118
  payload,
@@ -266,8 +267,9 @@ module Twilio
266
267
  # @return [Boolean] True if delete succeeds, false otherwise
267
268
  def delete
268
269
 
270
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
269
271
 
270
- @version.delete('DELETE', @uri)
272
+ @version.delete('DELETE', @uri, headers: headers)
271
273
  end
272
274
 
273
275
  ##
@@ -275,8 +277,9 @@ module Twilio
275
277
  # @return [MessageInstance] Fetched MessageInstance
276
278
  def fetch
277
279
 
280
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
278
281
 
279
- payload = @version.fetch('GET', @uri)
282
+ payload = @version.fetch('GET', @uri, headers: headers)
280
283
  MessageInstance.new(
281
284
  @version,
282
285
  payload,
@@ -300,8 +303,9 @@ module Twilio
300
303
  'Status' => status,
301
304
  })
302
305
 
306
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
303
307
 
304
- payload = @version.update('POST', @uri, data: data)
308
+ payload = @version.update('POST', @uri, data: data, headers: headers)
305
309
  MessageInstance.new(
306
310
  @version,
307
311
  payload,
@@ -44,8 +44,9 @@ module Twilio
44
44
  'FriendlyName' => friendly_name,
45
45
  })
46
46
 
47
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
47
48
 
48
- payload = @version.create('POST', @uri, data: data)
49
+ payload = @version.create('POST', @uri, data: data, headers: headers)
49
50
  NewKeyInstance.new(
50
51
  @version,
51
52
  payload,
@@ -44,8 +44,9 @@ module Twilio
44
44
  'FriendlyName' => friendly_name,
45
45
  })
46
46
 
47
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
47
48
 
48
- payload = @version.create('POST', @uri, data: data)
49
+ payload = @version.create('POST', @uri, data: data, headers: headers)
49
50
  NewSigningKeyInstance.new(
50
51
  @version,
51
52
  payload,
@@ -171,8 +171,9 @@ module Twilio
171
171
  # @return [NotificationInstance] Fetched NotificationInstance
172
172
  def fetch
173
173
 
174
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
174
175
 
175
- payload = @version.fetch('GET', @uri)
176
+ payload = @version.fetch('GET', @uri, headers: headers)
176
177
  NotificationInstance.new(
177
178
  @version,
178
179
  payload,
@@ -159,8 +159,9 @@ module Twilio
159
159
  # @return [Boolean] True if delete succeeds, false otherwise
160
160
  def delete
161
161
 
162
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
162
163
 
163
- @version.delete('DELETE', @uri)
164
+ @version.delete('DELETE', @uri, headers: headers)
164
165
  end
165
166
 
166
167
  ##
@@ -168,8 +169,9 @@ module Twilio
168
169
  # @return [OutgoingCallerIdInstance] Fetched OutgoingCallerIdInstance
169
170
  def fetch
170
171
 
172
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
171
173
 
172
- payload = @version.fetch('GET', @uri)
174
+ payload = @version.fetch('GET', @uri, headers: headers)
173
175
  OutgoingCallerIdInstance.new(
174
176
  @version,
175
177
  payload,
@@ -190,8 +192,9 @@ module Twilio
190
192
  'FriendlyName' => friendly_name,
191
193
  })
192
194
 
195
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
193
196
 
194
- payload = @version.update('POST', @uri, data: data)
197
+ payload = @version.update('POST', @uri, data: data, headers: headers)
195
198
  OutgoingCallerIdInstance.new(
196
199
  @version,
197
200
  payload,
@@ -149,8 +149,9 @@ module Twilio
149
149
  # @return [MemberInstance] Fetched MemberInstance
150
150
  def fetch
151
151
 
152
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
152
153
 
153
- payload = @version.fetch('GET', @uri)
154
+ payload = @version.fetch('GET', @uri, headers: headers)
154
155
  MemberInstance.new(
155
156
  @version,
156
157
  payload,
@@ -175,8 +176,9 @@ module Twilio
175
176
  'Method' => method,
176
177
  })
177
178
 
179
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
178
180
 
179
- payload = @version.update('POST', @uri, data: data)
181
+ payload = @version.update('POST', @uri, data: data, headers: headers)
180
182
  MemberInstance.new(
181
183
  @version,
182
184
  payload,
@@ -47,8 +47,9 @@ module Twilio
47
47
  'MaxSize' => max_size,
48
48
  })
49
49
 
50
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
50
51
 
51
- payload = @version.create('POST', @uri, data: data)
52
+ payload = @version.create('POST', @uri, data: data, headers: headers)
52
53
  QueueInstance.new(
53
54
  @version,
54
55
  payload,
@@ -172,8 +173,9 @@ module Twilio
172
173
  # @return [Boolean] True if delete succeeds, false otherwise
173
174
  def delete
174
175
 
176
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
175
177
 
176
- @version.delete('DELETE', @uri)
178
+ @version.delete('DELETE', @uri, headers: headers)
177
179
  end
178
180
 
179
181
  ##
@@ -181,8 +183,9 @@ module Twilio
181
183
  # @return [QueueInstance] Fetched QueueInstance
182
184
  def fetch
183
185
 
186
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
184
187
 
185
- payload = @version.fetch('GET', @uri)
188
+ payload = @version.fetch('GET', @uri, headers: headers)
186
189
  QueueInstance.new(
187
190
  @version,
188
191
  payload,
@@ -206,8 +209,9 @@ module Twilio
206
209
  'MaxSize' => max_size,
207
210
  })
208
211
 
212
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
209
213
 
210
- payload = @version.update('POST', @uri, data: data)
214
+ payload = @version.update('POST', @uri, data: data, headers: headers)
211
215
  QueueInstance.new(
212
216
  @version,
213
217
  payload,