twilio-ruby 7.11.1 → 7.11.3

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 (260) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test-and-deploy.yml +13 -1
  3. data/CHANGES.md +417 -0
  4. data/Gemfile.lock +2 -2
  5. data/README.md +2 -2
  6. data/githooks/pre-commit +11 -0
  7. data/lib/rack/twilio_webhook_authentication.rb +45 -2
  8. data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +0 -59
  9. data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +0 -59
  10. data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +0 -59
  11. data/lib/twilio-ruby/rest/accounts/v1/credential.rb +0 -59
  12. data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +0 -59
  13. data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +0 -59
  14. data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +0 -59
  15. data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +0 -59
  16. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -59
  17. data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +0 -59
  18. data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +0 -59
  19. data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +0 -59
  20. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +0 -59
  21. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +0 -59
  22. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +0 -59
  23. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +6 -0
  24. data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +0 -59
  25. data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +0 -59
  26. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +0 -59
  27. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +0 -59
  28. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +0 -59
  29. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +0 -59
  30. data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +0 -59
  31. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +0 -59
  32. data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +0 -59
  33. data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +0 -59
  34. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +0 -59
  35. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +0 -59
  36. data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +0 -59
  37. data/lib/twilio-ruby/rest/chat/v3/channel.rb +0 -59
  38. data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +0 -59
  39. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +0 -59
  40. data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +0 -59
  41. data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +0 -59
  42. data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +0 -59
  43. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +0 -59
  44. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +0 -59
  45. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +0 -59
  46. data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +0 -59
  47. data/lib/twilio-ruby/rest/conversations/v2/action.rb +0 -59
  48. data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +525 -0
  49. data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +101 -12
  50. data/lib/twilio-ruby/rest/conversations/v2/operation.rb +0 -59
  51. data/lib/twilio-ruby/rest/conversations/v2.rb +10 -4
  52. data/lib/twilio-ruby/rest/events/v1/schema.rb +0 -59
  53. data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +0 -59
  54. data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +0 -59
  55. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +12 -14
  56. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +0 -59
  57. data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +12 -14
  58. data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +12 -14
  59. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +12 -14
  60. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +2 -4
  61. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +12 -14
  62. data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +12 -14
  63. data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -59
  64. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +0 -59
  65. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +0 -59
  66. data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -59
  67. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +0 -59
  68. data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +0 -59
  69. data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +2 -4
  70. data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +2 -4
  71. data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +0 -59
  72. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +2 -4
  73. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +2 -4
  74. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +0 -59
  75. data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +2 -4
  76. data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +0 -59
  77. data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -59
  78. data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +0 -59
  79. data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +0 -59
  80. data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -59
  81. data/lib/twilio-ruby/rest/iam/v1/api_key.rb +0 -59
  82. data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +0 -59
  83. data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +0 -59
  84. data/lib/twilio-ruby/rest/iam/v1/token.rb +0 -59
  85. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -59
  86. data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +0 -59
  87. data/lib/twilio-ruby/rest/insights/v1/call.rb +0 -59
  88. data/lib/twilio-ruby/rest/insights/v1/setting.rb +0 -59
  89. data/lib/twilio-ruby/rest/insights/v2/inbound.rb +2 -261
  90. data/lib/twilio-ruby/rest/insights/v2/inbound_report.rb +258 -0
  91. data/lib/twilio-ruby/rest/insights/v2/outbound.rb +18 -299
  92. data/lib/twilio-ruby/rest/insights/v2/outbound_report.rb +258 -0
  93. data/lib/twilio-ruby/rest/insights/v2/report.rb +27 -184
  94. data/lib/twilio-ruby/rest/insights/v2.rb +14 -4
  95. data/lib/twilio-ruby/rest/insights/v3/capacity.rb +161 -0
  96. data/lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb +279 -0
  97. data/lib/twilio-ruby/rest/insights/v3/metadata.rb +1 -60
  98. data/lib/twilio-ruby/rest/insights/v3/query.rb +1 -60
  99. data/lib/twilio-ruby/rest/insights/v3/query_job.rb +654 -0
  100. data/lib/twilio-ruby/rest/insights/v3/result.rb +195 -0
  101. data/lib/twilio-ruby/rest/insights/v3.rb +29 -1
  102. data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +0 -59
  103. data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +0 -59
  104. data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +0 -59
  105. data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +0 -59
  106. data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -59
  107. data/lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb +33 -60
  108. data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -59
  109. data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +0 -59
  110. data/lib/twilio-ruby/rest/knowledge/v2/search.rb +0 -59
  111. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +0 -59
  112. data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +0 -59
  113. data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +0 -59
  114. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +0 -59
  115. data/lib/twilio-ruby/rest/lookups/v2/query.rb +0 -59
  116. data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +0 -59
  117. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +0 -59
  118. data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +0 -59
  119. data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +0 -59
  120. data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +0 -59
  121. data/lib/twilio-ruby/rest/memory/v1/bulk.rb +0 -59
  122. data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +2 -4
  123. data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +3 -3
  124. data/lib/twilio-ruby/rest/memory/v1/identifier.rb +0 -80
  125. data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +0 -59
  126. data/lib/twilio-ruby/rest/memory/v1/lookup.rb +0 -59
  127. data/lib/twilio-ruby/rest/memory/v1/observation.rb +2 -4
  128. data/lib/twilio-ruby/rest/memory/v1/operation.rb +0 -59
  129. data/lib/twilio-ruby/rest/memory/v1/recall.rb +0 -59
  130. data/lib/twilio-ruby/rest/memory/v1/revision.rb +2 -4
  131. data/lib/twilio-ruby/rest/memory/v1/store.rb +3 -3
  132. data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +3 -3
  133. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +0 -59
  134. data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +0 -59
  135. data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -59
  136. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -59
  137. data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -59
  138. data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +0 -59
  139. data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +0 -59
  140. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -59
  141. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -59
  142. data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +0 -59
  143. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +2 -4
  144. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +0 -59
  145. data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +0 -59
  146. data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +0 -59
  147. data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +0 -59
  148. data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +0 -59
  149. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +0 -59
  150. data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +0 -59
  151. data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +0 -59
  152. data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +0 -59
  153. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +0 -59
  154. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +0 -59
  155. data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -59
  156. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +0 -59
  157. data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +0 -59
  158. data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +0 -59
  159. data/lib/twilio-ruby/rest/numbers/v1/sms_verification.rb +0 -59
  160. data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +0 -59
  161. data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +0 -59
  162. data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +0 -59
  163. data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +0 -59
  164. data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +0 -59
  165. data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +0 -59
  166. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +0 -59
  167. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +0 -59
  168. data/lib/twilio-ruby/rest/numbers/v2.rb +0 -16
  169. data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +0 -59
  170. data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +0 -59
  171. data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -59
  172. data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +0 -59
  173. data/lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb +0 -59
  174. data/lib/twilio-ruby/rest/oauth/v2/token.rb +2 -61
  175. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -59
  176. data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +0 -59
  177. data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +0 -59
  178. data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +0 -59
  179. data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +0 -59
  180. data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +0 -59
  181. data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +0 -59
  182. data/lib/twilio-ruby/rest/pricing/v1/voice.rb +0 -59
  183. data/lib/twilio-ruby/rest/pricing/v2/number.rb +0 -59
  184. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +0 -59
  185. data/lib/twilio-ruby/rest/pricing/v2/voice.rb +0 -59
  186. data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +0 -59
  187. data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +0 -59
  188. data/lib/twilio-ruby/rest/routes/v2/trunk.rb +0 -59
  189. data/lib/twilio-ruby/rest/routes/v3/phone_number.rb +0 -59
  190. data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -59
  191. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -59
  192. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +0 -59
  193. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +0 -59
  194. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +0 -59
  195. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +0 -59
  196. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -59
  197. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -59
  198. data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +0 -59
  199. data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +0 -59
  200. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +0 -59
  201. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +0 -59
  202. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +0 -59
  203. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +0 -59
  204. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +0 -59
  205. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +0 -59
  206. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +0 -59
  207. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +0 -59
  208. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +0 -59
  209. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +0 -59
  210. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +0 -59
  211. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +0 -59
  212. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +0 -59
  213. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +0 -59
  214. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +0 -59
  215. data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +0 -59
  216. data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration.rb +0 -59
  217. data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration_embedded_session.rb +0 -59
  218. data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration.rb +0 -59
  219. data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration_embedded_session.rb +0 -59
  220. data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +0 -59
  221. data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +0 -59
  222. data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +0 -59
  223. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles_provisional_copy.rb +0 -59
  224. data/lib/twilio-ruby/rest/trusthub/v1/trust_products_provisional_copy.rb +0 -59
  225. data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -59
  226. data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -59
  227. data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +0 -59
  228. data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +0 -59
  229. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +0 -59
  230. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +1 -1
  231. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -59
  232. data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +3 -62
  233. data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +0 -59
  234. data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +1 -60
  235. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +8 -61
  236. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +0 -59
  237. data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +0 -59
  238. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +0 -59
  239. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +0 -59
  240. data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +0 -59
  241. data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +0 -59
  242. data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +0 -59
  243. data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -59
  244. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +0 -59
  245. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -59
  246. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +0 -59
  247. data/lib/twilio-ruby/rest/voice/v2/account_default_configuration.rb +0 -59
  248. data/lib/twilio-ruby/rest/voice/v2/configuration/default.rb +0 -59
  249. data/lib/twilio-ruby/rest/voice/v2/configuration.rb +0 -59
  250. data/lib/twilio-ruby/rest/voice/v2/recording.rb +0 -59
  251. data/lib/twilio-ruby/rest/voice/v2/recording_account_default_configuration.rb +547 -0
  252. data/lib/twilio-ruby/rest/voice/v2/transcription.rb +0 -59
  253. data/lib/twilio-ruby/rest/voice/v2/type.rb +0 -59
  254. data/lib/twilio-ruby/rest/voice/v2.rb +6 -0
  255. data/lib/twilio-ruby/rest/voice/v3/transcription.rb +259 -50
  256. data/lib/twilio-ruby/twiml/voice_response.rb +12 -6
  257. data/lib/twilio-ruby/version.rb +1 -1
  258. metadata +9 -4
  259. data/lib/twilio-ruby/rest/memory/v1/event.rb +0 -320
  260. data/lib/twilio-ruby/rest/numbers/v2/caller_id.rb +0 -515
@@ -150,8 +150,8 @@ module Twilio
150
150
  # Lists AssessmentsInstance records from the API as a list.
151
151
  # Unlike stream(), this operation is eager and will load `limit` records into
152
152
  # memory before returning.
153
- # @param [String] authorization The Authorization HTTP request header
154
153
  # @param [String] segment_id The id of the segment.
154
+ # @param [String] authorization The Authorization HTTP request header
155
155
  # @param [Integer] limit Upper limit for the number of records to return. stream()
156
156
  # guarantees to never return more than limit. Default is no limit
157
157
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -159,10 +159,10 @@ module Twilio
159
159
  # but a limit is defined, stream() will attempt to read the limit with the most
160
160
  # efficient page size, i.e. min(limit, 1000)
161
161
  # @return [Array] Array of up to limit results
162
- def list(authorization: :unset, segment_id: :unset, limit: nil, page_size: nil)
162
+ def list(segment_id: :unset, authorization: :unset, limit: nil, page_size: nil)
163
163
  self.stream(
164
- authorization: authorization,
165
164
  segment_id: segment_id,
165
+ authorization: authorization,
166
166
  limit: limit,
167
167
  page_size: page_size
168
168
  ).entries
@@ -172,8 +172,8 @@ module Twilio
172
172
  # Streams Instance records from the API as an Enumerable.
173
173
  # This operation lazily loads records as efficiently as possible until the limit
174
174
  # is reached.
175
- # @param [String] authorization The Authorization HTTP request header
176
175
  # @param [String] segment_id The id of the segment.
176
+ # @param [String] authorization The Authorization HTTP request header
177
177
  # @param [Integer] limit Upper limit for the number of records to return. stream()
178
178
  # guarantees to never return more than limit. Default is no limit
179
179
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -181,12 +181,12 @@ module Twilio
181
181
  # but a limit is defined, stream() will attempt to read the limit with the most
182
182
  # efficient page size, i.e. min(limit, 1000)
183
183
  # @return [Enumerable] Enumerable that will yield up to limit results
184
- def stream(authorization: :unset, segment_id: :unset, limit: nil, page_size: nil)
184
+ def stream(segment_id: :unset, authorization: :unset, limit: nil, page_size: nil)
185
185
  limits = @version.read_limits(limit, page_size)
186
186
 
187
187
  page = self.page(
188
- authorization: authorization,
189
188
  segment_id: segment_id,
189
+ authorization: authorization,
190
190
  page_size: limits[:page_size], )
191
191
 
192
192
  return [].each if page.nil?
@@ -198,8 +198,8 @@ module Twilio
198
198
 
199
199
  ##
200
200
  # Lists AssessmentsPageMetadata records from the API as a list.
201
- # @param [String] authorization The Authorization HTTP request header
202
201
  # @param [String] segment_id The id of the segment.
202
+ # @param [String] authorization The Authorization HTTP request header
203
203
  # @param [Integer] limit Upper limit for the number of records to return. stream()
204
204
  # guarantees to never return more than limit. Default is no limit
205
205
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -207,15 +207,14 @@ module Twilio
207
207
  # but a limit is defined, stream() will attempt to read the limit with the most
208
208
  # efficient page size, i.e. min(limit, 1000)
209
209
  # @return [Array] Array of up to limit results
210
- def list_with_metadata(authorization: :unset, segment_id: :unset, limit: nil, page_size: nil)
210
+ def list_with_metadata(segment_id: :unset, authorization: :unset, limit: nil, page_size: nil)
211
211
  limits = @version.read_limits(limit, page_size)
212
212
  params = Twilio::Values.of({
213
- 'Authorization' => authorization,
214
213
  'SegmentId' => segment_id,
215
214
 
216
215
  'PageSize' => limits[:page_size],
217
216
  });
218
- headers = Twilio::Values.of({})
217
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
219
218
 
220
219
  response = @version.page('GET', @uri, params: params, headers: headers)
221
220
 
@@ -243,21 +242,20 @@ module Twilio
243
242
  ##
244
243
  # Retrieve a single page of AssessmentsInstance records from the API.
245
244
  # Request is executed immediately.
246
- # @param [String] authorization The Authorization HTTP request header
247
245
  # @param [String] segment_id The id of the segment.
246
+ # @param [String] authorization The Authorization HTTP request header
248
247
  # @param [String] page_token PageToken provided by the API
249
248
  # @param [Integer] page_number Page Number, this value is simply for client state
250
249
  # @param [Integer] page_size Number of records to return, defaults to 50
251
250
  # @return [Page] Page of AssessmentsInstance
252
- def page(authorization: :unset, segment_id: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
251
+ def page(segment_id: :unset, authorization: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
253
252
  params = Twilio::Values.of({
254
- 'Authorization' => authorization,
255
253
  'SegmentId' => segment_id,
256
254
  'PageToken' => page_token,
257
255
  'Page' => page_number,
258
256
  'PageSize' => page_size,
259
257
  })
260
- headers = Twilio::Values.of({})
258
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
261
259
 
262
260
 
263
261
 
@@ -249,65 +249,6 @@ module Twilio
249
249
  end
250
250
  end
251
251
 
252
- class ConfigurationPageMetadata < PageMetadata
253
- attr_reader :configuration_page
254
-
255
- def initialize(version, response, solution, limit)
256
- super(version, response)
257
- @configuration_page = []
258
- @limit = limit
259
- key = get_key(response.body)
260
- records = 0
261
- while( limit != :unset && records < limit )
262
- @configuration_page << ConfigurationListResponse.new(version, @payload, key, limit - records)
263
- @payload = self.next_page
264
- break unless @payload
265
- records += (@payload.body[key] || []).size
266
- end
267
- # Path Solution
268
- @solution = solution
269
- end
270
-
271
- def each
272
- @configuration_page.each do |record|
273
- yield record
274
- end
275
- end
276
-
277
- def to_s
278
- '<Twilio::REST::FlexApi::V1PageMetadata>';
279
- end
280
- end
281
- class ConfigurationListResponse < InstanceListResource
282
-
283
- # @param [Array<ConfigurationInstance>] instance
284
- # @param [Hash{String => Object}] headers
285
- # @param [Integer] status_code
286
- def initialize(version, payload, key, limit = :unset)
287
- data_list = payload.body[key] || []
288
- if limit != :unset
289
- data_list = data_list[0, limit]
290
- end
291
- @configuration = data_list.map do |data|
292
- ConfigurationInstance.new(version, data)
293
- end
294
- @headers = payload.headers
295
- @status_code = payload.status_code
296
- end
297
-
298
- def configuration
299
- @configuration
300
- end
301
-
302
- def headers
303
- @headers
304
- end
305
-
306
- def status_code
307
- @status_code
308
- end
309
- end
310
-
311
252
  class ConfigurationInstance < InstanceResource
312
253
  ##
313
254
  # Initialize the ConfigurationInstance
@@ -126,9 +126,9 @@ module Twilio
126
126
  # Lists InsightsAssessmentsCommentInstance records from the API as a list.
127
127
  # Unlike stream(), this operation is eager and will load `limit` records into
128
128
  # memory before returning.
129
- # @param [String] authorization The Authorization HTTP request header
130
129
  # @param [String] segment_id The id of the segment.
131
130
  # @param [String] agent_id The id of the agent.
131
+ # @param [String] authorization The Authorization HTTP request header
132
132
  # @param [Integer] limit Upper limit for the number of records to return. stream()
133
133
  # guarantees to never return more than limit. Default is no limit
134
134
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -136,11 +136,11 @@ module Twilio
136
136
  # but a limit is defined, stream() will attempt to read the limit with the most
137
137
  # efficient page size, i.e. min(limit, 1000)
138
138
  # @return [Array] Array of up to limit results
139
- def list(authorization: :unset, segment_id: :unset, agent_id: :unset, limit: nil, page_size: nil)
139
+ def list(segment_id: :unset, agent_id: :unset, authorization: :unset, limit: nil, page_size: nil)
140
140
  self.stream(
141
- authorization: authorization,
142
141
  segment_id: segment_id,
143
142
  agent_id: agent_id,
143
+ authorization: authorization,
144
144
  limit: limit,
145
145
  page_size: page_size
146
146
  ).entries
@@ -150,9 +150,9 @@ module Twilio
150
150
  # Streams Instance records from the API as an Enumerable.
151
151
  # This operation lazily loads records as efficiently as possible until the limit
152
152
  # is reached.
153
- # @param [String] authorization The Authorization HTTP request header
154
153
  # @param [String] segment_id The id of the segment.
155
154
  # @param [String] agent_id The id of the agent.
155
+ # @param [String] authorization The Authorization HTTP request header
156
156
  # @param [Integer] limit Upper limit for the number of records to return. stream()
157
157
  # guarantees to never return more than limit. Default is no limit
158
158
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -160,13 +160,13 @@ module Twilio
160
160
  # but a limit is defined, stream() will attempt to read the limit with the most
161
161
  # efficient page size, i.e. min(limit, 1000)
162
162
  # @return [Enumerable] Enumerable that will yield up to limit results
163
- def stream(authorization: :unset, segment_id: :unset, agent_id: :unset, limit: nil, page_size: nil)
163
+ def stream(segment_id: :unset, agent_id: :unset, authorization: :unset, limit: nil, page_size: nil)
164
164
  limits = @version.read_limits(limit, page_size)
165
165
 
166
166
  page = self.page(
167
- authorization: authorization,
168
167
  segment_id: segment_id,
169
168
  agent_id: agent_id,
169
+ authorization: authorization,
170
170
  page_size: limits[:page_size], )
171
171
 
172
172
  return [].each if page.nil?
@@ -178,9 +178,9 @@ module Twilio
178
178
 
179
179
  ##
180
180
  # Lists InsightsAssessmentsCommentPageMetadata records from the API as a list.
181
- # @param [String] authorization The Authorization HTTP request header
182
181
  # @param [String] segment_id The id of the segment.
183
182
  # @param [String] agent_id The id of the agent.
183
+ # @param [String] authorization The Authorization HTTP request header
184
184
  # @param [Integer] limit Upper limit for the number of records to return. stream()
185
185
  # guarantees to never return more than limit. Default is no limit
186
186
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -188,16 +188,15 @@ module Twilio
188
188
  # but a limit is defined, stream() will attempt to read the limit with the most
189
189
  # efficient page size, i.e. min(limit, 1000)
190
190
  # @return [Array] Array of up to limit results
191
- def list_with_metadata(authorization: :unset, segment_id: :unset, agent_id: :unset, limit: nil, page_size: nil)
191
+ def list_with_metadata(segment_id: :unset, agent_id: :unset, authorization: :unset, limit: nil, page_size: nil)
192
192
  limits = @version.read_limits(limit, page_size)
193
193
  params = Twilio::Values.of({
194
- 'Authorization' => authorization,
195
194
  'SegmentId' => segment_id,
196
195
  'AgentId' => agent_id,
197
196
 
198
197
  'PageSize' => limits[:page_size],
199
198
  });
200
- headers = Twilio::Values.of({})
199
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
201
200
 
202
201
  response = @version.page('GET', @uri, params: params, headers: headers)
203
202
 
@@ -225,23 +224,22 @@ module Twilio
225
224
  ##
226
225
  # Retrieve a single page of InsightsAssessmentsCommentInstance records from the API.
227
226
  # Request is executed immediately.
228
- # @param [String] authorization The Authorization HTTP request header
229
227
  # @param [String] segment_id The id of the segment.
230
228
  # @param [String] agent_id The id of the agent.
229
+ # @param [String] authorization The Authorization HTTP request header
231
230
  # @param [String] page_token PageToken provided by the API
232
231
  # @param [Integer] page_number Page Number, this value is simply for client state
233
232
  # @param [Integer] page_size Number of records to return, defaults to 50
234
233
  # @return [Page] Page of InsightsAssessmentsCommentInstance
235
- def page(authorization: :unset, segment_id: :unset, agent_id: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
234
+ def page(segment_id: :unset, agent_id: :unset, authorization: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
236
235
  params = Twilio::Values.of({
237
- 'Authorization' => authorization,
238
236
  'SegmentId' => segment_id,
239
237
  'AgentId' => agent_id,
240
238
  'PageToken' => page_token,
241
239
  'Page' => page_number,
242
240
  'PageSize' => page_size,
243
241
  })
244
- headers = Twilio::Values.of({})
242
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
245
243
 
246
244
 
247
245
 
@@ -36,8 +36,8 @@ module Twilio
36
36
  # Lists InsightsConversationsInstance records from the API as a list.
37
37
  # Unlike stream(), this operation is eager and will load `limit` records into
38
38
  # memory before returning.
39
- # @param [String] authorization The Authorization HTTP request header
40
39
  # @param [String] segment_id Unique Id of the segment for which conversation details needs to be fetched
40
+ # @param [String] authorization The Authorization HTTP request header
41
41
  # @param [Integer] limit Upper limit for the number of records to return. stream()
42
42
  # guarantees to never return more than limit. Default is no limit
43
43
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -45,10 +45,10 @@ module Twilio
45
45
  # but a limit is defined, stream() will attempt to read the limit with the most
46
46
  # efficient page size, i.e. min(limit, 1000)
47
47
  # @return [Array] Array of up to limit results
48
- def list(authorization: :unset, segment_id: :unset, limit: nil, page_size: nil)
48
+ def list(segment_id: :unset, authorization: :unset, limit: nil, page_size: nil)
49
49
  self.stream(
50
- authorization: authorization,
51
50
  segment_id: segment_id,
51
+ authorization: authorization,
52
52
  limit: limit,
53
53
  page_size: page_size
54
54
  ).entries
@@ -58,8 +58,8 @@ module Twilio
58
58
  # Streams Instance records from the API as an Enumerable.
59
59
  # This operation lazily loads records as efficiently as possible until the limit
60
60
  # is reached.
61
- # @param [String] authorization The Authorization HTTP request header
62
61
  # @param [String] segment_id Unique Id of the segment for which conversation details needs to be fetched
62
+ # @param [String] authorization The Authorization HTTP request header
63
63
  # @param [Integer] limit Upper limit for the number of records to return. stream()
64
64
  # guarantees to never return more than limit. Default is no limit
65
65
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -67,12 +67,12 @@ module Twilio
67
67
  # but a limit is defined, stream() will attempt to read the limit with the most
68
68
  # efficient page size, i.e. min(limit, 1000)
69
69
  # @return [Enumerable] Enumerable that will yield up to limit results
70
- def stream(authorization: :unset, segment_id: :unset, limit: nil, page_size: nil)
70
+ def stream(segment_id: :unset, authorization: :unset, limit: nil, page_size: nil)
71
71
  limits = @version.read_limits(limit, page_size)
72
72
 
73
73
  page = self.page(
74
- authorization: authorization,
75
74
  segment_id: segment_id,
75
+ authorization: authorization,
76
76
  page_size: limits[:page_size], )
77
77
 
78
78
  return [].each if page.nil?
@@ -84,8 +84,8 @@ module Twilio
84
84
 
85
85
  ##
86
86
  # Lists InsightsConversationsPageMetadata records from the API as a list.
87
- # @param [String] authorization The Authorization HTTP request header
88
87
  # @param [String] segment_id Unique Id of the segment for which conversation details needs to be fetched
88
+ # @param [String] authorization The Authorization HTTP request header
89
89
  # @param [Integer] limit Upper limit for the number of records to return. stream()
90
90
  # guarantees to never return more than limit. Default is no limit
91
91
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -93,15 +93,14 @@ module Twilio
93
93
  # but a limit is defined, stream() will attempt to read the limit with the most
94
94
  # efficient page size, i.e. min(limit, 1000)
95
95
  # @return [Array] Array of up to limit results
96
- def list_with_metadata(authorization: :unset, segment_id: :unset, limit: nil, page_size: nil)
96
+ def list_with_metadata(segment_id: :unset, authorization: :unset, limit: nil, page_size: nil)
97
97
  limits = @version.read_limits(limit, page_size)
98
98
  params = Twilio::Values.of({
99
- 'Authorization' => authorization,
100
99
  'SegmentId' => segment_id,
101
100
 
102
101
  'PageSize' => limits[:page_size],
103
102
  });
104
- headers = Twilio::Values.of({})
103
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
105
104
 
106
105
  response = @version.page('GET', @uri, params: params, headers: headers)
107
106
 
@@ -129,21 +128,20 @@ module Twilio
129
128
  ##
130
129
  # Retrieve a single page of InsightsConversationsInstance records from the API.
131
130
  # Request is executed immediately.
132
- # @param [String] authorization The Authorization HTTP request header
133
131
  # @param [String] segment_id Unique Id of the segment for which conversation details needs to be fetched
132
+ # @param [String] authorization The Authorization HTTP request header
134
133
  # @param [String] page_token PageToken provided by the API
135
134
  # @param [Integer] page_number Page Number, this value is simply for client state
136
135
  # @param [Integer] page_size Number of records to return, defaults to 50
137
136
  # @return [Page] Page of InsightsConversationsInstance
138
- def page(authorization: :unset, segment_id: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
137
+ def page(segment_id: :unset, authorization: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
139
138
  params = Twilio::Values.of({
140
- 'Authorization' => authorization,
141
139
  'SegmentId' => segment_id,
142
140
  'PageToken' => page_token,
143
141
  'Page' => page_number,
144
142
  'PageSize' => page_size,
145
143
  })
146
- headers = Twilio::Values.of({})
144
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
147
145
 
148
146
 
149
147
 
@@ -114,8 +114,8 @@ module Twilio
114
114
  # Lists InsightsQuestionnairesInstance records from the API as a list.
115
115
  # Unlike stream(), this operation is eager and will load `limit` records into
116
116
  # memory before returning.
117
- # @param [String] authorization The Authorization HTTP request header
118
117
  # @param [Boolean] include_inactive Flag indicating whether to include inactive questionnaires or not
118
+ # @param [String] authorization The Authorization HTTP request header
119
119
  # @param [Integer] limit Upper limit for the number of records to return. stream()
120
120
  # guarantees to never return more than limit. Default is no limit
121
121
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -123,10 +123,10 @@ module Twilio
123
123
  # but a limit is defined, stream() will attempt to read the limit with the most
124
124
  # efficient page size, i.e. min(limit, 1000)
125
125
  # @return [Array] Array of up to limit results
126
- def list(authorization: :unset, include_inactive: :unset, limit: nil, page_size: nil)
126
+ def list(include_inactive: :unset, authorization: :unset, limit: nil, page_size: nil)
127
127
  self.stream(
128
- authorization: authorization,
129
128
  include_inactive: include_inactive,
129
+ authorization: authorization,
130
130
  limit: limit,
131
131
  page_size: page_size
132
132
  ).entries
@@ -136,8 +136,8 @@ module Twilio
136
136
  # Streams Instance records from the API as an Enumerable.
137
137
  # This operation lazily loads records as efficiently as possible until the limit
138
138
  # is reached.
139
- # @param [String] authorization The Authorization HTTP request header
140
139
  # @param [Boolean] include_inactive Flag indicating whether to include inactive questionnaires or not
140
+ # @param [String] authorization The Authorization HTTP request header
141
141
  # @param [Integer] limit Upper limit for the number of records to return. stream()
142
142
  # guarantees to never return more than limit. Default is no limit
143
143
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -145,12 +145,12 @@ module Twilio
145
145
  # but a limit is defined, stream() will attempt to read the limit with the most
146
146
  # efficient page size, i.e. min(limit, 1000)
147
147
  # @return [Enumerable] Enumerable that will yield up to limit results
148
- def stream(authorization: :unset, include_inactive: :unset, limit: nil, page_size: nil)
148
+ def stream(include_inactive: :unset, authorization: :unset, limit: nil, page_size: nil)
149
149
  limits = @version.read_limits(limit, page_size)
150
150
 
151
151
  page = self.page(
152
- authorization: authorization,
153
152
  include_inactive: include_inactive,
153
+ authorization: authorization,
154
154
  page_size: limits[:page_size], )
155
155
 
156
156
  return [].each if page.nil?
@@ -162,8 +162,8 @@ module Twilio
162
162
 
163
163
  ##
164
164
  # Lists InsightsQuestionnairesPageMetadata records from the API as a list.
165
- # @param [String] authorization The Authorization HTTP request header
166
165
  # @param [Boolean] include_inactive Flag indicating whether to include inactive questionnaires or not
166
+ # @param [String] authorization The Authorization HTTP request header
167
167
  # @param [Integer] limit Upper limit for the number of records to return. stream()
168
168
  # guarantees to never return more than limit. Default is no limit
169
169
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -171,15 +171,14 @@ module Twilio
171
171
  # but a limit is defined, stream() will attempt to read the limit with the most
172
172
  # efficient page size, i.e. min(limit, 1000)
173
173
  # @return [Array] Array of up to limit results
174
- def list_with_metadata(authorization: :unset, include_inactive: :unset, limit: nil, page_size: nil)
174
+ def list_with_metadata(include_inactive: :unset, authorization: :unset, limit: nil, page_size: nil)
175
175
  limits = @version.read_limits(limit, page_size)
176
176
  params = Twilio::Values.of({
177
- 'Authorization' => authorization,
178
177
  'IncludeInactive' => include_inactive,
179
178
 
180
179
  'PageSize' => limits[:page_size],
181
180
  });
182
- headers = Twilio::Values.of({})
181
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
183
182
 
184
183
  response = @version.page('GET', @uri, params: params, headers: headers)
185
184
 
@@ -207,21 +206,20 @@ module Twilio
207
206
  ##
208
207
  # Retrieve a single page of InsightsQuestionnairesInstance records from the API.
209
208
  # Request is executed immediately.
210
- # @param [String] authorization The Authorization HTTP request header
211
209
  # @param [Boolean] include_inactive Flag indicating whether to include inactive questionnaires or not
210
+ # @param [String] authorization The Authorization HTTP request header
212
211
  # @param [String] page_token PageToken provided by the API
213
212
  # @param [Integer] page_number Page Number, this value is simply for client state
214
213
  # @param [Integer] page_size Number of records to return, defaults to 50
215
214
  # @return [Page] Page of InsightsQuestionnairesInstance
216
- def page(authorization: :unset, include_inactive: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
215
+ def page(include_inactive: :unset, authorization: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
217
216
  params = Twilio::Values.of({
218
- 'Authorization' => authorization,
219
217
  'IncludeInactive' => include_inactive,
220
218
  'PageToken' => page_token,
221
219
  'Page' => page_number,
222
220
  'PageSize' => page_size,
223
221
  })
224
- headers = Twilio::Values.of({})
222
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
225
223
 
226
224
 
227
225
 
@@ -151,11 +151,10 @@ module Twilio
151
151
  def list_with_metadata(authorization: :unset, limit: nil, page_size: nil)
152
152
  limits = @version.read_limits(limit, page_size)
153
153
  params = Twilio::Values.of({
154
- 'Authorization' => authorization,
155
154
 
156
155
  'PageSize' => limits[:page_size],
157
156
  });
158
- headers = Twilio::Values.of({})
157
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
159
158
 
160
159
  response = @version.page('GET', @uri, params: params, headers: headers)
161
160
 
@@ -190,12 +189,11 @@ module Twilio
190
189
  # @return [Page] Page of InsightsQuestionnairesCategoryInstance
191
190
  def page(authorization: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
192
191
  params = Twilio::Values.of({
193
- 'Authorization' => authorization,
194
192
  'PageToken' => page_token,
195
193
  'Page' => page_number,
196
194
  'PageSize' => page_size,
197
195
  })
198
- headers = Twilio::Values.of({})
196
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
199
197
 
200
198
 
201
199
 
@@ -120,8 +120,8 @@ module Twilio
120
120
  # Lists InsightsQuestionnairesQuestionInstance records from the API as a list.
121
121
  # Unlike stream(), this operation is eager and will load `limit` records into
122
122
  # memory before returning.
123
- # @param [String] authorization The Authorization HTTP request header
124
123
  # @param [Array[String]] category_sid The list of category SIDs
124
+ # @param [String] authorization The Authorization HTTP request header
125
125
  # @param [Integer] limit Upper limit for the number of records to return. stream()
126
126
  # guarantees to never return more than limit. Default is no limit
127
127
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -129,10 +129,10 @@ module Twilio
129
129
  # but a limit is defined, stream() will attempt to read the limit with the most
130
130
  # efficient page size, i.e. min(limit, 1000)
131
131
  # @return [Array] Array of up to limit results
132
- def list(authorization: :unset, category_sid: :unset, limit: nil, page_size: nil)
132
+ def list(category_sid: :unset, authorization: :unset, limit: nil, page_size: nil)
133
133
  self.stream(
134
- authorization: authorization,
135
134
  category_sid: category_sid,
135
+ authorization: authorization,
136
136
  limit: limit,
137
137
  page_size: page_size
138
138
  ).entries
@@ -142,8 +142,8 @@ module Twilio
142
142
  # Streams Instance records from the API as an Enumerable.
143
143
  # This operation lazily loads records as efficiently as possible until the limit
144
144
  # is reached.
145
- # @param [String] authorization The Authorization HTTP request header
146
145
  # @param [Array[String]] category_sid The list of category SIDs
146
+ # @param [String] authorization The Authorization HTTP request header
147
147
  # @param [Integer] limit Upper limit for the number of records to return. stream()
148
148
  # guarantees to never return more than limit. Default is no limit
149
149
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -151,12 +151,12 @@ module Twilio
151
151
  # but a limit is defined, stream() will attempt to read the limit with the most
152
152
  # efficient page size, i.e. min(limit, 1000)
153
153
  # @return [Enumerable] Enumerable that will yield up to limit results
154
- def stream(authorization: :unset, category_sid: :unset, limit: nil, page_size: nil)
154
+ def stream(category_sid: :unset, authorization: :unset, limit: nil, page_size: nil)
155
155
  limits = @version.read_limits(limit, page_size)
156
156
 
157
157
  page = self.page(
158
- authorization: authorization,
159
158
  category_sid: category_sid,
159
+ authorization: authorization,
160
160
  page_size: limits[:page_size], )
161
161
 
162
162
  return [].each if page.nil?
@@ -168,8 +168,8 @@ module Twilio
168
168
 
169
169
  ##
170
170
  # Lists InsightsQuestionnairesQuestionPageMetadata records from the API as a list.
171
- # @param [String] authorization The Authorization HTTP request header
172
171
  # @param [Array[String]] category_sid The list of category SIDs
172
+ # @param [String] authorization The Authorization HTTP request header
173
173
  # @param [Integer] limit Upper limit for the number of records to return. stream()
174
174
  # guarantees to never return more than limit. Default is no limit
175
175
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -177,16 +177,15 @@ module Twilio
177
177
  # but a limit is defined, stream() will attempt to read the limit with the most
178
178
  # efficient page size, i.e. min(limit, 1000)
179
179
  # @return [Array] Array of up to limit results
180
- def list_with_metadata(authorization: :unset, category_sid: :unset, limit: nil, page_size: nil)
180
+ def list_with_metadata(category_sid: :unset, authorization: :unset, limit: nil, page_size: nil)
181
181
  limits = @version.read_limits(limit, page_size)
182
182
  params = Twilio::Values.of({
183
- 'Authorization' => authorization,
184
183
 
185
184
  'CategorySid' => Twilio.serialize_list(category_sid) { |e| e },
186
185
 
187
186
  'PageSize' => limits[:page_size],
188
187
  });
189
- headers = Twilio::Values.of({})
188
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
190
189
 
191
190
  response = @version.page('GET', @uri, params: params, headers: headers)
192
191
 
@@ -214,22 +213,21 @@ module Twilio
214
213
  ##
215
214
  # Retrieve a single page of InsightsQuestionnairesQuestionInstance records from the API.
216
215
  # Request is executed immediately.
217
- # @param [String] authorization The Authorization HTTP request header
218
216
  # @param [Array[String]] category_sid The list of category SIDs
217
+ # @param [String] authorization The Authorization HTTP request header
219
218
  # @param [String] page_token PageToken provided by the API
220
219
  # @param [Integer] page_number Page Number, this value is simply for client state
221
220
  # @param [Integer] page_size Number of records to return, defaults to 50
222
221
  # @return [Page] Page of InsightsQuestionnairesQuestionInstance
223
- def page(authorization: :unset, category_sid: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
222
+ def page(category_sid: :unset, authorization: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
224
223
  params = Twilio::Values.of({
225
- 'Authorization' => authorization,
226
224
 
227
225
  'CategorySid' => Twilio.serialize_list(category_sid) { |e| e },
228
226
  'PageToken' => page_token,
229
227
  'Page' => page_number,
230
228
  'PageSize' => page_size,
231
229
  })
232
- headers = Twilio::Values.of({})
230
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
233
231
 
234
232
 
235
233