twilio-ruby 7.10.7 → 7.11.2

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 (298) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test-and-deploy.yml +43 -67
  3. data/.gitignore +0 -1
  4. data/CHANGES.md +267 -0
  5. data/Gemfile +2 -0
  6. data/Gemfile.lock +154 -0
  7. data/README.md +3 -3
  8. data/Rakefile +1 -1
  9. data/lib/rack/twilio_webhook_authentication.rb +45 -2
  10. data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +25 -65
  11. data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +0 -59
  12. data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +0 -59
  13. data/lib/twilio-ruby/rest/accounts/v1/credential.rb +0 -59
  14. data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +0 -59
  15. data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +0 -59
  16. data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +48 -71
  17. data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +0 -59
  18. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -59
  19. data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +0 -59
  20. data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +0 -59
  21. data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +0 -59
  22. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +0 -59
  23. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +0 -59
  24. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +6 -0
  25. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +56 -2
  26. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +0 -59
  27. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +6 -0
  28. data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +0 -59
  29. data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +0 -59
  30. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +0 -59
  31. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +0 -59
  32. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +0 -59
  33. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +0 -59
  34. data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +0 -59
  35. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +0 -59
  36. data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +0 -59
  37. data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +0 -59
  38. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +0 -59
  39. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +0 -59
  40. data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +0 -59
  41. data/lib/twilio-ruby/rest/chat/v3/channel.rb +0 -59
  42. data/lib/twilio-ruby/rest/client.rb +0 -5
  43. data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +11 -60
  44. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +0 -59
  45. data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +0 -59
  46. data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +0 -59
  47. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -10
  48. data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +0 -59
  49. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +0 -59
  50. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +0 -59
  51. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +0 -59
  52. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +10 -10
  53. data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +0 -59
  54. data/lib/twilio-ruby/rest/conversations/v2/action.rb +2 -61
  55. data/lib/twilio-ruby/rest/conversations/v2/communication.rb +43 -21
  56. data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +584 -21
  57. data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +28 -28
  58. data/lib/twilio-ruby/rest/conversations/v2/operation.rb +10 -69
  59. data/lib/twilio-ruby/rest/conversations/v2/participant.rb +58 -58
  60. data/lib/twilio-ruby/rest/conversations/v2.rb +55 -49
  61. data/lib/twilio-ruby/rest/events/v1/schema.rb +0 -59
  62. data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +0 -59
  63. data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +0 -59
  64. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +12 -14
  65. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +0 -59
  66. data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +12 -14
  67. data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +12 -14
  68. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +12 -14
  69. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +2 -4
  70. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +12 -14
  71. data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +12 -14
  72. data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -59
  73. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +0 -59
  74. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +0 -59
  75. data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -59
  76. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +0 -59
  77. data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +0 -59
  78. data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +2 -4
  79. data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +2 -4
  80. data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +0 -59
  81. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +2 -4
  82. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +2 -4
  83. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +0 -59
  84. data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +2 -4
  85. data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +0 -59
  86. data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -59
  87. data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +0 -59
  88. data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +0 -59
  89. data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -59
  90. data/lib/twilio-ruby/rest/iam/v1/api_key.rb +0 -59
  91. data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +2 -61
  92. data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +15 -61
  93. data/lib/twilio-ruby/rest/iam/v1/token.rb +0 -59
  94. data/lib/twilio-ruby/rest/iam_base.rb +6 -1
  95. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -59
  96. data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +7 -59
  97. data/lib/twilio-ruby/rest/insights/v1/call/event.rb +7 -0
  98. data/lib/twilio-ruby/rest/insights/v1/call.rb +0 -59
  99. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +7 -0
  100. data/lib/twilio-ruby/rest/insights/v1/setting.rb +0 -59
  101. data/lib/twilio-ruby/rest/insights/v2/inbound.rb +2 -261
  102. data/lib/twilio-ruby/rest/insights/v2/inbound_report.rb +258 -0
  103. data/lib/twilio-ruby/rest/insights/v2/outbound.rb +18 -299
  104. data/lib/twilio-ruby/rest/insights/v2/outbound_report.rb +258 -0
  105. data/lib/twilio-ruby/rest/insights/v2/report.rb +27 -184
  106. data/lib/twilio-ruby/rest/insights/v2.rb +14 -4
  107. data/lib/twilio-ruby/rest/insights/v3/metadata.rb +1 -60
  108. data/lib/twilio-ruby/rest/insights/v3/query.rb +1 -60
  109. data/lib/twilio-ruby/rest/insights/v3/query_job.rb +654 -0
  110. data/lib/twilio-ruby/rest/insights/v3/result.rb +195 -0
  111. data/lib/twilio-ruby/rest/insights/v3.rb +17 -1
  112. data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +0 -59
  113. data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +0 -59
  114. data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +0 -59
  115. data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +0 -59
  116. data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -59
  117. data/lib/twilio-ruby/rest/intelligence/v3/conversation.rb +8 -8
  118. data/lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb +443 -0
  119. data/lib/twilio-ruby/rest/intelligence/v3.rb +6 -0
  120. data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -59
  121. data/lib/twilio-ruby/rest/knowledge/v2/chunk.rb +28 -0
  122. data/lib/twilio-ruby/rest/knowledge/v2/knowledge.rb +38 -0
  123. data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +0 -59
  124. data/lib/twilio-ruby/rest/knowledge/v2/search.rb +8 -176
  125. data/lib/twilio-ruby/rest/knowledge/v2.rb +1 -2
  126. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +0 -59
  127. data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +0 -59
  128. data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +0 -59
  129. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +0 -59
  130. data/lib/twilio-ruby/rest/lookups/v2/query.rb +0 -59
  131. data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +0 -59
  132. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +0 -59
  133. data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +0 -59
  134. data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +0 -59
  135. data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +0 -59
  136. data/lib/twilio-ruby/rest/memory/v1/bulk.rb +9 -177
  137. data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +15 -9
  138. data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +6 -12
  139. data/lib/twilio-ruby/rest/memory/v1/identifier.rb +1 -81
  140. data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +11 -191
  141. data/lib/twilio-ruby/rest/memory/v1/import.rb +28 -5
  142. data/lib/twilio-ruby/rest/memory/v1/lookup.rb +1 -60
  143. data/lib/twilio-ruby/rest/memory/v1/observation.rb +72 -22
  144. data/lib/twilio-ruby/rest/memory/v1/operation.rb +1 -60
  145. data/lib/twilio-ruby/rest/memory/v1/profile.rb +2 -2
  146. data/lib/twilio-ruby/rest/memory/v1/recall.rb +1 -60
  147. data/lib/twilio-ruby/rest/memory/v1/revision.rb +3 -5
  148. data/lib/twilio-ruby/rest/memory/v1/store.rb +1 -1
  149. data/lib/twilio-ruby/rest/memory/v1/trait.rb +1 -1
  150. data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +56 -6
  151. data/lib/twilio-ruby/rest/memory/v1.rb +3 -46
  152. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +0 -59
  153. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -18
  154. data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +0 -59
  155. data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -59
  156. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -59
  157. data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -59
  158. data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +0 -59
  159. data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +0 -59
  160. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -59
  161. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -59
  162. data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +0 -59
  163. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +2 -4
  164. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +0 -59
  165. data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +0 -59
  166. data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +23 -4
  167. data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +0 -59
  168. data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +0 -59
  169. data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +4 -63
  170. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +0 -59
  171. data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +0 -59
  172. data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +0 -59
  173. data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +0 -59
  174. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +0 -59
  175. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +0 -59
  176. data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -59
  177. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +0 -59
  178. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +0 -59
  179. data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +0 -59
  180. data/lib/twilio-ruby/rest/numbers/v1/sms_verification.rb +172 -0
  181. data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +179 -0
  182. data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +186 -0
  183. data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +165 -0
  184. data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +0 -59
  185. data/lib/twilio-ruby/rest/numbers/v1.rb +24 -0
  186. data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +0 -59
  187. data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +0 -59
  188. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +0 -59
  189. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +0 -59
  190. data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +0 -59
  191. data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +0 -59
  192. data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -59
  193. data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +14 -61
  194. data/lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb +200 -0
  195. data/lib/twilio-ruby/rest/oauth/v2/token.rb +10 -63
  196. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -59
  197. data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +0 -59
  198. data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +0 -59
  199. data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +0 -78
  200. data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +0 -59
  201. data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +0 -59
  202. data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +0 -59
  203. data/lib/twilio-ruby/rest/pricing/v1/voice.rb +0 -59
  204. data/lib/twilio-ruby/rest/pricing/v2/number.rb +0 -59
  205. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +0 -59
  206. data/lib/twilio-ruby/rest/pricing/v2/voice.rb +0 -59
  207. data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +0 -59
  208. data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +0 -59
  209. data/lib/twilio-ruby/rest/routes/v2/trunk.rb +0 -59
  210. data/lib/twilio-ruby/rest/routes/v3/phone_number.rb +406 -0
  211. data/lib/twilio-ruby/rest/routes/v3.rb +50 -0
  212. data/lib/twilio-ruby/rest/routes_base.rb +6 -1
  213. data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -59
  214. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -59
  215. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +0 -59
  216. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +0 -59
  217. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +0 -59
  218. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +0 -59
  219. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -59
  220. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -59
  221. data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +0 -59
  222. data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +0 -59
  223. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +0 -59
  224. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +0 -59
  225. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +0 -59
  226. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +0 -59
  227. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +0 -59
  228. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +0 -59
  229. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +0 -59
  230. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +0 -59
  231. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +0 -59
  232. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +0 -59
  233. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +0 -59
  234. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +0 -59
  235. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +0 -59
  236. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +0 -59
  237. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +0 -59
  238. data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +0 -59
  239. data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration.rb +271 -0
  240. data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration_embedded_session.rb +174 -0
  241. data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration.rb +262 -0
  242. data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration_embedded_session.rb +174 -0
  243. data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +0 -59
  244. data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +0 -59
  245. data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +0 -59
  246. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles_provisional_copy.rb +386 -0
  247. data/lib/twilio-ruby/rest/trusthub/v1/trust_products_provisional_copy.rb +386 -0
  248. data/lib/twilio-ruby/rest/trusthub/v1.rb +74 -0
  249. data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -59
  250. data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -59
  251. data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +0 -59
  252. data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +0 -59
  253. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +0 -59
  254. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -59
  255. data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +3 -62
  256. data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +0 -59
  257. data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +0 -59
  258. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +8 -61
  259. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +0 -59
  260. data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +0 -59
  261. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +0 -59
  262. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +0 -59
  263. data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +0 -59
  264. data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +0 -59
  265. data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +0 -59
  266. data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -59
  267. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +0 -59
  268. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -59
  269. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +0 -59
  270. data/lib/twilio-ruby/rest/voice/v2/account_default_configuration.rb +497 -0
  271. data/lib/twilio-ruby/rest/voice/v2/configuration/default.rb +297 -0
  272. data/lib/twilio-ruby/rest/voice/v2/configuration.rb +353 -0
  273. data/lib/twilio-ruby/rest/voice/v2/recording.rb +557 -0
  274. data/lib/twilio-ruby/rest/voice/v2/transcription.rb +532 -0
  275. data/lib/twilio-ruby/rest/voice/v2/type.rb +459 -0
  276. data/lib/twilio-ruby/rest/voice/v2.rb +141 -0
  277. data/lib/twilio-ruby/rest/voice/v3/transcription.rb +259 -50
  278. data/lib/twilio-ruby/rest/voice_base.rb +5 -0
  279. data/lib/twilio-ruby/twiml/voice_response.rb +6 -68
  280. data/lib/twilio-ruby/version.rb +1 -1
  281. data/twilio-ruby.gemspec +1 -1
  282. metadata +36 -22
  283. data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +0 -558
  284. data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +0 -558
  285. data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +0 -431
  286. data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +0 -296
  287. data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +0 -927
  288. data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +0 -325
  289. data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +0 -349
  290. data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +0 -871
  291. data/lib/twilio-ruby/rest/assistants/v1/policy.rb +0 -364
  292. data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +0 -360
  293. data/lib/twilio-ruby/rest/assistants/v1/session.rb +0 -501
  294. data/lib/twilio-ruby/rest/assistants/v1/tool.rb +0 -847
  295. data/lib/twilio-ruby/rest/assistants/v1.rb +0 -104
  296. data/lib/twilio-ruby/rest/assistants.rb +0 -6
  297. data/lib/twilio-ruby/rest/assistants_base.rb +0 -38
  298. data/lib/twilio-ruby/rest/memory/v1/event.rb +0 -320
@@ -63,6 +63,7 @@ module Twilio
63
63
  # @param [String] async_amd Select whether to perform answering machine detection in the background. Default, blocks the execution of the call until Answering Machine Detection is completed. Can be: `true` or `false`.
64
64
  # @param [String] async_amd_status_callback The URL that we should call using the `async_amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax.
65
65
  # @param [String] async_amd_status_callback_method The HTTP method we should use when calling the `async_amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
66
+ # @param [String] passports The STIR/SHAKEN passport for this call, provided as a base64 encoded string. Multiple passports (at max 5) are comma separated and provided as base64 encoded string
66
67
  # @param [String] byoc The SID of a BYOC (Bring Your Own Carrier) trunk to route this call with. Note that `byoc` is only meaningful when `to` is a phone number; it will otherwise be ignored. (Beta)
67
68
  # @param [String] call_reason The Reason for the outgoing call. Use it to specify the purpose of the call that is presented on the called party's phone. (Branded Calls Beta)
68
69
  # @param [String] call_token A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
@@ -102,6 +103,7 @@ module Twilio
102
103
  async_amd: :unset,
103
104
  async_amd_status_callback: :unset,
104
105
  async_amd_status_callback_method: :unset,
106
+ passports: :unset,
105
107
  byoc: :unset,
106
108
  call_reason: :unset,
107
109
  call_token: :unset,
@@ -142,6 +144,7 @@ module Twilio
142
144
  'AsyncAmd' => async_amd,
143
145
  'AsyncAmdStatusCallback' => async_amd_status_callback,
144
146
  'AsyncAmdStatusCallbackMethod' => async_amd_status_callback_method,
147
+ 'Passports' => passports,
145
148
  'Byoc' => byoc,
146
149
  'CallReason' => call_reason,
147
150
  'CallToken' => call_token,
@@ -197,6 +200,7 @@ module Twilio
197
200
  # @param [String] async_amd Select whether to perform answering machine detection in the background. Default, blocks the execution of the call until Answering Machine Detection is completed. Can be: `true` or `false`.
198
201
  # @param [String] async_amd_status_callback The URL that we should call using the `async_amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax.
199
202
  # @param [String] async_amd_status_callback_method The HTTP method we should use when calling the `async_amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
203
+ # @param [String] passports The STIR/SHAKEN passport for this call, provided as a base64 encoded string. Multiple passports (at max 5) are comma separated and provided as base64 encoded string
200
204
  # @param [String] byoc The SID of a BYOC (Bring Your Own Carrier) trunk to route this call with. Note that `byoc` is only meaningful when `to` is a phone number; it will otherwise be ignored. (Beta)
201
205
  # @param [String] call_reason The Reason for the outgoing call. Use it to specify the purpose of the call that is presented on the called party's phone. (Branded Calls Beta)
202
206
  # @param [String] call_token A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
@@ -236,6 +240,7 @@ module Twilio
236
240
  async_amd: :unset,
237
241
  async_amd_status_callback: :unset,
238
242
  async_amd_status_callback_method: :unset,
243
+ passports: :unset,
239
244
  byoc: :unset,
240
245
  call_reason: :unset,
241
246
  call_token: :unset,
@@ -276,6 +281,7 @@ module Twilio
276
281
  'AsyncAmd' => async_amd,
277
282
  'AsyncAmdStatusCallback' => async_amd_status_callback,
278
283
  'AsyncAmdStatusCallbackMethod' => async_amd_status_callback_method,
284
+ 'Passports' => passports,
279
285
  'Byoc' => byoc,
280
286
  'CallReason' => call_reason,
281
287
  'CallToken' => call_token,
@@ -85,8 +85,17 @@ module Twilio
85
85
  # @param [String] amd_status_callback_method The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
86
86
  # @param [String] trim Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
87
87
  # @param [String] call_token A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
88
+ # @param [String] passports The STIR/SHAKEN passport for this call, provided as a base64 encoded string. Multiple passports (at max 5) are comma separated and provided as base64 encoded string
88
89
  # @param [String] client_notification_url The URL that we should use to deliver `push call notification`.
89
90
  # @param [String] caller_display_name The name that populates the display name in the From header. Must be between 2 and 255 characters. Only applicable for calls to sip address.
91
+ # @param [String] emergency_caller_position The emergency caller's GPS coordinates in decimal degrees format. Format: \\\"latitude longitude\\\" (space-separated) - Latitude: decimal degrees, range -90.0 to +90.0 (negative for South, positive for North) - Longitude: decimal degrees, range -180.0 to +180.0 (negative for West, positive for East) - Precision: up to 6 decimal places recommended for meter-level accuracy Note: If the value exceeds 150 characters, only the first 150 characters will be used.
92
+ # @param [String] emergency_caller_location The emergency caller's physical location description within a building or facility. Note: If the value exceeds 20 characters, only the first 20 characters will be used.
93
+ # @param [String] emergency_name The emergency caller's organization or entity name. Note: If the value exceeds 20 characters, only the first 20 characters will be used.
94
+ # @param [String] emergency_address The emergency caller's street address including street number and street name. Note: If the value exceeds 60 characters, only the first 60 characters will be used.
95
+ # @param [String] emergency_zip_code The emergency caller's postal code or ZIP code. Note: If the value exceeds 20 characters, only the first 20 characters will be used.
96
+ # @param [String] emergency_city The emergency caller's city or municipality name. Should be the official city name as recognized by local authorities. Used in combination with state and country for emergency call routing. Note: If the value exceeds 20 characters, only the first 20 characters will be used.
97
+ # @param [String] emergency_state The emergency caller's state or province. Note: If the value exceeds 20 characters, only the first 20 characters will be used.
98
+ # @param [String] emergency_country The emergency caller's country. Currently supported US and CA only. Note: If the value exceeds 20 characters, only the first 20 characters will be used.
90
99
  # @return [ParticipantInstance] Created ParticipantInstance
91
100
  def create(
92
101
  from: nil,
@@ -138,8 +147,17 @@ module Twilio
138
147
  amd_status_callback_method: :unset,
139
148
  trim: :unset,
140
149
  call_token: :unset,
150
+ passports: :unset,
141
151
  client_notification_url: :unset,
142
- caller_display_name: :unset
152
+ caller_display_name: :unset,
153
+ emergency_caller_position: :unset,
154
+ emergency_caller_location: :unset,
155
+ emergency_name: :unset,
156
+ emergency_address: :unset,
157
+ emergency_zip_code: :unset,
158
+ emergency_city: :unset,
159
+ emergency_state: :unset,
160
+ emergency_country: :unset
143
161
  )
144
162
 
145
163
  data = Twilio::Values.of({
@@ -192,8 +210,17 @@ module Twilio
192
210
  'AmdStatusCallbackMethod' => amd_status_callback_method,
193
211
  'Trim' => trim,
194
212
  'CallToken' => call_token,
213
+ 'Passports' => passports,
195
214
  'ClientNotificationUrl' => client_notification_url,
196
215
  'CallerDisplayName' => caller_display_name,
216
+ 'EmergencyCallerPosition' => emergency_caller_position,
217
+ 'EmergencyCallerLocation' => emergency_caller_location,
218
+ 'EmergencyName' => emergency_name,
219
+ 'EmergencyAddress' => emergency_address,
220
+ 'EmergencyZipCode' => emergency_zip_code,
221
+ 'EmergencyCity' => emergency_city,
222
+ 'EmergencyState' => emergency_state,
223
+ 'EmergencyCountry' => emergency_country,
197
224
  })
198
225
 
199
226
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -262,8 +289,17 @@ module Twilio
262
289
  # @param [String] amd_status_callback_method The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
263
290
  # @param [String] trim Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
264
291
  # @param [String] call_token A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
292
+ # @param [String] passports The STIR/SHAKEN passport for this call, provided as a base64 encoded string. Multiple passports (at max 5) are comma separated and provided as base64 encoded string
265
293
  # @param [String] client_notification_url The URL that we should use to deliver `push call notification`.
266
294
  # @param [String] caller_display_name The name that populates the display name in the From header. Must be between 2 and 255 characters. Only applicable for calls to sip address.
295
+ # @param [String] emergency_caller_position The emergency caller's GPS coordinates in decimal degrees format. Format: \\\"latitude longitude\\\" (space-separated) - Latitude: decimal degrees, range -90.0 to +90.0 (negative for South, positive for North) - Longitude: decimal degrees, range -180.0 to +180.0 (negative for West, positive for East) - Precision: up to 6 decimal places recommended for meter-level accuracy Note: If the value exceeds 150 characters, only the first 150 characters will be used.
296
+ # @param [String] emergency_caller_location The emergency caller's physical location description within a building or facility. Note: If the value exceeds 20 characters, only the first 20 characters will be used.
297
+ # @param [String] emergency_name The emergency caller's organization or entity name. Note: If the value exceeds 20 characters, only the first 20 characters will be used.
298
+ # @param [String] emergency_address The emergency caller's street address including street number and street name. Note: If the value exceeds 60 characters, only the first 60 characters will be used.
299
+ # @param [String] emergency_zip_code The emergency caller's postal code or ZIP code. Note: If the value exceeds 20 characters, only the first 20 characters will be used.
300
+ # @param [String] emergency_city The emergency caller's city or municipality name. Should be the official city name as recognized by local authorities. Used in combination with state and country for emergency call routing. Note: If the value exceeds 20 characters, only the first 20 characters will be used.
301
+ # @param [String] emergency_state The emergency caller's state or province. Note: If the value exceeds 20 characters, only the first 20 characters will be used.
302
+ # @param [String] emergency_country The emergency caller's country. Currently supported US and CA only. Note: If the value exceeds 20 characters, only the first 20 characters will be used.
267
303
  # @return [ParticipantInstance] Created ParticipantInstance
268
304
  def create_with_metadata(
269
305
  from: nil,
@@ -315,8 +351,17 @@ module Twilio
315
351
  amd_status_callback_method: :unset,
316
352
  trim: :unset,
317
353
  call_token: :unset,
354
+ passports: :unset,
318
355
  client_notification_url: :unset,
319
- caller_display_name: :unset
356
+ caller_display_name: :unset,
357
+ emergency_caller_position: :unset,
358
+ emergency_caller_location: :unset,
359
+ emergency_name: :unset,
360
+ emergency_address: :unset,
361
+ emergency_zip_code: :unset,
362
+ emergency_city: :unset,
363
+ emergency_state: :unset,
364
+ emergency_country: :unset
320
365
  )
321
366
 
322
367
  data = Twilio::Values.of({
@@ -369,8 +414,17 @@ module Twilio
369
414
  'AmdStatusCallbackMethod' => amd_status_callback_method,
370
415
  'Trim' => trim,
371
416
  'CallToken' => call_token,
417
+ 'Passports' => passports,
372
418
  'ClientNotificationUrl' => client_notification_url,
373
419
  'CallerDisplayName' => caller_display_name,
420
+ 'EmergencyCallerPosition' => emergency_caller_position,
421
+ 'EmergencyCallerLocation' => emergency_caller_location,
422
+ 'EmergencyName' => emergency_name,
423
+ 'EmergencyAddress' => emergency_address,
424
+ 'EmergencyZipCode' => emergency_zip_code,
425
+ 'EmergencyCity' => emergency_city,
426
+ 'EmergencyState' => emergency_state,
427
+ 'EmergencyCountry' => emergency_country,
374
428
  })
375
429
 
376
430
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -133,65 +133,6 @@ module Twilio
133
133
  end
134
134
  end
135
135
 
136
- class FeedbackPageMetadata < PageMetadata
137
- attr_reader :feedback_page
138
-
139
- def initialize(version, response, solution, limit)
140
- super(version, response)
141
- @feedback_page = []
142
- @limit = limit
143
- key = get_key(response.body)
144
- records = 0
145
- while( limit != :unset && records < limit )
146
- @feedback_page << FeedbackListResponse.new(version, @payload, key, limit - records)
147
- @payload = self.next_page
148
- break unless @payload
149
- records += (@payload.body[key] || []).size
150
- end
151
- # Path Solution
152
- @solution = solution
153
- end
154
-
155
- def each
156
- @feedback_page.each do |record|
157
- yield record
158
- end
159
- end
160
-
161
- def to_s
162
- '<Twilio::REST::Api::V2010PageMetadata>';
163
- end
164
- end
165
- class FeedbackListResponse < InstanceListResource
166
-
167
- # @param [Array<FeedbackInstance>] instance
168
- # @param [Hash{String => Object}] headers
169
- # @param [Integer] status_code
170
- def initialize(version, payload, key, limit = :unset)
171
- data_list = payload.body[key] || []
172
- if limit != :unset
173
- data_list = data_list[0, limit]
174
- end
175
- @feedback = data_list.map do |data|
176
- FeedbackInstance.new(version, data)
177
- end
178
- @headers = payload.headers
179
- @status_code = payload.status_code
180
- end
181
-
182
- def feedback
183
- @feedback
184
- end
185
-
186
- def headers
187
- @headers
188
- end
189
-
190
- def status_code
191
- @status_code
192
- end
193
- end
194
-
195
136
  class FeedbackInstance < InstanceResource
196
137
  ##
197
138
  # Initialize the FeedbackInstance
@@ -53,6 +53,7 @@ module Twilio
53
53
  # @param [Time] send_at The time that Twilio will send the message. Must be in ISO 8601 format.
54
54
  # @param [Boolean] send_as_mms If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media.
55
55
  # @param [String] content_variables For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used.
56
+ # @param [String] message_intent
56
57
  # @param [RiskCheck] risk_check
57
58
  # @param [String] from The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
58
59
  # @param [String] fallback_from A fallback SMS sender to use when the recipient cannot be reached over RCS. This parameter may only be used when also providing a [Messaging Service](https://twilio.com/docs/messaging/services) containing an RCS sender. The fallback SMS sender must be either a Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), or [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), hosted within Twilio and belong to the Account creating the Message.
@@ -80,6 +81,7 @@ module Twilio
80
81
  send_at: :unset,
81
82
  send_as_mms: :unset,
82
83
  content_variables: :unset,
84
+ message_intent: :unset,
83
85
  risk_check: :unset,
84
86
  from: :unset,
85
87
  fallback_from: :unset,
@@ -108,6 +110,7 @@ module Twilio
108
110
  'SendAt' => Twilio.serialize_iso8601_datetime(send_at),
109
111
  'SendAsMms' => send_as_mms,
110
112
  'ContentVariables' => content_variables,
113
+ 'MessageIntent' => message_intent,
111
114
  'RiskCheck' => risk_check,
112
115
  'From' => from,
113
116
  'FallbackFrom' => fallback_from,
@@ -151,6 +154,7 @@ module Twilio
151
154
  # @param [Time] send_at The time that Twilio will send the message. Must be in ISO 8601 format.
152
155
  # @param [Boolean] send_as_mms If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media.
153
156
  # @param [String] content_variables For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used.
157
+ # @param [String] message_intent
154
158
  # @param [RiskCheck] risk_check
155
159
  # @param [String] from The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
156
160
  # @param [String] fallback_from A fallback SMS sender to use when the recipient cannot be reached over RCS. This parameter may only be used when also providing a [Messaging Service](https://twilio.com/docs/messaging/services) containing an RCS sender. The fallback SMS sender must be either a Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), or [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), hosted within Twilio and belong to the Account creating the Message.
@@ -178,6 +182,7 @@ module Twilio
178
182
  send_at: :unset,
179
183
  send_as_mms: :unset,
180
184
  content_variables: :unset,
185
+ message_intent: :unset,
181
186
  risk_check: :unset,
182
187
  from: :unset,
183
188
  fallback_from: :unset,
@@ -206,6 +211,7 @@ module Twilio
206
211
  'SendAt' => Twilio.serialize_iso8601_datetime(send_at),
207
212
  'SendAsMms' => send_as_mms,
208
213
  'ContentVariables' => content_variables,
214
+ 'MessageIntent' => message_intent,
209
215
  'RiskCheck' => risk_check,
210
216
  'From' => from,
211
217
  'FallbackFrom' => fallback_from,
@@ -130,65 +130,6 @@ module Twilio
130
130
  end
131
131
  end
132
132
 
133
- class NewKeyPageMetadata < PageMetadata
134
- attr_reader :new_key_page
135
-
136
- def initialize(version, response, solution, limit)
137
- super(version, response)
138
- @new_key_page = []
139
- @limit = limit
140
- key = get_key(response.body)
141
- records = 0
142
- while( limit != :unset && records < limit )
143
- @new_key_page << NewKeyListResponse.new(version, @payload, key, limit - records)
144
- @payload = self.next_page
145
- break unless @payload
146
- records += (@payload.body[key] || []).size
147
- end
148
- # Path Solution
149
- @solution = solution
150
- end
151
-
152
- def each
153
- @new_key_page.each do |record|
154
- yield record
155
- end
156
- end
157
-
158
- def to_s
159
- '<Twilio::REST::Api::V2010PageMetadata>';
160
- end
161
- end
162
- class NewKeyListResponse < InstanceListResource
163
-
164
- # @param [Array<NewKeyInstance>] instance
165
- # @param [Hash{String => Object}] headers
166
- # @param [Integer] status_code
167
- def initialize(version, payload, key, limit = :unset)
168
- data_list = payload.body[key] || []
169
- if limit != :unset
170
- data_list = data_list[0, limit]
171
- end
172
- @new_key = data_list.map do |data|
173
- NewKeyInstance.new(version, data)
174
- end
175
- @headers = payload.headers
176
- @status_code = payload.status_code
177
- end
178
-
179
- def new_key
180
- @new_key
181
- end
182
-
183
- def headers
184
- @headers
185
- end
186
-
187
- def status_code
188
- @status_code
189
- end
190
- end
191
-
192
133
  class NewKeyInstance < InstanceResource
193
134
  ##
194
135
  # Initialize the NewKeyInstance
@@ -130,65 +130,6 @@ module Twilio
130
130
  end
131
131
  end
132
132
 
133
- class NewSigningKeyPageMetadata < PageMetadata
134
- attr_reader :new_signing_key_page
135
-
136
- def initialize(version, response, solution, limit)
137
- super(version, response)
138
- @new_signing_key_page = []
139
- @limit = limit
140
- key = get_key(response.body)
141
- records = 0
142
- while( limit != :unset && records < limit )
143
- @new_signing_key_page << NewSigningKeyListResponse.new(version, @payload, key, limit - records)
144
- @payload = self.next_page
145
- break unless @payload
146
- records += (@payload.body[key] || []).size
147
- end
148
- # Path Solution
149
- @solution = solution
150
- end
151
-
152
- def each
153
- @new_signing_key_page.each do |record|
154
- yield record
155
- end
156
- end
157
-
158
- def to_s
159
- '<Twilio::REST::Api::V2010PageMetadata>';
160
- end
161
- end
162
- class NewSigningKeyListResponse < InstanceListResource
163
-
164
- # @param [Array<NewSigningKeyInstance>] instance
165
- # @param [Hash{String => Object}] headers
166
- # @param [Integer] status_code
167
- def initialize(version, payload, key, limit = :unset)
168
- data_list = payload.body[key] || []
169
- if limit != :unset
170
- data_list = data_list[0, limit]
171
- end
172
- @new_signing_key = data_list.map do |data|
173
- NewSigningKeyInstance.new(version, data)
174
- end
175
- @headers = payload.headers
176
- @status_code = payload.status_code
177
- end
178
-
179
- def new_signing_key
180
- @new_signing_key
181
- end
182
-
183
- def headers
184
- @headers
185
- end
186
-
187
- def status_code
188
- @status_code
189
- end
190
- end
191
-
192
133
  class NewSigningKeyInstance < InstanceResource
193
134
  ##
194
135
  # Initialize the NewSigningKeyInstance
@@ -208,65 +208,6 @@ module Twilio
208
208
  end
209
209
  end
210
210
 
211
- class DataPageMetadata < PageMetadata
212
- attr_reader :data_page
213
-
214
- def initialize(version, response, solution, limit)
215
- super(version, response)
216
- @data_page = []
217
- @limit = limit
218
- key = get_key(response.body)
219
- records = 0
220
- while( limit != :unset && records < limit )
221
- @data_page << DataListResponse.new(version, @payload, key, limit - records)
222
- @payload = self.next_page
223
- break unless @payload
224
- records += (@payload.body[key] || []).size
225
- end
226
- # Path Solution
227
- @solution = solution
228
- end
229
-
230
- def each
231
- @data_page.each do |record|
232
- yield record
233
- end
234
- end
235
-
236
- def to_s
237
- '<Twilio::REST::Api::V2010PageMetadata>';
238
- end
239
- end
240
- class DataListResponse < InstanceListResource
241
-
242
- # @param [Array<DataInstance>] instance
243
- # @param [Hash{String => Object}] headers
244
- # @param [Integer] status_code
245
- def initialize(version, payload, key, limit = :unset)
246
- data_list = payload.body[key] || []
247
- if limit != :unset
248
- data_list = data_list[0, limit]
249
- end
250
- @data = data_list.map do |data|
251
- DataInstance.new(version, data)
252
- end
253
- @headers = payload.headers
254
- @status_code = payload.status_code
255
- end
256
-
257
- def data
258
- @data
259
- end
260
-
261
- def headers
262
- @headers
263
- end
264
-
265
- def status_code
266
- @status_code
267
- end
268
- end
269
-
270
211
  class DataInstance < InstanceResource
271
212
  ##
272
213
  # Initialize the DataInstance
@@ -103,65 +103,6 @@ module Twilio
103
103
  end
104
104
  end
105
105
 
106
- class AuthTypeCallsPageMetadata < PageMetadata
107
- attr_reader :auth_type_calls_page
108
-
109
- def initialize(version, response, solution, limit)
110
- super(version, response)
111
- @auth_type_calls_page = []
112
- @limit = limit
113
- key = get_key(response.body)
114
- records = 0
115
- while( limit != :unset && records < limit )
116
- @auth_type_calls_page << AuthTypeCallsListResponse.new(version, @payload, key, limit - records)
117
- @payload = self.next_page
118
- break unless @payload
119
- records += (@payload.body[key] || []).size
120
- end
121
- # Path Solution
122
- @solution = solution
123
- end
124
-
125
- def each
126
- @auth_type_calls_page.each do |record|
127
- yield record
128
- end
129
- end
130
-
131
- def to_s
132
- '<Twilio::REST::Api::V2010PageMetadata>';
133
- end
134
- end
135
- class AuthTypeCallsListResponse < InstanceListResource
136
-
137
- # @param [Array<AuthTypeCallsInstance>] instance
138
- # @param [Hash{String => Object}] headers
139
- # @param [Integer] status_code
140
- def initialize(version, payload, key, limit = :unset)
141
- data_list = payload.body[key] || []
142
- if limit != :unset
143
- data_list = data_list[0, limit]
144
- end
145
- @auth_type_calls = data_list.map do |data|
146
- AuthTypeCallsInstance.new(version, data)
147
- end
148
- @headers = payload.headers
149
- @status_code = payload.status_code
150
- end
151
-
152
- def auth_type_calls
153
- @auth_type_calls
154
- end
155
-
156
- def headers
157
- @headers
158
- end
159
-
160
- def status_code
161
- @status_code
162
- end
163
- end
164
-
165
106
  class AuthTypeCallsInstance < InstanceResource
166
107
  ##
167
108
  # Initialize the AuthTypeCallsInstance
@@ -89,65 +89,6 @@ module Twilio
89
89
  end
90
90
  end
91
91
 
92
- class AuthTypeRegistrationsPageMetadata < PageMetadata
93
- attr_reader :auth_type_registrations_page
94
-
95
- def initialize(version, response, solution, limit)
96
- super(version, response)
97
- @auth_type_registrations_page = []
98
- @limit = limit
99
- key = get_key(response.body)
100
- records = 0
101
- while( limit != :unset && records < limit )
102
- @auth_type_registrations_page << AuthTypeRegistrationsListResponse.new(version, @payload, key, limit - records)
103
- @payload = self.next_page
104
- break unless @payload
105
- records += (@payload.body[key] || []).size
106
- end
107
- # Path Solution
108
- @solution = solution
109
- end
110
-
111
- def each
112
- @auth_type_registrations_page.each do |record|
113
- yield record
114
- end
115
- end
116
-
117
- def to_s
118
- '<Twilio::REST::Api::V2010PageMetadata>';
119
- end
120
- end
121
- class AuthTypeRegistrationsListResponse < InstanceListResource
122
-
123
- # @param [Array<AuthTypeRegistrationsInstance>] instance
124
- # @param [Hash{String => Object}] headers
125
- # @param [Integer] status_code
126
- def initialize(version, payload, key, limit = :unset)
127
- data_list = payload.body[key] || []
128
- if limit != :unset
129
- data_list = data_list[0, limit]
130
- end
131
- @auth_type_registrations = data_list.map do |data|
132
- AuthTypeRegistrationsInstance.new(version, data)
133
- end
134
- @headers = payload.headers
135
- @status_code = payload.status_code
136
- end
137
-
138
- def auth_type_registrations
139
- @auth_type_registrations
140
- end
141
-
142
- def headers
143
- @headers
144
- end
145
-
146
- def status_code
147
- @status_code
148
- end
149
- end
150
-
151
92
  class AuthTypeRegistrationsInstance < InstanceResource
152
93
  ##
153
94
  # Initialize the AuthTypeRegistrationsInstance