twilio-ruby 7.10.4 → 7.10.6

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 (639) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test-and-deploy.yml +1 -1
  3. data/CHANGES.md +166 -0
  4. data/README.md +2 -2
  5. data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +2 -2
  6. data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +3 -3
  7. data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +3 -3
  8. data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +18 -10
  9. data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +18 -10
  10. data/lib/twilio-ruby/rest/accounts/v1/credential.rb +2 -2
  11. data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +4 -4
  12. data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +5 -5
  13. data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +2 -2
  14. data/lib/twilio-ruby/rest/accounts/v1.rb +11 -2
  15. data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +13 -5
  16. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +41 -33
  17. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +61 -53
  18. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +13 -5
  19. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +13 -5
  20. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +13 -5
  21. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +13 -5
  22. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +13 -5
  23. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +13 -5
  24. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +13 -5
  25. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +13 -5
  26. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +13 -5
  27. data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +2 -2
  28. data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +13 -5
  29. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +13 -5
  30. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +28 -28
  31. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +30 -16
  32. data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +207 -207
  33. data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +207 -207
  34. data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +27 -21
  35. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +4 -4
  36. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +5 -5
  37. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +73 -59
  38. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +93 -79
  39. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +17 -9
  40. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +19 -11
  41. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +29 -21
  42. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +13 -5
  43. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +14 -6
  44. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +36 -28
  45. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +36 -28
  46. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +36 -28
  47. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +83 -75
  48. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +15 -7
  49. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +3 -3
  50. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +13 -5
  51. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +47 -33
  52. data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +3 -3
  53. data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +3 -3
  54. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +13 -5
  55. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +15 -7
  56. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +17 -9
  57. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +19 -11
  58. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +2 -2
  59. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +13 -5
  60. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +13 -5
  61. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +13 -5
  62. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +15 -7
  63. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +25 -17
  64. data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +15 -7
  65. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +17 -9
  66. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +16 -8
  67. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +14 -6
  68. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +14 -6
  69. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +2 -2
  70. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +14 -6
  71. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +2 -2
  72. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +2 -2
  73. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +14 -6
  74. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +14 -6
  75. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +52 -44
  76. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +22 -14
  77. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +16 -8
  78. data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +2 -2
  79. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +3 -3
  80. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +13 -5
  81. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +13 -5
  82. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +13 -5
  83. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +13 -5
  84. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +13 -5
  85. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +13 -5
  86. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +13 -5
  87. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +13 -5
  88. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +13 -5
  89. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +13 -5
  90. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +26 -18
  91. data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +2 -2
  92. data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +8 -8
  93. data/lib/twilio-ruby/rest/api/v2010/account.rb +18 -10
  94. data/lib/twilio-ruby/rest/api/v2010.rb +1 -0
  95. data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +13 -5
  96. data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +13 -5
  97. data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +13 -5
  98. data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +2 -2
  99. data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +14 -5
  100. data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +13 -5
  101. data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +2 -2
  102. data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +14 -5
  103. data/lib/twilio-ruby/rest/assistants/v1/policy.rb +13 -5
  104. data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +13 -5
  105. data/lib/twilio-ruby/rest/assistants/v1/session.rb +13 -5
  106. data/lib/twilio-ruby/rest/assistants/v1/tool.rb +14 -5
  107. data/lib/twilio-ruby/rest/assistants/v1.rb +4 -0
  108. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +13 -5
  109. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +19 -11
  110. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +2 -2
  111. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +2 -2
  112. data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +8 -8
  113. data/lib/twilio-ruby/rest/bulkexports/v1.rb +2 -0
  114. data/lib/twilio-ruby/rest/chat/v1/credential.rb +32 -24
  115. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +15 -7
  116. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +19 -11
  117. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +20 -12
  118. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +23 -15
  119. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +18 -10
  120. data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +13 -5
  121. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +23 -15
  122. data/lib/twilio-ruby/rest/chat/v1/service.rb +122 -114
  123. data/lib/twilio-ruby/rest/chat/v1.rb +2 -0
  124. data/lib/twilio-ruby/rest/chat/v2/credential.rb +32 -24
  125. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +13 -5
  126. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +15 -7
  127. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +37 -29
  128. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +37 -29
  129. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +32 -24
  130. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +37 -29
  131. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +18 -10
  132. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +13 -5
  133. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +21 -13
  134. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +26 -18
  135. data/lib/twilio-ruby/rest/chat/v2/service.rb +76 -68
  136. data/lib/twilio-ruby/rest/chat/v2.rb +2 -0
  137. data/lib/twilio-ruby/rest/chat/v3/channel.rb +8 -8
  138. data/lib/twilio-ruby/rest/chat/v3.rb +6 -0
  139. data/lib/twilio-ruby/rest/client.rb +5 -0
  140. data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +2 -2
  141. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +2 -2
  142. data/lib/twilio-ruby/rest/content/v1/content.rb +14 -5
  143. data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +13 -5
  144. data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +13 -5
  145. data/lib/twilio-ruby/rest/content/v1.rb +1 -0
  146. data/lib/twilio-ruby/rest/content/v2/content.rb +13 -5
  147. data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +13 -5
  148. data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +43 -35
  149. data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +12 -12
  150. data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +10 -10
  151. data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +13 -5
  152. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +39 -31
  153. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +44 -36
  154. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +30 -22
  155. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +51 -43
  156. data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +15 -15
  157. data/lib/twilio-ruby/rest/conversations/v1/credential.rb +34 -26
  158. data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +13 -5
  159. data/lib/twilio-ruby/rest/conversations/v1/role.rb +18 -10
  160. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +13 -5
  161. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +28 -28
  162. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +10 -10
  163. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +10 -10
  164. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +13 -5
  165. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +39 -31
  166. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +44 -36
  167. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +30 -22
  168. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +51 -43
  169. data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +15 -15
  170. data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +13 -5
  171. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +18 -10
  172. data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +19 -11
  173. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +28 -20
  174. data/lib/twilio-ruby/rest/conversations/v1/service.rb +14 -6
  175. data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +19 -11
  176. data/lib/twilio-ruby/rest/conversations/v1/user.rb +28 -20
  177. data/lib/twilio-ruby/rest/conversations/v1.rb +6 -0
  178. data/lib/twilio-ruby/rest/conversations/v2/communication.rb +698 -0
  179. data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +1208 -0
  180. data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +1365 -0
  181. data/lib/twilio-ruby/rest/conversations/v2/operation.rb +369 -0
  182. data/lib/twilio-ruby/rest/conversations/v2/participant.rb +745 -0
  183. data/lib/twilio-ruby/rest/conversations/v2.rb +126 -0
  184. data/lib/twilio-ruby/rest/conversations_base.rb +6 -1
  185. data/lib/twilio-ruby/rest/events/v1/event_type.rb +13 -5
  186. data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +13 -5
  187. data/lib/twilio-ruby/rest/events/v1/schema.rb +2 -2
  188. data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +2 -2
  189. data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +3 -3
  190. data/lib/twilio-ruby/rest/events/v1/sink.rb +18 -10
  191. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +17 -9
  192. data/lib/twilio-ruby/rest/events/v1/subscription.rb +18 -10
  193. data/lib/twilio-ruby/rest/events/v1.rb +4 -0
  194. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +32 -24
  195. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +23 -15
  196. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +5 -4
  197. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +64 -56
  198. data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +20 -12
  199. data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +13 -5
  200. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +32 -24
  201. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +21 -13
  202. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +33 -25
  203. data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +13 -5
  204. data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +4 -4
  205. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +3 -3
  206. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +3 -3
  207. data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +4 -4
  208. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +14 -6
  209. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +18 -10
  210. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +3 -2
  211. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +17 -9
  212. data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +8 -8
  213. data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +27 -19
  214. data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +25 -17
  215. data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +4 -4
  216. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +15 -7
  217. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +19 -11
  218. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +4 -4
  219. data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +17 -9
  220. data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +4 -4
  221. data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +2 -2
  222. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +23 -15
  223. data/lib/twilio-ruby/rest/flex_api/v1.rb +19 -6
  224. data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +8 -8
  225. data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +8 -8
  226. data/lib/twilio-ruby/rest/flex_api/v2.rb +6 -0
  227. data/lib/twilio-ruby/rest/flex_api_base.rb +6 -1
  228. data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +10 -10
  229. data/lib/twilio-ruby/rest/frontline_api/v1.rb +1 -0
  230. data/lib/twilio-ruby/rest/iam/v1/api_key.rb +6 -6
  231. data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +13 -5
  232. data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +6 -6
  233. data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +3 -2
  234. data/lib/twilio-ruby/rest/iam/v1/role_permission.rb +327 -0
  235. data/lib/twilio-ruby/rest/iam/v1/token.rb +10 -10
  236. data/lib/twilio-ruby/rest/iam/v1.rb +17 -0
  237. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +16 -16
  238. data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +14 -14
  239. data/lib/twilio-ruby/rest/insights/v1/call/event.rb +17 -9
  240. data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +13 -5
  241. data/lib/twilio-ruby/rest/insights/v1/call.rb +2 -2
  242. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +23 -15
  243. data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +17 -9
  244. data/lib/twilio-ruby/rest/insights/v1/conference.rb +13 -5
  245. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +13 -5
  246. data/lib/twilio-ruby/rest/insights/v1/room.rb +13 -5
  247. data/lib/twilio-ruby/rest/insights/v1/setting.rb +10 -10
  248. data/lib/twilio-ruby/rest/insights/v1.rb +3 -0
  249. data/lib/twilio-ruby/rest/insights/v2/inbound.rb +21 -12
  250. data/lib/twilio-ruby/rest/insights/v2/outbound.rb +21 -12
  251. data/lib/twilio-ruby/rest/insights/v2/report.rb +10 -9
  252. data/lib/twilio-ruby/rest/insights/v2.rb +3 -0
  253. data/lib/twilio-ruby/rest/insights/v3/metadata.rb +227 -0
  254. data/lib/twilio-ruby/rest/insights/v3/query.rb +394 -0
  255. data/lib/twilio-ruby/rest/insights/v3.rb +46 -0
  256. data/lib/twilio-ruby/rest/insights_base.rb +5 -0
  257. data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +22 -14
  258. data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +13 -5
  259. data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +2 -2
  260. data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +2 -2
  261. data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +13 -5
  262. data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +13 -5
  263. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +43 -35
  264. data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +4 -4
  265. data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +4 -4
  266. data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +4 -4
  267. data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +15 -7
  268. data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +13 -5
  269. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +17 -9
  270. data/lib/twilio-ruby/rest/intelligence/v2.rb +13 -0
  271. data/lib/twilio-ruby/rest/intelligence/v3/configuration.rb +1073 -0
  272. data/lib/twilio-ruby/rest/intelligence/v3/conversation.rb +602 -0
  273. data/lib/twilio-ruby/rest/intelligence/v3/operator.rb +784 -0
  274. data/lib/twilio-ruby/rest/intelligence/v3/operator_result.rb +622 -0
  275. data/lib/twilio-ruby/rest/intelligence/v3/version.rb +556 -0
  276. data/lib/twilio-ruby/rest/intelligence/v3.rb +120 -0
  277. data/lib/twilio-ruby/rest/intelligence_base.rb +6 -1
  278. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +32 -24
  279. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +15 -7
  280. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +19 -11
  281. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +20 -12
  282. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +23 -15
  283. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +18 -10
  284. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +13 -5
  285. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +23 -15
  286. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +122 -114
  287. data/lib/twilio-ruby/rest/ip_messaging/v1.rb +2 -0
  288. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +32 -24
  289. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +13 -5
  290. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +15 -7
  291. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +37 -29
  292. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +37 -29
  293. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +32 -24
  294. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +37 -29
  295. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +18 -10
  296. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +13 -5
  297. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +19 -11
  298. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +26 -18
  299. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +76 -68
  300. data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -0
  301. data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +13 -5
  302. data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +2 -2
  303. data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +14 -5
  304. data/lib/twilio-ruby/rest/knowledge/v1.rb +1 -0
  305. data/lib/twilio-ruby/rest/knowledge/v2/chunk.rb +306 -0
  306. data/lib/twilio-ruby/rest/knowledge/v2/knowledge.rb +714 -0
  307. data/lib/twilio-ruby/rest/knowledge/v2/knowledge_basis.rb +739 -0
  308. data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +376 -0
  309. data/lib/twilio-ruby/rest/knowledge/v2/search.rb +355 -0
  310. data/lib/twilio-ruby/rest/knowledge/v2.rb +145 -0
  311. data/lib/twilio-ruby/rest/knowledge_base.rb +6 -1
  312. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +10 -10
  313. data/lib/twilio-ruby/rest/lookups/v1.rb +1 -0
  314. data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +3 -2
  315. data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +4 -2
  316. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +32 -32
  317. data/lib/twilio-ruby/rest/lookups/v2/query.rb +2 -2
  318. data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +3 -3
  319. data/lib/twilio-ruby/rest/lookups/v2.rb +13 -0
  320. data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +13 -5
  321. data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +13 -5
  322. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +15 -7
  323. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +2 -2
  324. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +21 -13
  325. data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +4 -4
  326. data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +16 -16
  327. data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +2 -2
  328. data/lib/twilio-ruby/rest/marketplace/v1.rb +3 -0
  329. data/lib/twilio-ruby/rest/{flex_api/v1/create_flex_instance.rb → memory/v1/bulk.rb} +104 -124
  330. data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +798 -0
  331. data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +843 -0
  332. data/lib/twilio-ruby/rest/memory/v1/event.rb +320 -0
  333. data/lib/twilio-ruby/rest/memory/v1/identifier.rb +710 -0
  334. data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +442 -0
  335. data/lib/twilio-ruby/rest/memory/v1/import.rb +574 -0
  336. data/lib/twilio-ruby/rest/memory/v1/lookup.rb +250 -0
  337. data/lib/twilio-ruby/rest/memory/v1/observation.rb +786 -0
  338. data/lib/twilio-ruby/rest/memory/v1/operation.rb +376 -0
  339. data/lib/twilio-ruby/rest/memory/v1/profile.rb +636 -0
  340. data/lib/twilio-ruby/rest/memory/v1/recall.rb +366 -0
  341. data/lib/twilio-ruby/rest/memory/v1/revision.rb +349 -0
  342. data/lib/twilio-ruby/rest/memory/v1/store.rb +701 -0
  343. data/lib/twilio-ruby/rest/memory/v1/trait.rb +336 -0
  344. data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +904 -0
  345. data/lib/twilio-ruby/rest/memory/v1.rb +475 -0
  346. data/lib/twilio-ruby/rest/memory.rb +6 -0
  347. data/lib/twilio-ruby/rest/memory_base.rb +38 -0
  348. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +2 -2
  349. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +15 -7
  350. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +18 -10
  351. data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +4 -4
  352. data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +4 -4
  353. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +10 -10
  354. data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +2 -2
  355. data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +2 -2
  356. data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +5 -5
  357. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +2 -2
  358. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +2 -2
  359. data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +2 -2
  360. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +14 -6
  361. data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +14 -6
  362. data/lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb +15 -7
  363. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +14 -6
  364. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +14 -6
  365. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +54 -46
  366. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +3 -3
  367. data/lib/twilio-ruby/rest/messaging/v1/service.rb +61 -53
  368. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +120 -112
  369. data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +2 -2
  370. data/lib/twilio-ruby/rest/messaging/v1.rb +15 -0
  371. data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +22 -7
  372. data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +2 -2
  373. data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +4 -4
  374. data/lib/twilio-ruby/rest/messaging/v2.rb +2 -0
  375. data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +247 -0
  376. data/lib/twilio-ruby/rest/messaging/v3.rb +40 -0
  377. data/lib/twilio-ruby/rest/messaging_base.rb +5 -0
  378. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +13 -5
  379. data/lib/twilio-ruby/rest/monitor/v1/event.rb +13 -5
  380. data/lib/twilio-ruby/rest/monitor/v1.rb +2 -0
  381. data/lib/twilio-ruby/rest/notify/v1/credential.rb +32 -24
  382. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +20 -12
  383. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +20 -20
  384. data/lib/twilio-ruby/rest/notify/v1/service.rb +55 -47
  385. data/lib/twilio-ruby/rest/notify/v1.rb +2 -0
  386. data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +2 -2
  387. data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +2 -2
  388. data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +2 -2
  389. data/lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb +13 -5
  390. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +2 -2
  391. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +2 -2
  392. data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +6 -6
  393. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +2 -2
  394. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +2 -2
  395. data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +2 -2
  396. data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +13 -5
  397. data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +2 -2
  398. data/lib/twilio-ruby/rest/numbers/v1.rb +21 -2
  399. data/lib/twilio-ruby/rest/numbers/v2/application.rb +13 -5
  400. data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +13 -5
  401. data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +19 -11
  402. data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +4 -4
  403. data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +8 -8
  404. data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +35 -27
  405. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +14 -6
  406. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +13 -5
  407. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +14 -6
  408. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +3 -3
  409. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +29 -21
  410. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +20 -12
  411. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +13 -5
  412. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +15 -7
  413. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +20 -12
  414. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +13 -5
  415. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +2 -2
  416. data/lib/twilio-ruby/rest/numbers/v2.rb +5 -0
  417. data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +19 -19
  418. data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +7 -7
  419. data/lib/twilio-ruby/rest/oauth/v1/token.rb +10 -10
  420. data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +7 -7
  421. data/lib/twilio-ruby/rest/oauth/v2/token.rb +11 -11
  422. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +13 -5
  423. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +33 -25
  424. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +50 -42
  425. data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +2 -0
  426. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +13 -5
  427. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +13 -5
  428. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +15 -7
  429. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +21 -13
  430. data/lib/twilio-ruby/rest/preview/marketplace.rb +2 -0
  431. data/lib/twilio-ruby/rest/preview/wireless/command.rb +20 -12
  432. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +27 -19
  433. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +6 -6
  434. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +45 -37
  435. data/lib/twilio-ruby/rest/preview/wireless.rb +3 -0
  436. data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +7 -7
  437. data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +10 -10
  438. data/lib/twilio-ruby/rest/preview_iam/versionless/organization/account.rb +13 -5
  439. data/lib/twilio-ruby/rest/preview_iam/versionless/organization/role_assignment.rb +54 -10
  440. data/lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb +27 -11
  441. data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +2 -2
  442. data/lib/twilio-ruby/rest/preview_iam/versionless.rb +1 -0
  443. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +13 -5
  444. data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +2 -2
  445. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +13 -5
  446. data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +2 -2
  447. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +13 -5
  448. data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +2 -2
  449. data/lib/twilio-ruby/rest/pricing/v1/voice.rb +2 -2
  450. data/lib/twilio-ruby/rest/pricing/v1.rb +22 -4
  451. data/lib/twilio-ruby/rest/pricing/v2/country.rb +13 -5
  452. data/lib/twilio-ruby/rest/pricing/v2/number.rb +4 -4
  453. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +13 -5
  454. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +4 -4
  455. data/lib/twilio-ruby/rest/pricing/v2/voice.rb +2 -2
  456. data/lib/twilio-ruby/rest/pricing/v2.rb +13 -2
  457. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +18 -10
  458. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +13 -5
  459. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +15 -7
  460. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +17 -9
  461. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +25 -17
  462. data/lib/twilio-ruby/rest/proxy/v1/service.rb +37 -29
  463. data/lib/twilio-ruby/rest/proxy/v1.rb +1 -0
  464. data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +6 -6
  465. data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +6 -6
  466. data/lib/twilio-ruby/rest/routes/v2/trunk.rb +6 -6
  467. data/lib/twilio-ruby/rest/routes/v2.rb +3 -0
  468. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +13 -5
  469. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +16 -8
  470. data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +2 -2
  471. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +17 -9
  472. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +15 -7
  473. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +13 -5
  474. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +19 -11
  475. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +15 -7
  476. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +2 -2
  477. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +13 -5
  478. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +16 -8
  479. data/lib/twilio-ruby/rest/serverless/v1/service.rb +23 -15
  480. data/lib/twilio-ruby/rest/serverless/v1.rb +1 -0
  481. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +2 -2
  482. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +2 -2
  483. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +13 -5
  484. data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +16 -8
  485. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +2 -2
  486. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +2 -2
  487. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +13 -5
  488. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +18 -10
  489. data/lib/twilio-ruby/rest/studio/v1/flow.rb +13 -5
  490. data/lib/twilio-ruby/rest/studio/v1.rb +1 -0
  491. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +2 -2
  492. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +2 -2
  493. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +13 -5
  494. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +37 -14
  495. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +13 -5
  496. data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +4 -4
  497. data/lib/twilio-ruby/rest/studio/v2/flow.rb +42 -19
  498. data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -6
  499. data/lib/twilio-ruby/rest/studio/v2.rb +1 -0
  500. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +17 -9
  501. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +36 -28
  502. data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +19 -11
  503. data/lib/twilio-ruby/rest/supersim/v1/network.rb +13 -5
  504. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +14 -6
  505. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +17 -9
  506. data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +13 -5
  507. data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +13 -5
  508. data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +13 -5
  509. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +27 -19
  510. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +17 -9
  511. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +13 -5
  512. data/lib/twilio-ruby/rest/supersim/v1.rb +7 -0
  513. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +19 -11
  514. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +22 -14
  515. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +29 -21
  516. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +19 -11
  517. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +20 -12
  518. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +30 -22
  519. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +19 -11
  520. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +20 -12
  521. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +3 -3
  522. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +17 -9
  523. data/lib/twilio-ruby/rest/sync/v1/service.rb +34 -26
  524. data/lib/twilio-ruby/rest/sync/v1.rb +1 -0
  525. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +17 -9
  526. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +13 -5
  527. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +123 -115
  528. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +38 -30
  529. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +20 -12
  530. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +2 -2
  531. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +12 -12
  532. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +4 -4
  533. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +12 -12
  534. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +13 -5
  535. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +31 -23
  536. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +119 -111
  537. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +17 -9
  538. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +10 -10
  539. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +10 -10
  540. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +4 -4
  541. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +16 -16
  542. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +28 -20
  543. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +12 -12
  544. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +4 -4
  545. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +12 -12
  546. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +30 -22
  547. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +12 -12
  548. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +4 -4
  549. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +12 -12
  550. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +33 -25
  551. data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -0
  552. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +14 -6
  553. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +14 -6
  554. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +28 -20
  555. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +14 -6
  556. data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +6 -6
  557. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +37 -29
  558. data/lib/twilio-ruby/rest/trunking/v1.rb +1 -0
  559. data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +9 -9
  560. data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +45 -45
  561. data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +40 -40
  562. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +15 -7
  563. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +14 -6
  564. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +14 -6
  565. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +25 -17
  566. data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +20 -12
  567. data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +13 -5
  568. data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +13 -5
  569. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +20 -12
  570. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +13 -5
  571. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +15 -7
  572. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +14 -6
  573. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +14 -6
  574. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +25 -17
  575. data/lib/twilio-ruby/rest/trusthub/v1.rb +9 -0
  576. data/lib/twilio-ruby/rest/verify/v2/form.rb +2 -2
  577. data/lib/twilio-ruby/rest/verify/v2/safelist.rb +3 -3
  578. data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +6 -6
  579. data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +9 -9
  580. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +3 -3
  581. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +23 -15
  582. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +31 -23
  583. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +16 -16
  584. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +14 -6
  585. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +17 -9
  586. data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +10 -9
  587. data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +2 -2
  588. data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +2 -2
  589. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +19 -11
  590. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +17 -9
  591. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +24 -24
  592. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +8 -8
  593. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +40 -32
  594. data/lib/twilio-ruby/rest/verify/v2/service.rb +91 -83
  595. data/lib/twilio-ruby/rest/verify/v2/template.rb +13 -5
  596. data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +13 -5
  597. data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +14 -14
  598. data/lib/twilio-ruby/rest/verify/v2.rb +4 -0
  599. data/lib/twilio-ruby/rest/video/v1/composition.rb +22 -14
  600. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +43 -35
  601. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +14 -14
  602. data/lib/twilio-ruby/rest/video/v1/recording.rb +13 -5
  603. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +14 -14
  604. data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +2 -2
  605. data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +13 -5
  606. data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +3 -3
  607. data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +13 -5
  608. data/lib/twilio-ruby/rest/video/v1/room/participant.rb +15 -7
  609. data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +3 -3
  610. data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +13 -5
  611. data/lib/twilio-ruby/rest/video/v1/room/transcriptions.rb +18 -10
  612. data/lib/twilio-ruby/rest/video/v1/room.rb +32 -24
  613. data/lib/twilio-ruby/rest/video/v1.rb +4 -0
  614. data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +2 -2
  615. data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +43 -35
  616. data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +28 -20
  617. data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +16 -8
  618. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +3 -3
  619. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +13 -5
  620. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +13 -5
  621. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +4 -4
  622. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +2 -2
  623. data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +18 -10
  624. data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +17 -9
  625. data/lib/twilio-ruby/rest/voice/v1.rb +10 -0
  626. data/lib/twilio-ruby/rest/voice/v3/transcription.rb +514 -0
  627. data/lib/twilio-ruby/rest/voice/v3.rb +50 -0
  628. data/lib/twilio-ruby/rest/voice_base.rb +6 -1
  629. data/lib/twilio-ruby/rest/wireless/v1/command.rb +20 -12
  630. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +29 -21
  631. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +13 -5
  632. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +13 -5
  633. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +49 -41
  634. data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +13 -5
  635. data/lib/twilio-ruby/rest/wireless/v1.rb +3 -0
  636. data/lib/twilio-ruby/twiml/voice_response.rb +20 -11
  637. data/lib/twilio-ruby/version.rb +1 -1
  638. data/twilio-ruby.gemspec +1 -1
  639. metadata +49 -5
@@ -40,7 +40,7 @@ module Twilio
40
40
  # @param [String] ttl How long, in seconds, the notification is valid. Can be an integer between 0 and 300. Default is 300. Delivery is attempted until the TTL elapses, even if the device is offline. 0 means that the notification delivery is attempted immediately, only once, and is not stored for future delivery.
41
41
  # @return [NotificationInstance] Created NotificationInstance
42
42
  def create(
43
- ttl: :unset
43
+ ttl: :unset
44
44
  )
45
45
 
46
46
  data = Twilio::Values.of({
@@ -149,7 +149,7 @@ module Twilio
149
149
  @notification_page << NotificationListResponse.new(version, @payload, key, limit - records)
150
150
  @payload = self.next_page
151
151
  break unless @payload
152
- records += @payload.body[key].size
152
+ records += (@payload.body[key] || []).size
153
153
  end
154
154
  # Path Solution
155
155
  @solution = solution
@@ -171,7 +171,7 @@ module Twilio
171
171
  # @param [Hash{String => Object}] headers
172
172
  # @param [Integer] status_code
173
173
  def initialize(version, payload, key, limit = :unset)
174
- data_list = payload.body[key]
174
+ data_list = payload.body[key] || []
175
175
  if limit != :unset
176
176
  data_list = data_list[0, limit]
177
177
  end
@@ -44,12 +44,12 @@ module Twilio
44
44
  # @param [String] auth_payload Optional payload used to verify the Challenge upon creation. Only used with a Factor of type `totp` to carry the TOTP code that needs to be verified. For `TOTP` this value must be between 3 and 8 characters long.
45
45
  # @return [ChallengeInstance] Created ChallengeInstance
46
46
  def create(
47
- factor_sid: nil,
48
- expiration_date: :unset,
49
- details_message: :unset,
50
- details_fields: :unset,
51
- hidden_details: :unset,
52
- auth_payload: :unset
47
+ factor_sid: nil,
48
+ expiration_date: :unset,
49
+ details_message: :unset,
50
+ details_fields: :unset,
51
+ hidden_details: :unset,
52
+ auth_payload: :unset
53
53
  )
54
54
 
55
55
  data = Twilio::Values.of({
@@ -172,7 +172,11 @@ module Twilio
172
172
  order: order,
173
173
  page_size: limits[:page_size], )
174
174
 
175
- @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
175
+ return [].each if page.nil?
176
+
177
+ result = @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
178
+ return [].each if result.nil?
179
+ result
176
180
  end
177
181
 
178
182
  ##
@@ -212,9 +216,13 @@ module Twilio
212
216
 
213
217
  page = self.page(page_size: limits[:page_size], )
214
218
 
215
- @version.stream(page,
219
+ return [].each if page.nil?
220
+
221
+ result = @version.stream(page,
216
222
  limit: limits[:limit],
217
- page_limit: limits[:page_limit]).each {|x| yield x}
223
+ page_limit: limits[:page_limit])
224
+ return [].each if result.nil?
225
+ result.each {|x| yield x}
218
226
  end
219
227
 
220
228
  ##
@@ -340,8 +348,8 @@ module Twilio
340
348
  # @param [Object] metadata Custom metadata associated with the challenge. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\\\"os\\\": \\\"Android\\\"}`. Can be up to 1024 characters in length.
341
349
  # @return [ChallengeInstance] Updated ChallengeInstance
342
350
  def update(
343
- auth_payload: :unset,
344
- metadata: :unset
351
+ auth_payload: :unset,
352
+ metadata: :unset
345
353
  )
346
354
 
347
355
  data = Twilio::Values.of({
@@ -519,7 +527,7 @@ module Twilio
519
527
  @challenge_page << ChallengeListResponse.new(version, @payload, key, limit - records)
520
528
  @payload = self.next_page
521
529
  break unless @payload
522
- records += @payload.body[key].size
530
+ records += (@payload.body[key] || []).size
523
531
  end
524
532
  # Path Solution
525
533
  @solution = solution
@@ -541,7 +549,7 @@ module Twilio
541
549
  # @param [Hash{String => Object}] headers
542
550
  # @param [Integer] status_code
543
551
  def initialize(version, payload, key, limit = :unset)
544
- data_list = payload.body[key]
552
+ data_list = payload.body[key] || []
545
553
  if limit != :unset
546
554
  data_list = data_list[0, limit]
547
555
  end
@@ -739,8 +747,8 @@ module Twilio
739
747
  # @param [Object] metadata Custom metadata associated with the challenge. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\\\"os\\\": \\\"Android\\\"}`. Can be up to 1024 characters in length.
740
748
  # @return [ChallengeInstance] Updated ChallengeInstance
741
749
  def update(
742
- auth_payload: :unset,
743
- metadata: :unset
750
+ auth_payload: :unset,
751
+ metadata: :unset
744
752
  )
745
753
 
746
754
  context.update(
@@ -70,7 +70,11 @@ module Twilio
70
70
  page = self.page(
71
71
  page_size: limits[:page_size], )
72
72
 
73
- @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
73
+ return [].each if page.nil?
74
+
75
+ result = @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
76
+ return [].each if result.nil?
77
+ result
74
78
  end
75
79
 
76
80
  ##
@@ -104,9 +108,13 @@ module Twilio
104
108
 
105
109
  page = self.page(page_size: limits[:page_size], )
106
110
 
107
- @version.stream(page,
111
+ return [].each if page.nil?
112
+
113
+ result = @version.stream(page,
108
114
  limit: limits[:limit],
109
- page_limit: limits[:page_limit]).each {|x| yield x}
115
+ page_limit: limits[:page_limit])
116
+ return [].each if result.nil?
117
+ result.each {|x| yield x}
110
118
  end
111
119
 
112
120
  ##
@@ -264,15 +272,15 @@ module Twilio
264
272
  # @param [String] config_notification_platform The transport technology used to generate the Notification Token. Can be `apn`, `fcm` or `none`. Required when `factor_type` is `push`.
265
273
  # @return [FactorInstance] Updated FactorInstance
266
274
  def update(
267
- auth_payload: :unset,
268
- friendly_name: :unset,
269
- config_notification_token: :unset,
270
- config_sdk_version: :unset,
271
- config_time_step: :unset,
272
- config_skew: :unset,
273
- config_code_length: :unset,
274
- config_alg: :unset,
275
- config_notification_platform: :unset
275
+ auth_payload: :unset,
276
+ friendly_name: :unset,
277
+ config_notification_token: :unset,
278
+ config_sdk_version: :unset,
279
+ config_time_step: :unset,
280
+ config_skew: :unset,
281
+ config_code_length: :unset,
282
+ config_alg: :unset,
283
+ config_notification_platform: :unset
276
284
  )
277
285
 
278
286
  data = Twilio::Values.of({
@@ -467,7 +475,7 @@ module Twilio
467
475
  @factor_page << FactorListResponse.new(version, @payload, key, limit - records)
468
476
  @payload = self.next_page
469
477
  break unless @payload
470
- records += @payload.body[key].size
478
+ records += (@payload.body[key] || []).size
471
479
  end
472
480
  # Path Solution
473
481
  @solution = solution
@@ -489,7 +497,7 @@ module Twilio
489
497
  # @param [Hash{String => Object}] headers
490
498
  # @param [Integer] status_code
491
499
  def initialize(version, payload, key, limit = :unset)
492
- data_list = payload.body[key]
500
+ data_list = payload.body[key] || []
493
501
  if limit != :unset
494
502
  data_list = data_list[0, limit]
495
503
  end
@@ -667,15 +675,15 @@ module Twilio
667
675
  # @param [String] config_notification_platform The transport technology used to generate the Notification Token. Can be `apn`, `fcm` or `none`. Required when `factor_type` is `push`.
668
676
  # @return [FactorInstance] Updated FactorInstance
669
677
  def update(
670
- auth_payload: :unset,
671
- friendly_name: :unset,
672
- config_notification_token: :unset,
673
- config_sdk_version: :unset,
674
- config_time_step: :unset,
675
- config_skew: :unset,
676
- config_code_length: :unset,
677
- config_alg: :unset,
678
- config_notification_platform: :unset
678
+ auth_payload: :unset,
679
+ friendly_name: :unset,
680
+ config_notification_token: :unset,
681
+ config_sdk_version: :unset,
682
+ config_time_step: :unset,
683
+ config_skew: :unset,
684
+ config_code_length: :unset,
685
+ config_alg: :unset,
686
+ config_notification_platform: :unset
679
687
  )
680
688
 
681
689
  context.update(
@@ -52,20 +52,20 @@ module Twilio
52
52
  # @param [Object] metadata Custom metadata associated with the factor. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\\\"os\\\": \\\"Android\\\"}`. Can be up to 1024 characters in length.
53
53
  # @return [NewFactorInstance] Created NewFactorInstance
54
54
  def create(
55
- friendly_name: nil,
56
- factor_type: nil,
57
- binding_alg: :unset,
58
- binding_public_key: :unset,
59
- config_app_id: :unset,
60
- config_notification_platform: :unset,
61
- config_notification_token: :unset,
62
- config_sdk_version: :unset,
63
- binding_secret: :unset,
64
- config_time_step: :unset,
65
- config_skew: :unset,
66
- config_code_length: :unset,
67
- config_alg: :unset,
68
- metadata: :unset
55
+ friendly_name: nil,
56
+ factor_type: nil,
57
+ binding_alg: :unset,
58
+ binding_public_key: :unset,
59
+ config_app_id: :unset,
60
+ config_notification_platform: :unset,
61
+ config_notification_token: :unset,
62
+ config_sdk_version: :unset,
63
+ binding_secret: :unset,
64
+ config_time_step: :unset,
65
+ config_skew: :unset,
66
+ config_code_length: :unset,
67
+ config_alg: :unset,
68
+ metadata: :unset
69
69
  )
70
70
 
71
71
  data = Twilio::Values.of({
@@ -224,7 +224,7 @@ module Twilio
224
224
  @new_factor_page << NewFactorListResponse.new(version, @payload, key, limit - records)
225
225
  @payload = self.next_page
226
226
  break unless @payload
227
- records += @payload.body[key].size
227
+ records += (@payload.body[key] || []).size
228
228
  end
229
229
  # Path Solution
230
230
  @solution = solution
@@ -246,7 +246,7 @@ module Twilio
246
246
  # @param [Hash{String => Object}] headers
247
247
  # @param [Integer] status_code
248
248
  def initialize(version, payload, key, limit = :unset)
249
- data_list = payload.body[key]
249
+ data_list = payload.body[key] || []
250
250
  if limit != :unset
251
251
  data_list = data_list[0, limit]
252
252
  end
@@ -38,7 +38,7 @@ module Twilio
38
38
  # @param [String] identity The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, length between 8 and 64 characters, and generated by your external system, such as your user's UUID, GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
39
39
  # @return [EntityInstance] Created EntityInstance
40
40
  def create(
41
- identity: nil
41
+ identity: nil
42
42
  )
43
43
 
44
44
  data = Twilio::Values.of({
@@ -127,7 +127,11 @@ module Twilio
127
127
  page = self.page(
128
128
  page_size: limits[:page_size], )
129
129
 
130
- @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
130
+ return [].each if page.nil?
131
+
132
+ result = @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
133
+ return [].each if result.nil?
134
+ result
131
135
  end
132
136
 
133
137
  ##
@@ -161,9 +165,13 @@ module Twilio
161
165
 
162
166
  page = self.page(page_size: limits[:page_size], )
163
167
 
164
- @version.stream(page,
168
+ return [].each if page.nil?
169
+
170
+ result = @version.stream(page,
165
171
  limit: limits[:limit],
166
- page_limit: limits[:page_limit]).each {|x| yield x}
172
+ page_limit: limits[:page_limit])
173
+ return [].each if result.nil?
174
+ result.each {|x| yield x}
167
175
  end
168
176
 
169
177
  ##
@@ -463,7 +471,7 @@ module Twilio
463
471
  @entity_page << EntityListResponse.new(version, @payload, key, limit - records)
464
472
  @payload = self.next_page
465
473
  break unless @payload
466
- records += @payload.body[key].size
474
+ records += (@payload.body[key] || []).size
467
475
  end
468
476
  # Path Solution
469
477
  @solution = solution
@@ -485,7 +493,7 @@ module Twilio
485
493
  # @param [Hash{String => Object}] headers
486
494
  # @param [Integer] status_code
487
495
  def initialize(version, payload, key, limit = :unset)
488
- data_list = payload.body[key]
496
+ data_list = payload.body[key] || []
489
497
  if limit != :unset
490
498
  data_list = data_list[0, limit]
491
499
  end
@@ -39,8 +39,8 @@ module Twilio
39
39
  # @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) to be used to send SMS to the country of this configuration.
40
40
  # @return [MessagingConfigurationInstance] Created MessagingConfigurationInstance
41
41
  def create(
42
- country: nil,
43
- messaging_service_sid: nil
42
+ country: nil,
43
+ messaging_service_sid: nil
44
44
  )
45
45
 
46
46
  data = Twilio::Values.of({
@@ -133,7 +133,11 @@ module Twilio
133
133
  page = self.page(
134
134
  page_size: limits[:page_size], )
135
135
 
136
- @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
136
+ return [].each if page.nil?
137
+
138
+ result = @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
139
+ return [].each if result.nil?
140
+ result
137
141
  end
138
142
 
139
143
  ##
@@ -167,9 +171,13 @@ module Twilio
167
171
 
168
172
  page = self.page(page_size: limits[:page_size], )
169
173
 
170
- @version.stream(page,
174
+ return [].each if page.nil?
175
+
176
+ result = @version.stream(page,
171
177
  limit: limits[:limit],
172
- page_limit: limits[:page_limit]).each {|x| yield x}
178
+ page_limit: limits[:page_limit])
179
+ return [].each if result.nil?
180
+ result.each {|x| yield x}
173
181
  end
174
182
 
175
183
  ##
@@ -316,7 +324,7 @@ module Twilio
316
324
  # @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) to be used to send SMS to the country of this configuration.
317
325
  # @return [MessagingConfigurationInstance] Updated MessagingConfigurationInstance
318
326
  def update(
319
- messaging_service_sid: nil
327
+ messaging_service_sid: nil
320
328
  )
321
329
 
322
330
  data = Twilio::Values.of({
@@ -477,7 +485,7 @@ module Twilio
477
485
  @messaging_configuration_page << MessagingConfigurationListResponse.new(version, @payload, key, limit - records)
478
486
  @payload = self.next_page
479
487
  break unless @payload
480
- records += @payload.body[key].size
488
+ records += (@payload.body[key] || []).size
481
489
  end
482
490
  # Path Solution
483
491
  @solution = solution
@@ -499,7 +507,7 @@ module Twilio
499
507
  # @param [Hash{String => Object}] headers
500
508
  # @param [Integer] status_code
501
509
  def initialize(version, payload, key, limit = :unset)
502
- data_list = payload.body[key]
510
+ data_list = payload.body[key] || []
503
511
  if limit != :unset
504
512
  data_list = data_list[0, limit]
505
513
  end
@@ -627,7 +635,7 @@ module Twilio
627
635
  # @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) to be used to send SMS to the country of this configuration.
628
636
  # @return [MessagingConfigurationInstance] Updated MessagingConfigurationInstance
629
637
  def update(
630
- messaging_service_sid: nil
638
+ messaging_service_sid: nil
631
639
  )
632
640
 
633
641
  context.update(
@@ -230,7 +230,7 @@ module Twilio
230
230
  @new_challenge_page << NewChallengeListResponse.new(version, @payload, key, limit - records)
231
231
  @payload = self.next_page
232
232
  break unless @payload
233
- records += @payload.body[key].size
233
+ records += (@payload.body[key] || []).size
234
234
  end
235
235
  # Path Solution
236
236
  @solution = solution
@@ -252,7 +252,7 @@ module Twilio
252
252
  # @param [Hash{String => Object}] headers
253
253
  # @param [Integer] status_code
254
254
  def initialize(version, payload, key, limit = :unset)
255
- data_list = payload.body[key]
255
+ data_list = payload.body[key] || []
256
256
  if limit != :unset
257
257
  data_list = data_list[0, limit]
258
258
  end
@@ -292,7 +292,6 @@ module Twilio
292
292
 
293
293
  # Marshaled Properties
294
294
  @properties = {
295
- 'options' => payload['options'],
296
295
  'sid' => payload['sid'],
297
296
  'account_sid' => payload['account_sid'],
298
297
  'service_sid' => payload['service_sid'],
@@ -311,6 +310,7 @@ module Twilio
311
310
  'factor_type' => payload['factor_type'],
312
311
  'url' => payload['url'],
313
312
  'links' => payload['links'],
313
+ 'options' => payload['options'],
314
314
  }
315
315
 
316
316
  # Context
@@ -329,12 +329,6 @@ module Twilio
329
329
  @instance_context
330
330
  end
331
331
 
332
- ##
333
- # @return [Hash] An object that contains challenge options. Currently only used for `passkeys`.
334
- def options
335
- @properties['options']
336
- end
337
-
338
332
  ##
339
333
  # @return [String] A 34 character string that uniquely identifies this Challenge.
340
334
  def sid
@@ -443,6 +437,12 @@ module Twilio
443
437
  @properties['links']
444
438
  end
445
439
 
440
+ ##
441
+ # @return [Hash] An object that contains challenge options. Currently only used for `passkeys`.
442
+ def options
443
+ @properties['options']
444
+ end
445
+
446
446
  ##
447
447
  # Create the NewChallengeInstance
448
448
  # @param [CreatePasskeysChallengeRequest] create_passkeys_challenge_request
@@ -451,6 +451,7 @@ module Twilio
451
451
  )
452
452
 
453
453
  context.create(
454
+ create_passkeys_challenge_request: create_passkeys_challenge_request,
454
455
  )
455
456
  end
456
457
 
@@ -194,7 +194,7 @@ module Twilio
194
194
  @new_factor_page << NewFactorListResponse.new(version, @payload, key, limit - records)
195
195
  @payload = self.next_page
196
196
  break unless @payload
197
- records += @payload.body[key].size
197
+ records += (@payload.body[key] || []).size
198
198
  end
199
199
  # Path Solution
200
200
  @solution = solution
@@ -216,7 +216,7 @@ module Twilio
216
216
  # @param [Hash{String => Object}] headers
217
217
  # @param [Integer] status_code
218
218
  def initialize(version, payload, key, limit = :unset)
219
- data_list = payload.body[key]
219
+ data_list = payload.body[key] || []
220
220
  if limit != :unset
221
221
  data_list = data_list[0, limit]
222
222
  end
@@ -178,7 +178,7 @@ module Twilio
178
178
  @new_verify_factor_page << NewVerifyFactorListResponse.new(version, @payload, key, limit - records)
179
179
  @payload = self.next_page
180
180
  break unless @payload
181
- records += @payload.body[key].size
181
+ records += (@payload.body[key] || []).size
182
182
  end
183
183
  # Path Solution
184
184
  @solution = solution
@@ -200,7 +200,7 @@ module Twilio
200
200
  # @param [Hash{String => Object}] headers
201
201
  # @param [Integer] status_code
202
202
  def initialize(version, payload, key, limit = :unset)
203
- data_list = payload.body[key]
203
+ data_list = payload.body[key] || []
204
204
  if limit != :unset
205
205
  data_list = data_list[0, limit]
206
206
  end
@@ -40,8 +40,8 @@ module Twilio
40
40
  # @param [String] interval Number of seconds that the rate limit will be enforced over.
41
41
  # @return [BucketInstance] Created BucketInstance
42
42
  def create(
43
- max: nil,
44
- interval: nil
43
+ max: nil,
44
+ interval: nil
45
45
  )
46
46
 
47
47
  data = Twilio::Values.of({
@@ -136,7 +136,11 @@ module Twilio
136
136
  page = self.page(
137
137
  page_size: limits[:page_size], )
138
138
 
139
- @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
139
+ return [].each if page.nil?
140
+
141
+ result = @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
142
+ return [].each if result.nil?
143
+ result
140
144
  end
141
145
 
142
146
  ##
@@ -170,9 +174,13 @@ module Twilio
170
174
 
171
175
  page = self.page(page_size: limits[:page_size], )
172
176
 
173
- @version.stream(page,
177
+ return [].each if page.nil?
178
+
179
+ result = @version.stream(page,
174
180
  limit: limits[:limit],
175
- page_limit: limits[:page_limit]).each {|x| yield x}
181
+ page_limit: limits[:page_limit])
182
+ return [].each if result.nil?
183
+ result.each {|x| yield x}
176
184
  end
177
185
 
178
186
  ##
@@ -323,8 +331,8 @@ module Twilio
323
331
  # @param [String] interval Number of seconds that the rate limit will be enforced over.
324
332
  # @return [BucketInstance] Updated BucketInstance
325
333
  def update(
326
- max: :unset,
327
- interval: :unset
334
+ max: :unset,
335
+ interval: :unset
328
336
  )
329
337
 
330
338
  data = Twilio::Values.of({
@@ -491,7 +499,7 @@ module Twilio
491
499
  @bucket_page << BucketListResponse.new(version, @payload, key, limit - records)
492
500
  @payload = self.next_page
493
501
  break unless @payload
494
- records += @payload.body[key].size
502
+ records += (@payload.body[key] || []).size
495
503
  end
496
504
  # Path Solution
497
505
  @solution = solution
@@ -513,7 +521,7 @@ module Twilio
513
521
  # @param [Hash{String => Object}] headers
514
522
  # @param [Integer] status_code
515
523
  def initialize(version, payload, key, limit = :unset)
516
- data_list = payload.body[key]
524
+ data_list = payload.body[key] || []
517
525
  if limit != :unset
518
526
  data_list = data_list[0, limit]
519
527
  end
@@ -656,8 +664,8 @@ module Twilio
656
664
  # @param [String] interval Number of seconds that the rate limit will be enforced over.
657
665
  # @return [BucketInstance] Updated BucketInstance
658
666
  def update(
659
- max: :unset,
660
- interval: :unset
667
+ max: :unset,
668
+ interval: :unset
661
669
  )
662
670
 
663
671
  context.update(
@@ -39,8 +39,8 @@ module Twilio
39
39
  # @param [String] description Description of this Rate Limit
40
40
  # @return [RateLimitInstance] Created RateLimitInstance
41
41
  def create(
42
- unique_name: nil,
43
- description: :unset
42
+ unique_name: nil,
43
+ description: :unset
44
44
  )
45
45
 
46
46
  data = Twilio::Values.of({
@@ -133,7 +133,11 @@ module Twilio
133
133
  page = self.page(
134
134
  page_size: limits[:page_size], )
135
135
 
136
- @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
136
+ return [].each if page.nil?
137
+
138
+ result = @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
139
+ return [].each if result.nil?
140
+ result
137
141
  end
138
142
 
139
143
  ##
@@ -167,9 +171,13 @@ module Twilio
167
171
 
168
172
  page = self.page(page_size: limits[:page_size], )
169
173
 
170
- @version.stream(page,
174
+ return [].each if page.nil?
175
+
176
+ result = @version.stream(page,
171
177
  limit: limits[:limit],
172
- page_limit: limits[:page_limit]).each {|x| yield x}
178
+ page_limit: limits[:page_limit])
179
+ return [].each if result.nil?
180
+ result.each {|x| yield x}
173
181
  end
174
182
 
175
183
  ##
@@ -317,7 +325,7 @@ module Twilio
317
325
  # @param [String] description Description of this Rate Limit
318
326
  # @return [RateLimitInstance] Updated RateLimitInstance
319
327
  def update(
320
- description: :unset
328
+ description: :unset
321
329
  )
322
330
 
323
331
  data = Twilio::Values.of({
@@ -497,7 +505,7 @@ module Twilio
497
505
  @rate_limit_page << RateLimitListResponse.new(version, @payload, key, limit - records)
498
506
  @payload = self.next_page
499
507
  break unless @payload
500
- records += @payload.body[key].size
508
+ records += (@payload.body[key] || []).size
501
509
  end
502
510
  # Path Solution
503
511
  @solution = solution
@@ -519,7 +527,7 @@ module Twilio
519
527
  # @param [Hash{String => Object}] headers
520
528
  # @param [Integer] status_code
521
529
  def initialize(version, payload, key, limit = :unset)
522
- data_list = payload.body[key]
530
+ data_list = payload.body[key] || []
523
531
  if limit != :unset
524
532
  data_list = data_list[0, limit]
525
533
  end
@@ -661,7 +669,7 @@ module Twilio
661
669
  # @param [String] description Description of this Rate Limit
662
670
  # @return [RateLimitInstance] Updated RateLimitInstance
663
671
  def update(
664
- description: :unset
672
+ description: :unset
665
673
  )
666
674
 
667
675
  context.update(