twilio-ruby 7.3.3 → 7.10.1

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 (607) hide show
  1. checksums.yaml +4 -4
  2. data/.dockerignore +1 -1
  3. data/.github/ISSUE_TEMPLATE/bug_report.yml +69 -0
  4. data/.github/workflows/test-and-deploy.yml +10 -2
  5. data/.gitignore +1 -0
  6. data/.rubocop.yml +1 -0
  7. data/CHANGES.md +543 -0
  8. data/Dockerfile +2 -1
  9. data/Gemfile +2 -0
  10. data/Makefile +1 -1
  11. data/README.md +7 -2
  12. data/cluster/cluster_oauth_spec.rb +19 -0
  13. data/cluster/cluster_orgs_spec.rb +40 -0
  14. data/{cluster_spec.rb → cluster/cluster_spec.rb} +0 -2
  15. data/examples/public_oauth.rb +13 -0
  16. data/lib/twilio-ruby/auth_strategy/auth_strategy.rb +19 -0
  17. data/lib/twilio-ruby/auth_strategy/no_auth_strategy.rb +17 -0
  18. data/lib/twilio-ruby/auth_strategy/token_auth_strategy.rb +39 -0
  19. data/lib/twilio-ruby/base/client_base.rb +8 -1
  20. data/lib/twilio-ruby/credential/auth_type.rb +17 -0
  21. data/lib/twilio-ruby/credential/client_credential_provider.rb +28 -0
  22. data/lib/twilio-ruby/credential/credential_provider.rb +11 -0
  23. data/lib/twilio-ruby/credential/orgs_credential_provider.rb +30 -0
  24. data/lib/twilio-ruby/framework/rest/api_v1_version.rb +22 -0
  25. data/lib/twilio-ruby/framework/rest/domain.rb +0 -1
  26. data/lib/twilio-ruby/framework/rest/error.rb +27 -0
  27. data/lib/twilio-ruby/framework/rest/page.rb +1 -0
  28. data/lib/twilio-ruby/framework/rest/page_metadata.rb +83 -0
  29. data/lib/twilio-ruby/framework/rest/resource.rb +16 -0
  30. data/lib/twilio-ruby/framework/rest/token_page.rb +73 -0
  31. data/lib/twilio-ruby/framework/rest/version.rb +91 -4
  32. data/lib/twilio-ruby/http/client_token_manager.rb +31 -0
  33. data/lib/twilio-ruby/http/http_client.rb +9 -0
  34. data/lib/twilio-ruby/http/org_token_manager.rb +31 -0
  35. data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +139 -0
  36. data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +99 -1
  37. data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +98 -0
  38. data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +266 -2
  39. data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +266 -2
  40. data/lib/twilio-ruby/rest/accounts/v1/credential.rb +63 -0
  41. data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +285 -0
  42. data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +164 -4
  43. data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +161 -0
  44. data/lib/twilio-ruby/rest/accounts/v1.rb +6 -0
  45. data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +90 -2
  46. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +333 -7
  47. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +355 -2
  48. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +168 -2
  49. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +129 -5
  50. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +129 -5
  51. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +129 -5
  52. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +129 -5
  53. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +129 -5
  54. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +129 -5
  55. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +129 -5
  56. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +168 -2
  57. data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +92 -0
  58. data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +90 -2
  59. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +177 -2
  60. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +240 -0
  61. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +290 -2
  62. data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +792 -0
  63. data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +792 -0
  64. data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +235 -1
  65. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +103 -0
  66. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +176 -0
  67. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +428 -15
  68. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +464 -8
  69. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +238 -2
  70. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +228 -3
  71. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +248 -2
  72. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +170 -2
  73. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +228 -2
  74. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +200 -2
  75. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +200 -2
  76. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +200 -2
  77. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +413 -2
  78. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +227 -2
  79. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +100 -0
  80. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +197 -2
  81. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +354 -8
  82. data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +99 -0
  83. data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +99 -0
  84. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +176 -2
  85. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +231 -2
  86. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +210 -2
  87. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +269 -2
  88. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +143 -0
  89. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +192 -2
  90. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +191 -2
  91. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +191 -2
  92. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +209 -3
  93. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +224 -2
  94. data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +227 -2
  95. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +269 -2
  96. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +263 -2
  97. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_credential_list_mapping.rb +228 -2
  98. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls/auth_calls_ip_access_control_list_mapping.rb +228 -2
  99. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +63 -0
  100. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations/auth_registrations_credential_list_mapping.rb +228 -2
  101. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +63 -0
  102. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +63 -0
  103. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +228 -2
  104. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +228 -2
  105. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +335 -2
  106. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +278 -2
  107. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +263 -2
  108. data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +63 -0
  109. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +99 -0
  110. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +190 -2
  111. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +102 -6
  112. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +102 -6
  113. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +102 -6
  114. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +102 -6
  115. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +102 -6
  116. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +102 -6
  117. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +102 -6
  118. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +102 -6
  119. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +102 -6
  120. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +298 -7
  121. data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +63 -0
  122. data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +114 -0
  123. data/lib/twilio-ruby/rest/api/v2010/account.rb +245 -2
  124. data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +197 -2
  125. data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +190 -2
  126. data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +126 -6
  127. data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +100 -5
  128. data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +282 -32
  129. data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +90 -2
  130. data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +140 -0
  131. data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +309 -38
  132. data/lib/twilio-ruby/rest/assistants/v1/policy.rb +94 -2
  133. data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +90 -2
  134. data/lib/twilio-ruby/rest/assistants/v1/session.rb +167 -2
  135. data/lib/twilio-ruby/rest/assistants/v1/tool.rb +292 -40
  136. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +168 -2
  137. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +142 -3
  138. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +163 -1
  139. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +140 -0
  140. data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +182 -0
  141. data/lib/twilio-ruby/rest/chat/v1/credential.rb +293 -2
  142. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +234 -2
  143. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +275 -2
  144. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +277 -2
  145. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +281 -2
  146. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +269 -2
  147. data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +90 -2
  148. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +278 -2
  149. data/lib/twilio-ruby/rest/chat/v1/service.rb +419 -2
  150. data/lib/twilio-ruby/rest/chat/v2/credential.rb +293 -2
  151. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +196 -2
  152. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +234 -2
  153. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +309 -2
  154. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +308 -2
  155. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +299 -2
  156. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +306 -2
  157. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +269 -2
  158. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +194 -2
  159. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +238 -2
  160. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +282 -2
  161. data/lib/twilio-ruby/rest/chat/v2/service.rb +350 -2
  162. data/lib/twilio-ruby/rest/chat/v3/channel.rb +153 -0
  163. data/lib/twilio-ruby/rest/client.rb +10 -5
  164. data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +97 -2
  165. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +140 -0
  166. data/lib/twilio-ruby/rest/content/v1/content.rb +1096 -126
  167. data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +90 -2
  168. data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +90 -2
  169. data/lib/twilio-ruby/rest/content/v2/content.rb +111 -2
  170. data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +111 -2
  171. data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +319 -2
  172. data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +189 -3
  173. data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +183 -0
  174. data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +169 -2
  175. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +311 -2
  176. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +315 -2
  177. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +293 -2
  178. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +356 -25
  179. data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +392 -0
  180. data/lib/twilio-ruby/rest/conversations/v1/credential.rb +296 -2
  181. data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +94 -2
  182. data/lib/twilio-ruby/rest/conversations/v1/role.rb +266 -2
  183. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +199 -5
  184. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +212 -0
  185. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +185 -0
  186. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +201 -16
  187. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +170 -2
  188. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +314 -2
  189. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +318 -2
  190. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +296 -2
  191. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +360 -26
  192. data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +399 -0
  193. data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +94 -2
  194. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +269 -2
  195. data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +235 -2
  196. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +285 -2
  197. data/lib/twilio-ruby/rest/conversations/v1/service.rb +261 -20
  198. data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +233 -2
  199. data/lib/twilio-ruby/rest/conversations/v1/user.rb +282 -2
  200. data/lib/twilio-ruby/rest/conversations/v1.rb +6 -0
  201. data/lib/twilio-ruby/rest/events/v1/event_type.rb +169 -2
  202. data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +168 -2
  203. data/lib/twilio-ruby/rest/events/v1/schema.rb +140 -0
  204. data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +92 -0
  205. data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +99 -0
  206. data/lib/twilio-ruby/rest/events/v1/sink.rb +270 -2
  207. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +266 -2
  208. data/lib/twilio-ruby/rest/events/v1/subscription.rb +270 -10
  209. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +253 -5
  210. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +251 -2
  211. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +175 -0
  212. data/lib/twilio-ruby/rest/flex_api/v1/create_flex_instance.rb +382 -0
  213. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +358 -2
  214. data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +151 -5
  215. data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +94 -2
  216. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +292 -2
  217. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +240 -2
  218. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +267 -2
  219. data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +97 -2
  220. data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +142 -0
  221. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +94 -0
  222. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +94 -0
  223. data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +142 -0
  224. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +127 -2
  225. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +219 -2
  226. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +547 -0
  227. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +235 -2
  228. data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +266 -1
  229. data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +226 -2
  230. data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +256 -2
  231. data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +143 -0
  232. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +173 -2
  233. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +215 -2
  234. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +143 -0
  235. data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +209 -2
  236. data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +144 -0
  237. data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +139 -0
  238. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +278 -2
  239. data/lib/twilio-ruby/rest/flex_api/v1.rb +6 -0
  240. data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +184 -39
  241. data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +115 -0
  242. data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +185 -0
  243. data/lib/twilio-ruby/rest/iam/v1/api_key.rb +201 -0
  244. data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +99 -2
  245. data/lib/twilio-ruby/rest/iam/v1/{key.rb → new_api_key.rb} +127 -20
  246. data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +646 -0
  247. data/lib/twilio-ruby/rest/iam/v1/token.rb +301 -0
  248. data/lib/twilio-ruby/rest/iam/v1.rb +25 -4
  249. data/lib/twilio-ruby/rest/iam_base.rb +1 -6
  250. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +194 -0
  251. data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +146 -0
  252. data/lib/twilio-ruby/rest/insights/v1/call/event.rb +92 -2
  253. data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +94 -2
  254. data/lib/twilio-ruby/rest/insights/v1/call.rb +140 -0
  255. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +188 -4
  256. data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +183 -2
  257. data/lib/twilio-ruby/rest/insights/v1/conference.rb +187 -2
  258. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +168 -2
  259. data/lib/twilio-ruby/rest/insights/v1/room.rb +179 -2
  260. data/lib/twilio-ruby/rest/insights/v1/setting.rb +186 -0
  261. data/lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb +275 -2
  262. data/lib/twilio-ruby/rest/intelligence/v2/operator.rb +171 -2
  263. data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +163 -0
  264. data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +140 -0
  265. data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +167 -2
  266. data/lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb +171 -2
  267. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +330 -3
  268. data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +359 -0
  269. data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +359 -0
  270. data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +146 -0
  271. data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +183 -2
  272. data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +97 -5
  273. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +292 -2
  274. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +293 -2
  275. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +234 -2
  276. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +275 -2
  277. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +277 -2
  278. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +281 -2
  279. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +269 -2
  280. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +90 -2
  281. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +278 -2
  282. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +419 -2
  283. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +293 -2
  284. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +196 -2
  285. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +234 -2
  286. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +309 -2
  287. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +308 -2
  288. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +299 -2
  289. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +306 -2
  290. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +269 -2
  291. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +194 -2
  292. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +235 -2
  293. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +282 -2
  294. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +350 -2
  295. data/lib/twilio-ruby/rest/{microvisor/v1/app.rb → knowledge/v1/knowledge/chunk.rb} +133 -168
  296. data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +349 -0
  297. data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +856 -0
  298. data/lib/twilio-ruby/rest/{preview/sync.rb → knowledge/v1.rb} +16 -16
  299. data/lib/twilio-ruby/rest/knowledge.rb +6 -0
  300. data/lib/twilio-ruby/rest/{microvisor_base.rb → knowledge_base.rb} +6 -6
  301. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +157 -2
  302. data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +500 -0
  303. data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +603 -0
  304. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +209 -15
  305. data/lib/twilio-ruby/rest/lookups/v2/query.rb +351 -0
  306. data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +229 -0
  307. data/lib/twilio-ruby/rest/lookups/v2.rb +86 -0
  308. data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +168 -2
  309. data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +167 -2
  310. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +205 -2
  311. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +97 -2
  312. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +272 -2
  313. data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +342 -0
  314. data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +201 -0
  315. data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +99 -63
  316. data/lib/twilio-ruby/rest/marketplace/v1.rb +8 -2
  317. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +92 -0
  318. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +209 -2
  319. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +261 -2
  320. data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +145 -0
  321. data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +198 -0
  322. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +185 -0
  323. data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +140 -0
  324. data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +344 -0
  325. data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +104 -0
  326. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +163 -0
  327. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +140 -0
  328. data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +379 -0
  329. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +226 -2
  330. data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +226 -2
  331. data/lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb +608 -0
  332. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +226 -2
  333. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +226 -2
  334. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +326 -2
  335. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +98 -0
  336. data/lib/twilio-ruby/rest/messaging/v1/service.rb +381 -6
  337. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +731 -7
  338. data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +91 -0
  339. data/lib/twilio-ruby/rest/messaging/v1.rb +30 -0
  340. data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +1002 -0
  341. data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +386 -0
  342. data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +237 -0
  343. data/lib/twilio-ruby/rest/messaging/v2.rb +70 -0
  344. data/lib/twilio-ruby/rest/messaging_base.rb +6 -1
  345. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +173 -2
  346. data/lib/twilio-ruby/rest/monitor/v1/event.rb +180 -3
  347. data/lib/twilio-ruby/rest/notify/v1/credential.rb +293 -2
  348. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +254 -2
  349. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +150 -0
  350. data/lib/twilio-ruby/rest/notify/v1/service.rb +340 -2
  351. data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +170 -0
  352. data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +93 -0
  353. data/lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb +367 -0
  354. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +330 -8
  355. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +163 -0
  356. data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +149 -0
  357. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +93 -0
  358. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +133 -0
  359. data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +124 -2
  360. data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +91 -0
  361. data/lib/twilio-ruby/rest/numbers/v1.rb +6 -0
  362. data/lib/twilio-ruby/rest/numbers/v2/application.rb +562 -0
  363. data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +98 -2
  364. data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +243 -2
  365. data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +176 -0
  366. data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +153 -0
  367. data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +411 -3
  368. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +126 -2
  369. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +197 -2
  370. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +226 -2
  371. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +99 -0
  372. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +312 -2
  373. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +269 -2
  374. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +167 -2
  375. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +181 -2
  376. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +269 -2
  377. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +167 -2
  378. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +63 -0
  379. data/lib/twilio-ruby/rest/numbers/v2.rb +15 -0
  380. data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +484 -0
  381. data/lib/twilio-ruby/rest/numbers/v3.rb +40 -0
  382. data/lib/twilio-ruby/rest/numbers_base.rb +5 -0
  383. data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +109 -0
  384. data/lib/twilio-ruby/rest/oauth/v1/token.rb +119 -0
  385. data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +253 -0
  386. data/lib/twilio-ruby/rest/oauth/v2/token.rb +311 -0
  387. data/lib/twilio-ruby/rest/oauth/v2.rb +46 -0
  388. data/lib/twilio-ruby/rest/oauth_base.rb +6 -1
  389. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +100 -2
  390. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +275 -2
  391. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +345 -2
  392. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +168 -2
  393. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +167 -2
  394. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +205 -2
  395. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +272 -2
  396. data/lib/twilio-ruby/rest/preview/wireless/command.rb +228 -2
  397. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +290 -2
  398. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +149 -0
  399. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +258 -2
  400. data/lib/twilio-ruby/rest/preview.rb +0 -9
  401. data/lib/twilio-ruby/rest/preview_base.rb +0 -5
  402. data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +253 -0
  403. data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +301 -0
  404. data/lib/twilio-ruby/rest/preview_iam/v1.rb +46 -0
  405. data/lib/twilio-ruby/rest/preview_iam/versionless/organization/account.rb +468 -0
  406. data/lib/twilio-ruby/rest/preview_iam/versionless/organization/role_assignment.rb +559 -0
  407. data/lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb +768 -0
  408. data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +413 -0
  409. data/lib/twilio-ruby/rest/preview_iam/versionless.rb +49 -0
  410. data/lib/twilio-ruby/rest/preview_iam.rb +9 -0
  411. data/lib/twilio-ruby/rest/preview_iam_base.rb +38 -0
  412. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +167 -2
  413. data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +63 -0
  414. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +167 -2
  415. data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +63 -0
  416. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +167 -2
  417. data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +140 -0
  418. data/lib/twilio-ruby/rest/pricing/v1/voice.rb +63 -0
  419. data/lib/twilio-ruby/rest/pricing/v2/country.rb +167 -2
  420. data/lib/twilio-ruby/rest/pricing/v2/number.rb +146 -0
  421. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +167 -2
  422. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +146 -0
  423. data/lib/twilio-ruby/rest/pricing/v2/voice.rb +63 -0
  424. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +269 -2
  425. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +191 -2
  426. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +211 -2
  427. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +237 -2
  428. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +284 -2
  429. data/lib/twilio-ruby/rest/proxy/v1/service.rb +302 -29
  430. data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +179 -0
  431. data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +179 -0
  432. data/lib/twilio-ruby/rest/routes/v2/trunk.rb +179 -0
  433. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +169 -2
  434. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +263 -2
  435. data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +141 -0
  436. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +235 -2
  437. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +209 -2
  438. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +176 -3
  439. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +272 -2
  440. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +229 -2
  441. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +142 -0
  442. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +169 -2
  443. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +263 -2
  444. data/lib/twilio-ruby/rest/serverless/v1/service.rb +275 -2
  445. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +141 -0
  446. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +142 -0
  447. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +183 -2
  448. data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +232 -2
  449. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +141 -0
  450. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +142 -0
  451. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +183 -2
  452. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +273 -2
  453. data/lib/twilio-ruby/rest/studio/v1/flow.rb +189 -2
  454. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +141 -0
  455. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +142 -0
  456. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +183 -2
  457. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +273 -2
  458. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +168 -2
  459. data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +176 -0
  460. data/lib/twilio-ruby/rest/studio/v2/flow.rb +278 -2
  461. data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +107 -0
  462. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +217 -2
  463. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +282 -2
  464. data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +225 -2
  465. data/lib/twilio-ruby/rest/supersim/v1/network.rb +173 -2
  466. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +226 -2
  467. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +241 -2
  468. data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +94 -2
  469. data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +90 -2
  470. data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +90 -2
  471. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +262 -2
  472. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +217 -2
  473. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +106 -2
  474. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +235 -2
  475. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +275 -3
  476. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +295 -2
  477. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +235 -2
  478. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +274 -4
  479. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +298 -2
  480. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +235 -2
  481. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +274 -4
  482. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +100 -0
  483. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +267 -3
  484. data/lib/twilio-ruby/rest/sync/v1/service.rb +299 -5
  485. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +270 -2
  486. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +190 -2
  487. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +374 -4
  488. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +329 -3
  489. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +272 -2
  490. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +94 -0
  491. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +159 -0
  492. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +147 -0
  493. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +159 -0
  494. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +102 -2
  495. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +301 -2
  496. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +366 -4
  497. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +210 -2
  498. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +156 -0
  499. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +155 -0
  500. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +146 -0
  501. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +164 -0
  502. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +299 -2
  503. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +159 -0
  504. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +147 -0
  505. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +159 -0
  506. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +292 -2
  507. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +158 -0
  508. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +146 -0
  509. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +158 -0
  510. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +295 -2
  511. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +226 -2
  512. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +226 -2
  513. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +287 -2
  514. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +227 -3
  515. data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +179 -0
  516. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +309 -2
  517. data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +195 -4
  518. data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +299 -0
  519. data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +255 -1
  520. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +233 -2
  521. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +228 -2
  522. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +204 -2
  523. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +284 -2
  524. data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +269 -2
  525. data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +167 -2
  526. data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +167 -2
  527. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +269 -2
  528. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +167 -2
  529. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +233 -2
  530. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +228 -2
  531. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +204 -2
  532. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +284 -2
  533. data/lib/twilio-ruby/rest/verify/v2/form.rb +140 -0
  534. data/lib/twilio-ruby/rest/verify/v2/safelist.rb +197 -0
  535. data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +186 -0
  536. data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +402 -0
  537. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +101 -0
  538. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +268 -2
  539. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +253 -2
  540. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +146 -0
  541. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +226 -2
  542. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +266 -2
  543. data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +478 -0
  544. data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +387 -0
  545. data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +357 -0
  546. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +272 -2
  547. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +266 -2
  548. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +265 -0
  549. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +114 -0
  550. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +287 -2
  551. data/lib/twilio-ruby/rest/verify/v2/service.rb +547 -3
  552. data/lib/twilio-ruby/rest/verify/v2/template.rb +92 -2
  553. data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +186 -5
  554. data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +163 -3
  555. data/lib/twilio-ruby/rest/video/v1/composition.rb +256 -2
  556. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +322 -2
  557. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +189 -0
  558. data/lib/twilio-ruby/rest/video/v1/recording.rb +202 -2
  559. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +189 -0
  560. data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +141 -0
  561. data/lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb +169 -2
  562. data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +130 -0
  563. data/lib/twilio-ruby/rest/video/v1/room/participant/subscribed_track.rb +169 -2
  564. data/lib/twilio-ruby/rest/video/v1/room/participant.rb +213 -2
  565. data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +128 -0
  566. data/lib/twilio-ruby/rest/video/v1/room/room_recording.rb +198 -2
  567. data/lib/twilio-ruby/rest/video/v1/room/transcriptions.rb +648 -0
  568. data/lib/twilio-ruby/rest/video/v1/room.rb +341 -16
  569. data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +133 -0
  570. data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +314 -2
  571. data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +287 -2
  572. data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +260 -2
  573. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +98 -0
  574. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +90 -2
  575. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +179 -2
  576. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +174 -0
  577. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +63 -0
  578. data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +266 -2
  579. data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +263 -2
  580. data/lib/twilio-ruby/rest/wireless/v1/command.rb +250 -2
  581. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +300 -3
  582. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +90 -2
  583. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +96 -2
  584. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +286 -2
  585. data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +96 -2
  586. data/lib/twilio-ruby/twiml/voice_response.rb +305 -10
  587. data/lib/twilio-ruby/version.rb +1 -1
  588. data/twilio-ruby.gemspec +1 -1
  589. metadata +76 -32
  590. data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -365
  591. data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -358
  592. data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -209
  593. data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -381
  594. data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -374
  595. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -430
  596. data/lib/twilio-ruby/rest/microvisor/v1.rb +0 -94
  597. data/lib/twilio-ruby/rest/microvisor.rb +0 -24
  598. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -394
  599. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -455
  600. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -450
  601. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -394
  602. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -431
  603. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -453
  604. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -394
  605. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -431
  606. data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -512
  607. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -413
@@ -25,6 +25,7 @@ module Twilio
25
25
  # @return [TollfreeVerificationList] TollfreeVerificationList
26
26
  def initialize(version)
27
27
  super(version)
28
+
28
29
  # Path Solution
29
30
  @solution = { }
30
31
  @uri = "/Tollfree/Verifications"
@@ -55,6 +56,20 @@ module Twilio
55
56
  # @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
56
57
  # @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
57
58
  # @param [String] external_reference_id An optional external reference ID supplied by customer and echoed back on status retrieval.
59
+ # @param [String] business_registration_number A legally recognized business registration number. Required for all business types except SOLE_PROPRIETOR.
60
+ # @param [String] business_registration_authority The organizational authority for business registrations. Required for all business types except SOLE_PROPRIETOR.
61
+ # @param [String] business_registration_country The country where the business is registered. Required for all business types except SOLE_PROPRIETOR.
62
+ # @param [String] business_type The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT. Required field.
63
+ # @param [String] business_registration_phone_number The E.164 formatted number associated with the business.
64
+ # @param [String] doing_business_as Trade name, sub entity, or downstream business name of business being submitted for verification
65
+ # @param [String] opt_in_confirmation_message The confirmation message sent to users when they opt in to receive messages.
66
+ # @param [String] help_message_sample A sample help message provided to users.
67
+ # @param [String] privacy_policy_url The URL to the privacy policy for the business or organization.
68
+ # @param [String] terms_and_conditions_url The URL to the terms and conditions for the business or organization.
69
+ # @param [Boolean] age_gated_content Indicates if the content is age gated.
70
+ # @param [Array[String]] opt_in_keywords List of keywords that users can text in to opt in to receive messages.
71
+ # @param [VettingProvider] vetting_provider
72
+ # @param [String] vetting_id The unique ID of the vetting
58
73
  # @return [TollfreeVerificationInstance] Created TollfreeVerificationInstance
59
74
  def create(
60
75
  business_name: nil,
@@ -79,7 +94,21 @@ module Twilio
79
94
  business_contact_last_name: :unset,
80
95
  business_contact_email: :unset,
81
96
  business_contact_phone: :unset,
82
- external_reference_id: :unset
97
+ external_reference_id: :unset,
98
+ business_registration_number: :unset,
99
+ business_registration_authority: :unset,
100
+ business_registration_country: :unset,
101
+ business_type: :unset,
102
+ business_registration_phone_number: :unset,
103
+ doing_business_as: :unset,
104
+ opt_in_confirmation_message: :unset,
105
+ help_message_sample: :unset,
106
+ privacy_policy_url: :unset,
107
+ terms_and_conditions_url: :unset,
108
+ age_gated_content: :unset,
109
+ opt_in_keywords: :unset,
110
+ vetting_provider: :unset,
111
+ vetting_id: :unset
83
112
  )
84
113
 
85
114
  data = Twilio::Values.of({
@@ -106,10 +135,28 @@ module Twilio
106
135
  'BusinessContactEmail' => business_contact_email,
107
136
  'BusinessContactPhone' => business_contact_phone,
108
137
  'ExternalReferenceId' => external_reference_id,
138
+ 'BusinessRegistrationNumber' => business_registration_number,
139
+ 'BusinessRegistrationAuthority' => business_registration_authority,
140
+ 'BusinessRegistrationCountry' => business_registration_country,
141
+ 'BusinessType' => business_type,
142
+ 'BusinessRegistrationPhoneNumber' => business_registration_phone_number,
143
+ 'DoingBusinessAs' => doing_business_as,
144
+ 'OptInConfirmationMessage' => opt_in_confirmation_message,
145
+ 'HelpMessageSample' => help_message_sample,
146
+ 'PrivacyPolicyUrl' => privacy_policy_url,
147
+ 'TermsAndConditionsUrl' => terms_and_conditions_url,
148
+ 'AgeGatedContent' => age_gated_content,
149
+ 'OptInKeywords' => Twilio.serialize_list(opt_in_keywords) { |e| e },
150
+ 'VettingProvider' => vetting_provider,
151
+ 'VettingId' => vetting_id,
109
152
  })
110
153
 
111
154
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
112
155
 
156
+
157
+
158
+
159
+
113
160
  payload = @version.create('POST', @uri, data: data, headers: headers)
114
161
  TollfreeVerificationInstance.new(
115
162
  @version,
@@ -117,6 +164,145 @@ module Twilio
117
164
  )
118
165
  end
119
166
 
167
+ ##
168
+ # Create the TollfreeVerificationInstanceMetadata
169
+ # @param [String] business_name The name of the business or organization using the Tollfree number.
170
+ # @param [String] business_website The website of the business or organization using the Tollfree number.
171
+ # @param [String] notification_email The email address to receive the notification about the verification result. .
172
+ # @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many are applicable..
173
+ # @param [String] use_case_summary Use this to further explain how messaging is used by the business or organization.
174
+ # @param [String] production_message_sample An example of message content, i.e. a sample message.
175
+ # @param [Array[String]] opt_in_image_urls Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
176
+ # @param [OptInType] opt_in_type
177
+ # @param [String] message_volume Estimate monthly volume of messages from the Tollfree Number.
178
+ # @param [String] tollfree_phone_number_sid The SID of the Phone Number associated with the Tollfree Verification.
179
+ # @param [String] customer_profile_sid Customer's Profile Bundle BundleSid.
180
+ # @param [String] business_street_address The address of the business or organization using the Tollfree number.
181
+ # @param [String] business_street_address2 The address of the business or organization using the Tollfree number.
182
+ # @param [String] business_city The city of the business or organization using the Tollfree number.
183
+ # @param [String] business_state_province_region The state/province/region of the business or organization using the Tollfree number.
184
+ # @param [String] business_postal_code The postal code of the business or organization using the Tollfree number.
185
+ # @param [String] business_country The country of the business or organization using the Tollfree number.
186
+ # @param [String] additional_information Additional information to be provided for verification.
187
+ # @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number.
188
+ # @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
189
+ # @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
190
+ # @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
191
+ # @param [String] external_reference_id An optional external reference ID supplied by customer and echoed back on status retrieval.
192
+ # @param [String] business_registration_number A legally recognized business registration number. Required for all business types except SOLE_PROPRIETOR.
193
+ # @param [String] business_registration_authority The organizational authority for business registrations. Required for all business types except SOLE_PROPRIETOR.
194
+ # @param [String] business_registration_country The country where the business is registered. Required for all business types except SOLE_PROPRIETOR.
195
+ # @param [String] business_type The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT. Required field.
196
+ # @param [String] business_registration_phone_number The E.164 formatted number associated with the business.
197
+ # @param [String] doing_business_as Trade name, sub entity, or downstream business name of business being submitted for verification
198
+ # @param [String] opt_in_confirmation_message The confirmation message sent to users when they opt in to receive messages.
199
+ # @param [String] help_message_sample A sample help message provided to users.
200
+ # @param [String] privacy_policy_url The URL to the privacy policy for the business or organization.
201
+ # @param [String] terms_and_conditions_url The URL to the terms and conditions for the business or organization.
202
+ # @param [Boolean] age_gated_content Indicates if the content is age gated.
203
+ # @param [Array[String]] opt_in_keywords List of keywords that users can text in to opt in to receive messages.
204
+ # @param [VettingProvider] vetting_provider
205
+ # @param [String] vetting_id The unique ID of the vetting
206
+ # @return [TollfreeVerificationInstance] Created TollfreeVerificationInstance
207
+ def create_with_metadata(
208
+ business_name: nil,
209
+ business_website: nil,
210
+ notification_email: nil,
211
+ use_case_categories: nil,
212
+ use_case_summary: nil,
213
+ production_message_sample: nil,
214
+ opt_in_image_urls: nil,
215
+ opt_in_type: nil,
216
+ message_volume: nil,
217
+ tollfree_phone_number_sid: nil,
218
+ customer_profile_sid: :unset,
219
+ business_street_address: :unset,
220
+ business_street_address2: :unset,
221
+ business_city: :unset,
222
+ business_state_province_region: :unset,
223
+ business_postal_code: :unset,
224
+ business_country: :unset,
225
+ additional_information: :unset,
226
+ business_contact_first_name: :unset,
227
+ business_contact_last_name: :unset,
228
+ business_contact_email: :unset,
229
+ business_contact_phone: :unset,
230
+ external_reference_id: :unset,
231
+ business_registration_number: :unset,
232
+ business_registration_authority: :unset,
233
+ business_registration_country: :unset,
234
+ business_type: :unset,
235
+ business_registration_phone_number: :unset,
236
+ doing_business_as: :unset,
237
+ opt_in_confirmation_message: :unset,
238
+ help_message_sample: :unset,
239
+ privacy_policy_url: :unset,
240
+ terms_and_conditions_url: :unset,
241
+ age_gated_content: :unset,
242
+ opt_in_keywords: :unset,
243
+ vetting_provider: :unset,
244
+ vetting_id: :unset
245
+ )
246
+
247
+ data = Twilio::Values.of({
248
+ 'BusinessName' => business_name,
249
+ 'BusinessWebsite' => business_website,
250
+ 'NotificationEmail' => notification_email,
251
+ 'UseCaseCategories' => Twilio.serialize_list(use_case_categories) { |e| e },
252
+ 'UseCaseSummary' => use_case_summary,
253
+ 'ProductionMessageSample' => production_message_sample,
254
+ 'OptInImageUrls' => Twilio.serialize_list(opt_in_image_urls) { |e| e },
255
+ 'OptInType' => opt_in_type,
256
+ 'MessageVolume' => message_volume,
257
+ 'TollfreePhoneNumberSid' => tollfree_phone_number_sid,
258
+ 'CustomerProfileSid' => customer_profile_sid,
259
+ 'BusinessStreetAddress' => business_street_address,
260
+ 'BusinessStreetAddress2' => business_street_address2,
261
+ 'BusinessCity' => business_city,
262
+ 'BusinessStateProvinceRegion' => business_state_province_region,
263
+ 'BusinessPostalCode' => business_postal_code,
264
+ 'BusinessCountry' => business_country,
265
+ 'AdditionalInformation' => additional_information,
266
+ 'BusinessContactFirstName' => business_contact_first_name,
267
+ 'BusinessContactLastName' => business_contact_last_name,
268
+ 'BusinessContactEmail' => business_contact_email,
269
+ 'BusinessContactPhone' => business_contact_phone,
270
+ 'ExternalReferenceId' => external_reference_id,
271
+ 'BusinessRegistrationNumber' => business_registration_number,
272
+ 'BusinessRegistrationAuthority' => business_registration_authority,
273
+ 'BusinessRegistrationCountry' => business_registration_country,
274
+ 'BusinessType' => business_type,
275
+ 'BusinessRegistrationPhoneNumber' => business_registration_phone_number,
276
+ 'DoingBusinessAs' => doing_business_as,
277
+ 'OptInConfirmationMessage' => opt_in_confirmation_message,
278
+ 'HelpMessageSample' => help_message_sample,
279
+ 'PrivacyPolicyUrl' => privacy_policy_url,
280
+ 'TermsAndConditionsUrl' => terms_and_conditions_url,
281
+ 'AgeGatedContent' => age_gated_content,
282
+ 'OptInKeywords' => Twilio.serialize_list(opt_in_keywords) { |e| e },
283
+ 'VettingProvider' => vetting_provider,
284
+ 'VettingId' => vetting_id,
285
+ })
286
+
287
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
288
+
289
+
290
+
291
+
292
+
293
+ response = @version.create_with_metadata('POST', @uri, data: data, headers: headers)
294
+ tollfree_verification_instance = TollfreeVerificationInstance.new(
295
+ @version,
296
+ response.body,
297
+ )
298
+ TollfreeVerificationInstanceMetadata.new(
299
+ @version,
300
+ tollfree_verification_instance,
301
+ response.headers,
302
+ response.status_code
303
+ )
304
+ end
305
+
120
306
 
121
307
  ##
122
308
  # Lists TollfreeVerificationInstance records from the API as a list.
@@ -126,6 +312,7 @@ module Twilio
126
312
  # @param [Status] status The compliance status of the Tollfree Verification record.
127
313
  # @param [String] external_reference_id Customer supplied reference id for the Tollfree Verification record.
128
314
  # @param [Boolean] include_sub_accounts Whether to include Tollfree Verifications from sub accounts in list response.
315
+ # @param [Array[String]] trust_product_sid The trust product sids / tollfree bundle sids of tollfree verifications
129
316
  # @param [Integer] limit Upper limit for the number of records to return. stream()
130
317
  # guarantees to never return more than limit. Default is no limit
131
318
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -133,12 +320,13 @@ module Twilio
133
320
  # but a limit is defined, stream() will attempt to read the limit with the most
134
321
  # efficient page size, i.e. min(limit, 1000)
135
322
  # @return [Array] Array of up to limit results
136
- def list(tollfree_phone_number_sid: :unset, status: :unset, external_reference_id: :unset, include_sub_accounts: :unset, limit: nil, page_size: nil)
323
+ def list(tollfree_phone_number_sid: :unset, status: :unset, external_reference_id: :unset, include_sub_accounts: :unset, trust_product_sid: :unset, limit: nil, page_size: nil)
137
324
  self.stream(
138
325
  tollfree_phone_number_sid: tollfree_phone_number_sid,
139
326
  status: status,
140
327
  external_reference_id: external_reference_id,
141
328
  include_sub_accounts: include_sub_accounts,
329
+ trust_product_sid: trust_product_sid,
142
330
  limit: limit,
143
331
  page_size: page_size
144
332
  ).entries
@@ -152,6 +340,7 @@ module Twilio
152
340
  # @param [Status] status The compliance status of the Tollfree Verification record.
153
341
  # @param [String] external_reference_id Customer supplied reference id for the Tollfree Verification record.
154
342
  # @param [Boolean] include_sub_accounts Whether to include Tollfree Verifications from sub accounts in list response.
343
+ # @param [Array[String]] trust_product_sid The trust product sids / tollfree bundle sids of tollfree verifications
155
344
  # @param [Integer] limit Upper limit for the number of records to return. stream()
156
345
  # guarantees to never return more than limit. Default is no limit
157
346
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -159,7 +348,7 @@ module Twilio
159
348
  # but a limit is defined, stream() will attempt to read the limit with the most
160
349
  # efficient page size, i.e. min(limit, 1000)
161
350
  # @return [Enumerable] Enumerable that will yield up to limit results
162
- def stream(tollfree_phone_number_sid: :unset, status: :unset, external_reference_id: :unset, include_sub_accounts: :unset, limit: nil, page_size: nil)
351
+ def stream(tollfree_phone_number_sid: :unset, status: :unset, external_reference_id: :unset, include_sub_accounts: :unset, trust_product_sid: :unset, limit: nil, page_size: nil)
163
352
  limits = @version.read_limits(limit, page_size)
164
353
 
165
354
  page = self.page(
@@ -167,11 +356,45 @@ module Twilio
167
356
  status: status,
168
357
  external_reference_id: external_reference_id,
169
358
  include_sub_accounts: include_sub_accounts,
359
+ trust_product_sid: trust_product_sid,
170
360
  page_size: limits[:page_size], )
171
361
 
172
362
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
173
363
  end
174
364
 
365
+ ##
366
+ # Lists TollfreeVerificationPageMetadata records from the API as a list.
367
+ # @param [String] tollfree_phone_number_sid The SID of the Phone Number associated with the Tollfree Verification.
368
+ # @param [Status] status The compliance status of the Tollfree Verification record.
369
+ # @param [String] external_reference_id Customer supplied reference id for the Tollfree Verification record.
370
+ # @param [Boolean] include_sub_accounts Whether to include Tollfree Verifications from sub accounts in list response.
371
+ # @param [Array[String]] trust_product_sid The trust product sids / tollfree bundle sids of tollfree verifications
372
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
373
+ # guarantees to never return more than limit. Default is no limit
374
+ # @param [Integer] page_size Number of records to fetch per request, when
375
+ # not set will use the default value of 50 records. If no page_size is defined
376
+ # but a limit is defined, stream() will attempt to read the limit with the most
377
+ # efficient page size, i.e. min(limit, 1000)
378
+ # @return [Array] Array of up to limit results
379
+ def list_with_metadata(tollfree_phone_number_sid: :unset, status: :unset, external_reference_id: :unset, include_sub_accounts: :unset, trust_product_sid: :unset, limit: nil, page_size: nil)
380
+ limits = @version.read_limits(limit, page_size)
381
+ params = Twilio::Values.of({
382
+ 'TollfreePhoneNumberSid' => tollfree_phone_number_sid,
383
+ 'Status' => status,
384
+ 'ExternalReferenceId' => external_reference_id,
385
+ 'IncludeSubAccounts' => include_sub_accounts,
386
+
387
+ 'TrustProductSid' => Twilio.serialize_list(trust_product_sid) { |e| e },
388
+
389
+ 'PageSize' => limits[:page_size],
390
+ });
391
+ headers = Twilio::Values.of({})
392
+
393
+ response = @version.page('GET', @uri, params: params, headers: headers)
394
+
395
+ TollfreeVerificationPageMetadata.new(@version, response, @solution, limits[:limit])
396
+ end
397
+
175
398
  ##
176
399
  # When passed a block, yields TollfreeVerificationInstance records from the API.
177
400
  # This operation lazily loads records as efficiently as possible until the limit
@@ -193,22 +416,28 @@ module Twilio
193
416
  # @param [Status] status The compliance status of the Tollfree Verification record.
194
417
  # @param [String] external_reference_id Customer supplied reference id for the Tollfree Verification record.
195
418
  # @param [Boolean] include_sub_accounts Whether to include Tollfree Verifications from sub accounts in list response.
419
+ # @param [Array[String]] trust_product_sid The trust product sids / tollfree bundle sids of tollfree verifications
196
420
  # @param [String] page_token PageToken provided by the API
197
421
  # @param [Integer] page_number Page Number, this value is simply for client state
198
422
  # @param [Integer] page_size Number of records to return, defaults to 50
199
423
  # @return [Page] Page of TollfreeVerificationInstance
200
- def page(tollfree_phone_number_sid: :unset, status: :unset, external_reference_id: :unset, include_sub_accounts: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
424
+ def page(tollfree_phone_number_sid: :unset, status: :unset, external_reference_id: :unset, include_sub_accounts: :unset, trust_product_sid: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
201
425
  params = Twilio::Values.of({
202
426
  'TollfreePhoneNumberSid' => tollfree_phone_number_sid,
203
427
  'Status' => status,
204
428
  'ExternalReferenceId' => external_reference_id,
205
429
  'IncludeSubAccounts' => include_sub_accounts,
430
+
431
+ 'TrustProductSid' => Twilio.serialize_list(trust_product_sid) { |e| e },
206
432
  'PageToken' => page_token,
207
433
  'Page' => page_number,
208
434
  'PageSize' => page_size,
209
435
  })
436
+ headers = Twilio::Values.of({})
437
+
438
+
210
439
 
211
- response = @version.page('GET', @uri, params: params)
440
+ response = @version.page('GET', @uri, params: params, headers: headers)
212
441
 
213
442
  TollfreeVerificationPage.new(@version, response, @solution)
214
443
  end
@@ -243,6 +472,7 @@ module Twilio
243
472
  # @return [TollfreeVerificationContext] TollfreeVerificationContext
244
473
  def initialize(version, sid)
245
474
  super(version)
475
+
246
476
 
247
477
  # Path Solution
248
478
  @solution = { sid: sid, }
@@ -257,9 +487,31 @@ module Twilio
257
487
 
258
488
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
259
489
 
490
+
491
+
492
+
260
493
  @version.delete('DELETE', @uri, headers: headers)
261
494
  end
262
495
 
496
+ ##
497
+ # Delete the TollfreeVerificationInstanceMetadata
498
+ # @return [Boolean] True if delete succeeds, false otherwise
499
+ def delete_with_metadata
500
+
501
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
502
+
503
+
504
+
505
+ response = @version.delete_with_metadata('DELETE', @uri, headers: headers)
506
+ tollfreeVerification_instance = TollfreeVerificationInstance.new(
507
+ @version,
508
+ response.body,
509
+ account_sid: @solution[:account_sid],
510
+ sid: @solution[:sid],
511
+ )
512
+ TollfreeVerificationInstanceMetadata.new(@version, tollfreeVerification_instance, response.headers, response.status_code)
513
+ end
514
+
263
515
  ##
264
516
  # Fetch the TollfreeVerificationInstance
265
517
  # @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance
@@ -267,6 +519,10 @@ module Twilio
267
519
 
268
520
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
269
521
 
522
+
523
+
524
+
525
+
270
526
  payload = @version.fetch('GET', @uri, headers: headers)
271
527
  TollfreeVerificationInstance.new(
272
528
  @version,
@@ -275,6 +531,31 @@ module Twilio
275
531
  )
276
532
  end
277
533
 
534
+ ##
535
+ # Fetch the TollfreeVerificationInstanceMetadata
536
+ # @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance
537
+ def fetch_with_metadata
538
+
539
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
540
+
541
+
542
+
543
+
544
+
545
+ response = @version.fetch_with_metadata('GET', @uri, headers: headers)
546
+ tollfree_verification_instance = TollfreeVerificationInstance.new(
547
+ @version,
548
+ response.body,
549
+ sid: @solution[:sid],
550
+ )
551
+ TollfreeVerificationInstanceMetadata.new(
552
+ @version,
553
+ tollfree_verification_instance,
554
+ response.headers,
555
+ response.status_code
556
+ )
557
+ end
558
+
278
559
  ##
279
560
  # Update the TollfreeVerificationInstance
280
561
  # @param [String] business_name The name of the business or organization using the Tollfree number.
@@ -298,6 +579,20 @@ module Twilio
298
579
  # @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
299
580
  # @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
300
581
  # @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
582
+ # @param [String] business_registration_number A legaly recognized business registration number
583
+ # @param [String] business_registration_authority The organizational authority for business registrations
584
+ # @param [String] business_registration_country Country business is registered in
585
+ # @param [String] business_type The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT
586
+ # @param [String] business_registration_phone_number The E.164 formatted number associated with the business.
587
+ # @param [String] doing_business_as Trade name, sub entity, or downstream business name of business being submitted for verification
588
+ # @param [String] opt_in_confirmation_message The confirmation message sent to users when they opt in to receive messages.
589
+ # @param [String] help_message_sample A sample help message provided to users.
590
+ # @param [String] privacy_policy_url The URL to the privacy policy for the business or organization.
591
+ # @param [String] terms_and_conditions_url The URL to the terms and conditions for the business or organization.
592
+ # @param [Boolean] age_gated_content Indicates if the content is age gated.
593
+ # @param [Array[String]] opt_in_keywords List of keywords that users can text in to opt in to receive messages.
594
+ # @param [VettingProvider] vetting_provider
595
+ # @param [String] vetting_id The unique ID of the vetting
301
596
  # @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance
302
597
  def update(
303
598
  business_name: :unset,
@@ -320,7 +615,21 @@ module Twilio
320
615
  business_contact_last_name: :unset,
321
616
  business_contact_email: :unset,
322
617
  business_contact_phone: :unset,
323
- edit_reason: :unset
618
+ edit_reason: :unset,
619
+ business_registration_number: :unset,
620
+ business_registration_authority: :unset,
621
+ business_registration_country: :unset,
622
+ business_type: :unset,
623
+ business_registration_phone_number: :unset,
624
+ doing_business_as: :unset,
625
+ opt_in_confirmation_message: :unset,
626
+ help_message_sample: :unset,
627
+ privacy_policy_url: :unset,
628
+ terms_and_conditions_url: :unset,
629
+ age_gated_content: :unset,
630
+ opt_in_keywords: :unset,
631
+ vetting_provider: :unset,
632
+ vetting_id: :unset
324
633
  )
325
634
 
326
635
  data = Twilio::Values.of({
@@ -345,10 +654,28 @@ module Twilio
345
654
  'BusinessContactEmail' => business_contact_email,
346
655
  'BusinessContactPhone' => business_contact_phone,
347
656
  'EditReason' => edit_reason,
657
+ 'BusinessRegistrationNumber' => business_registration_number,
658
+ 'BusinessRegistrationAuthority' => business_registration_authority,
659
+ 'BusinessRegistrationCountry' => business_registration_country,
660
+ 'BusinessType' => business_type,
661
+ 'BusinessRegistrationPhoneNumber' => business_registration_phone_number,
662
+ 'DoingBusinessAs' => doing_business_as,
663
+ 'OptInConfirmationMessage' => opt_in_confirmation_message,
664
+ 'HelpMessageSample' => help_message_sample,
665
+ 'PrivacyPolicyUrl' => privacy_policy_url,
666
+ 'TermsAndConditionsUrl' => terms_and_conditions_url,
667
+ 'AgeGatedContent' => age_gated_content,
668
+ 'OptInKeywords' => Twilio.serialize_list(opt_in_keywords) { |e| e },
669
+ 'VettingProvider' => vetting_provider,
670
+ 'VettingId' => vetting_id,
348
671
  })
349
672
 
350
673
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
351
674
 
675
+
676
+
677
+
678
+
352
679
  payload = @version.update('POST', @uri, data: data, headers: headers)
353
680
  TollfreeVerificationInstance.new(
354
681
  @version,
@@ -357,6 +684,140 @@ module Twilio
357
684
  )
358
685
  end
359
686
 
687
+ ##
688
+ # Update the TollfreeVerificationInstanceMetadata
689
+ # @param [String] business_name The name of the business or organization using the Tollfree number.
690
+ # @param [String] business_website The website of the business or organization using the Tollfree number.
691
+ # @param [String] notification_email The email address to receive the notification about the verification result. .
692
+ # @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many are applicable..
693
+ # @param [String] use_case_summary Use this to further explain how messaging is used by the business or organization.
694
+ # @param [String] production_message_sample An example of message content, i.e. a sample message.
695
+ # @param [Array[String]] opt_in_image_urls Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
696
+ # @param [OptInType] opt_in_type
697
+ # @param [String] message_volume Estimate monthly volume of messages from the Tollfree Number.
698
+ # @param [String] business_street_address The address of the business or organization using the Tollfree number.
699
+ # @param [String] business_street_address2 The address of the business or organization using the Tollfree number.
700
+ # @param [String] business_city The city of the business or organization using the Tollfree number.
701
+ # @param [String] business_state_province_region The state/province/region of the business or organization using the Tollfree number.
702
+ # @param [String] business_postal_code The postal code of the business or organization using the Tollfree number.
703
+ # @param [String] business_country The country of the business or organization using the Tollfree number.
704
+ # @param [String] additional_information Additional information to be provided for verification.
705
+ # @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number.
706
+ # @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
707
+ # @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
708
+ # @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
709
+ # @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
710
+ # @param [String] business_registration_number A legaly recognized business registration number
711
+ # @param [String] business_registration_authority The organizational authority for business registrations
712
+ # @param [String] business_registration_country Country business is registered in
713
+ # @param [String] business_type The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT
714
+ # @param [String] business_registration_phone_number The E.164 formatted number associated with the business.
715
+ # @param [String] doing_business_as Trade name, sub entity, or downstream business name of business being submitted for verification
716
+ # @param [String] opt_in_confirmation_message The confirmation message sent to users when they opt in to receive messages.
717
+ # @param [String] help_message_sample A sample help message provided to users.
718
+ # @param [String] privacy_policy_url The URL to the privacy policy for the business or organization.
719
+ # @param [String] terms_and_conditions_url The URL to the terms and conditions for the business or organization.
720
+ # @param [Boolean] age_gated_content Indicates if the content is age gated.
721
+ # @param [Array[String]] opt_in_keywords List of keywords that users can text in to opt in to receive messages.
722
+ # @param [VettingProvider] vetting_provider
723
+ # @param [String] vetting_id The unique ID of the vetting
724
+ # @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance
725
+ def update_with_metadata(
726
+ business_name: :unset,
727
+ business_website: :unset,
728
+ notification_email: :unset,
729
+ use_case_categories: :unset,
730
+ use_case_summary: :unset,
731
+ production_message_sample: :unset,
732
+ opt_in_image_urls: :unset,
733
+ opt_in_type: :unset,
734
+ message_volume: :unset,
735
+ business_street_address: :unset,
736
+ business_street_address2: :unset,
737
+ business_city: :unset,
738
+ business_state_province_region: :unset,
739
+ business_postal_code: :unset,
740
+ business_country: :unset,
741
+ additional_information: :unset,
742
+ business_contact_first_name: :unset,
743
+ business_contact_last_name: :unset,
744
+ business_contact_email: :unset,
745
+ business_contact_phone: :unset,
746
+ edit_reason: :unset,
747
+ business_registration_number: :unset,
748
+ business_registration_authority: :unset,
749
+ business_registration_country: :unset,
750
+ business_type: :unset,
751
+ business_registration_phone_number: :unset,
752
+ doing_business_as: :unset,
753
+ opt_in_confirmation_message: :unset,
754
+ help_message_sample: :unset,
755
+ privacy_policy_url: :unset,
756
+ terms_and_conditions_url: :unset,
757
+ age_gated_content: :unset,
758
+ opt_in_keywords: :unset,
759
+ vetting_provider: :unset,
760
+ vetting_id: :unset
761
+ )
762
+
763
+ data = Twilio::Values.of({
764
+ 'BusinessName' => business_name,
765
+ 'BusinessWebsite' => business_website,
766
+ 'NotificationEmail' => notification_email,
767
+ 'UseCaseCategories' => Twilio.serialize_list(use_case_categories) { |e| e },
768
+ 'UseCaseSummary' => use_case_summary,
769
+ 'ProductionMessageSample' => production_message_sample,
770
+ 'OptInImageUrls' => Twilio.serialize_list(opt_in_image_urls) { |e| e },
771
+ 'OptInType' => opt_in_type,
772
+ 'MessageVolume' => message_volume,
773
+ 'BusinessStreetAddress' => business_street_address,
774
+ 'BusinessStreetAddress2' => business_street_address2,
775
+ 'BusinessCity' => business_city,
776
+ 'BusinessStateProvinceRegion' => business_state_province_region,
777
+ 'BusinessPostalCode' => business_postal_code,
778
+ 'BusinessCountry' => business_country,
779
+ 'AdditionalInformation' => additional_information,
780
+ 'BusinessContactFirstName' => business_contact_first_name,
781
+ 'BusinessContactLastName' => business_contact_last_name,
782
+ 'BusinessContactEmail' => business_contact_email,
783
+ 'BusinessContactPhone' => business_contact_phone,
784
+ 'EditReason' => edit_reason,
785
+ 'BusinessRegistrationNumber' => business_registration_number,
786
+ 'BusinessRegistrationAuthority' => business_registration_authority,
787
+ 'BusinessRegistrationCountry' => business_registration_country,
788
+ 'BusinessType' => business_type,
789
+ 'BusinessRegistrationPhoneNumber' => business_registration_phone_number,
790
+ 'DoingBusinessAs' => doing_business_as,
791
+ 'OptInConfirmationMessage' => opt_in_confirmation_message,
792
+ 'HelpMessageSample' => help_message_sample,
793
+ 'PrivacyPolicyUrl' => privacy_policy_url,
794
+ 'TermsAndConditionsUrl' => terms_and_conditions_url,
795
+ 'AgeGatedContent' => age_gated_content,
796
+ 'OptInKeywords' => Twilio.serialize_list(opt_in_keywords) { |e| e },
797
+ 'VettingProvider' => vetting_provider,
798
+ 'VettingId' => vetting_id,
799
+ })
800
+
801
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
802
+
803
+
804
+
805
+
806
+
807
+ response = @version.update_with_metadata('POST', @uri, data: data, headers: headers)
808
+ tollfree_verification_instance = TollfreeVerificationInstance.new(
809
+ @version,
810
+ response.body,
811
+ sid: @solution[:sid],
812
+ )
813
+ TollfreeVerificationInstanceMetadata.new(
814
+ @version,
815
+ tollfree_verification_instance,
816
+ response.headers,
817
+ response.status_code
818
+ )
819
+ end
820
+
360
821
 
361
822
  ##
362
823
  # Provide a user friendly representation
@@ -373,6 +834,53 @@ module Twilio
373
834
  end
374
835
  end
375
836
 
837
+ class TollfreeVerificationInstanceMetadata < InstanceResourceMetadata
838
+ ##
839
+ # Initializes a new TollfreeVerificationInstanceMetadata.
840
+ # @param [Version] version Version that contains the resource
841
+ # @param [}TollfreeVerificationInstance] tollfree_verification_instance The instance associated with the metadata.
842
+ # @param [Hash] headers Header object with response headers.
843
+ # @param [Integer] status_code The HTTP status code of the response.
844
+ # @return [TollfreeVerificationInstanceMetadata] The initialized instance with metadata.
845
+ def initialize(version, tollfree_verification_instance, headers, status_code)
846
+ super(version, headers, status_code)
847
+ @tollfree_verification_instance = tollfree_verification_instance
848
+ end
849
+
850
+ def tollfree_verification
851
+ @tollfree_verification_instance
852
+ end
853
+
854
+ def headers
855
+ @headers
856
+ end
857
+
858
+ def status_code
859
+ @status_code
860
+ end
861
+
862
+ def to_s
863
+ "<Twilio.Api.V2010.TollfreeVerificationInstanceMetadata status=#{@status_code}>"
864
+ end
865
+ end
866
+
867
+ class TollfreeVerificationListResponse < InstanceListResource
868
+ # @param [Array<TollfreeVerificationInstance>] instance
869
+ # @param [Hash{String => Object}] headers
870
+ # @param [Integer] status_code
871
+ def initialize(version, payload, key)
872
+ @tollfree_verification_instance = payload.body[key].map do |data|
873
+ TollfreeVerificationInstance.new(version, data)
874
+ end
875
+ @headers = payload.headers
876
+ @status_code = payload.status_code
877
+ end
878
+
879
+ def tollfree_verification_instance
880
+ @instance
881
+ end
882
+ end
883
+
376
884
  class TollfreeVerificationPage < Page
377
885
  ##
378
886
  # Initialize the TollfreeVerificationPage
@@ -382,6 +890,7 @@ module Twilio
382
890
  # @return [TollfreeVerificationPage] TollfreeVerificationPage
383
891
  def initialize(version, response, solution)
384
892
  super(version, response)
893
+
385
894
 
386
895
  # Path Solution
387
896
  @solution = solution
@@ -401,6 +910,66 @@ module Twilio
401
910
  '<Twilio.Messaging.V1.TollfreeVerificationPage>'
402
911
  end
403
912
  end
913
+
914
+ class TollfreeVerificationPageMetadata < PageMetadata
915
+ attr_reader :tollfree_verification_page
916
+
917
+ def initialize(version, response, solution, limit)
918
+ super(version, response)
919
+ @tollfree_verification_page = []
920
+ @limit = limit
921
+ key = get_key(response.body)
922
+ records = 0
923
+ while( limit != :unset && records < limit )
924
+ @tollfree_verification_page << TollfreeVerificationListResponse.new(version, @payload, key, limit - records)
925
+ @payload = self.next_page
926
+ break unless @payload
927
+ records += @payload.body[key].size
928
+ end
929
+ # Path Solution
930
+ @solution = solution
931
+ end
932
+
933
+ def each
934
+ @tollfree_verification_page.each do |record|
935
+ yield record
936
+ end
937
+ end
938
+
939
+ def to_s
940
+ '<Twilio::REST::Messaging::V1PageMetadata>';
941
+ end
942
+ end
943
+ class TollfreeVerificationListResponse < InstanceListResource
944
+
945
+ # @param [Array<TollfreeVerificationInstance>] instance
946
+ # @param [Hash{String => Object}] headers
947
+ # @param [Integer] status_code
948
+ def initialize(version, payload, key, limit = :unset)
949
+ data_list = payload.body[key]
950
+ if limit != :unset
951
+ data_list = data_list[0, limit]
952
+ end
953
+ @tollfree_verification = data_list.map do |data|
954
+ TollfreeVerificationInstance.new(version, data)
955
+ end
956
+ @headers = payload.headers
957
+ @status_code = payload.status_code
958
+ end
959
+
960
+ def tollfree_verification
961
+ @tollfree_verification
962
+ end
963
+
964
+ def headers
965
+ @headers
966
+ end
967
+
968
+ def status_code
969
+ @status_code
970
+ end
971
+ end
972
+
404
973
  class TollfreeVerificationInstance < InstanceResource
405
974
  ##
406
975
  # Initialize the TollfreeVerificationInstance
@@ -414,6 +983,7 @@ module Twilio
414
983
  def initialize(version, payload , sid: nil)
415
984
  super(version)
416
985
 
986
+
417
987
  # Marshaled Properties
418
988
  @properties = {
419
989
  'sid' => payload['sid'],
@@ -444,15 +1014,31 @@ module Twilio
444
1014
  'message_volume' => payload['message_volume'],
445
1015
  'additional_information' => payload['additional_information'],
446
1016
  'tollfree_phone_number_sid' => payload['tollfree_phone_number_sid'],
1017
+ 'tollfree_phone_number' => payload['tollfree_phone_number'],
447
1018
  'status' => payload['status'],
448
1019
  'url' => payload['url'],
449
1020
  'rejection_reason' => payload['rejection_reason'],
450
1021
  'error_code' => payload['error_code'] == nil ? payload['error_code'] : payload['error_code'].to_i,
451
1022
  'edit_expiration' => Twilio.deserialize_iso8601_datetime(payload['edit_expiration']),
452
1023
  'edit_allowed' => payload['edit_allowed'],
1024
+ 'business_registration_number' => payload['business_registration_number'],
1025
+ 'business_registration_authority' => payload['business_registration_authority'],
1026
+ 'business_registration_country' => payload['business_registration_country'],
1027
+ 'business_type' => payload['business_type'],
1028
+ 'business_registration_phone_number' => payload['business_registration_phone_number'],
1029
+ 'doing_business_as' => payload['doing_business_as'],
1030
+ 'opt_in_confirmation_message' => payload['opt_in_confirmation_message'],
1031
+ 'help_message_sample' => payload['help_message_sample'],
1032
+ 'privacy_policy_url' => payload['privacy_policy_url'],
1033
+ 'terms_and_conditions_url' => payload['terms_and_conditions_url'],
1034
+ 'age_gated_content' => payload['age_gated_content'],
1035
+ 'opt_in_keywords' => payload['opt_in_keywords'],
453
1036
  'rejection_reasons' => payload['rejection_reasons'],
454
1037
  'resource_links' => payload['resource_links'],
455
1038
  'external_reference_id' => payload['external_reference_id'],
1039
+ 'vetting_id' => payload['vetting_id'],
1040
+ 'vetting_provider' => payload['vetting_provider'],
1041
+ 'vetting_id_expiration' => Twilio.deserialize_iso8601_datetime(payload['vetting_id_expiration']),
456
1042
  }
457
1043
 
458
1044
  # Context
@@ -639,6 +1225,12 @@ module Twilio
639
1225
  @properties['tollfree_phone_number_sid']
640
1226
  end
641
1227
 
1228
+ ##
1229
+ # @return [String] The E.164 formatted toll-free phone number associated with the verification.
1230
+ def tollfree_phone_number
1231
+ @properties['tollfree_phone_number']
1232
+ end
1233
+
642
1234
  ##
643
1235
  # @return [Status]
644
1236
  def status
@@ -675,6 +1267,78 @@ module Twilio
675
1267
  @properties['edit_allowed']
676
1268
  end
677
1269
 
1270
+ ##
1271
+ # @return [String] A legally recognized business registration number
1272
+ def business_registration_number
1273
+ @properties['business_registration_number']
1274
+ end
1275
+
1276
+ ##
1277
+ # @return [String] The organizational authority for business registrations
1278
+ def business_registration_authority
1279
+ @properties['business_registration_authority']
1280
+ end
1281
+
1282
+ ##
1283
+ # @return [String] Country business is registered in
1284
+ def business_registration_country
1285
+ @properties['business_registration_country']
1286
+ end
1287
+
1288
+ ##
1289
+ # @return [String] The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT
1290
+ def business_type
1291
+ @properties['business_type']
1292
+ end
1293
+
1294
+ ##
1295
+ # @return [String] The E.164 formatted number associated with the business.
1296
+ def business_registration_phone_number
1297
+ @properties['business_registration_phone_number']
1298
+ end
1299
+
1300
+ ##
1301
+ # @return [String] Trade name, sub entity, or downstream business name of business being submitted for verification
1302
+ def doing_business_as
1303
+ @properties['doing_business_as']
1304
+ end
1305
+
1306
+ ##
1307
+ # @return [String] The confirmation message sent to users when they opt in to receive messages.
1308
+ def opt_in_confirmation_message
1309
+ @properties['opt_in_confirmation_message']
1310
+ end
1311
+
1312
+ ##
1313
+ # @return [String] A sample help message provided to users.
1314
+ def help_message_sample
1315
+ @properties['help_message_sample']
1316
+ end
1317
+
1318
+ ##
1319
+ # @return [String] The URL to the privacy policy for the business or organization.
1320
+ def privacy_policy_url
1321
+ @properties['privacy_policy_url']
1322
+ end
1323
+
1324
+ ##
1325
+ # @return [String] The URL of the terms and conditions for the business or organization.
1326
+ def terms_and_conditions_url
1327
+ @properties['terms_and_conditions_url']
1328
+ end
1329
+
1330
+ ##
1331
+ # @return [Boolean] Indicates if the content is age gated.
1332
+ def age_gated_content
1333
+ @properties['age_gated_content']
1334
+ end
1335
+
1336
+ ##
1337
+ # @return [Array<String>] List of keywords that users can send to opt in or out of messages.
1338
+ def opt_in_keywords
1339
+ @properties['opt_in_keywords']
1340
+ end
1341
+
678
1342
  ##
679
1343
  # @return [Array<Hash>] A list of rejection reasons and codes describing why a Tollfree Verification has been rejected.
680
1344
  def rejection_reasons
@@ -693,6 +1357,24 @@ module Twilio
693
1357
  @properties['external_reference_id']
694
1358
  end
695
1359
 
1360
+ ##
1361
+ # @return [String]
1362
+ def vetting_id
1363
+ @properties['vetting_id']
1364
+ end
1365
+
1366
+ ##
1367
+ # @return [VettingProvider]
1368
+ def vetting_provider
1369
+ @properties['vetting_provider']
1370
+ end
1371
+
1372
+ ##
1373
+ # @return [Time]
1374
+ def vetting_id_expiration
1375
+ @properties['vetting_id_expiration']
1376
+ end
1377
+
696
1378
  ##
697
1379
  # Delete the TollfreeVerificationInstance
698
1380
  # @return [Boolean] True if delete succeeds, false otherwise
@@ -732,6 +1414,20 @@ module Twilio
732
1414
  # @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
733
1415
  # @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
734
1416
  # @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
1417
+ # @param [String] business_registration_number A legaly recognized business registration number
1418
+ # @param [String] business_registration_authority The organizational authority for business registrations
1419
+ # @param [String] business_registration_country Country business is registered in
1420
+ # @param [String] business_type The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT
1421
+ # @param [String] business_registration_phone_number The E.164 formatted number associated with the business.
1422
+ # @param [String] doing_business_as Trade name, sub entity, or downstream business name of business being submitted for verification
1423
+ # @param [String] opt_in_confirmation_message The confirmation message sent to users when they opt in to receive messages.
1424
+ # @param [String] help_message_sample A sample help message provided to users.
1425
+ # @param [String] privacy_policy_url The URL to the privacy policy for the business or organization.
1426
+ # @param [String] terms_and_conditions_url The URL to the terms and conditions for the business or organization.
1427
+ # @param [Boolean] age_gated_content Indicates if the content is age gated.
1428
+ # @param [Array[String]] opt_in_keywords List of keywords that users can text in to opt in to receive messages.
1429
+ # @param [VettingProvider] vetting_provider
1430
+ # @param [String] vetting_id The unique ID of the vetting
735
1431
  # @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance
736
1432
  def update(
737
1433
  business_name: :unset,
@@ -754,7 +1450,21 @@ module Twilio
754
1450
  business_contact_last_name: :unset,
755
1451
  business_contact_email: :unset,
756
1452
  business_contact_phone: :unset,
757
- edit_reason: :unset
1453
+ edit_reason: :unset,
1454
+ business_registration_number: :unset,
1455
+ business_registration_authority: :unset,
1456
+ business_registration_country: :unset,
1457
+ business_type: :unset,
1458
+ business_registration_phone_number: :unset,
1459
+ doing_business_as: :unset,
1460
+ opt_in_confirmation_message: :unset,
1461
+ help_message_sample: :unset,
1462
+ privacy_policy_url: :unset,
1463
+ terms_and_conditions_url: :unset,
1464
+ age_gated_content: :unset,
1465
+ opt_in_keywords: :unset,
1466
+ vetting_provider: :unset,
1467
+ vetting_id: :unset
758
1468
  )
759
1469
 
760
1470
  context.update(
@@ -779,6 +1489,20 @@ module Twilio
779
1489
  business_contact_email: business_contact_email,
780
1490
  business_contact_phone: business_contact_phone,
781
1491
  edit_reason: edit_reason,
1492
+ business_registration_number: business_registration_number,
1493
+ business_registration_authority: business_registration_authority,
1494
+ business_registration_country: business_registration_country,
1495
+ business_type: business_type,
1496
+ business_registration_phone_number: business_registration_phone_number,
1497
+ doing_business_as: doing_business_as,
1498
+ opt_in_confirmation_message: opt_in_confirmation_message,
1499
+ help_message_sample: help_message_sample,
1500
+ privacy_policy_url: privacy_policy_url,
1501
+ terms_and_conditions_url: terms_and_conditions_url,
1502
+ age_gated_content: age_gated_content,
1503
+ opt_in_keywords: opt_in_keywords,
1504
+ vetting_provider: vetting_provider,
1505
+ vetting_id: vetting_id,
782
1506
  )
783
1507
  end
784
1508