twilio-ruby 6.12.1 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test-and-deploy.yml +5 -5
  3. data/CHANGES.md +72 -1
  4. data/README.md +2 -2
  5. data/UPGRADE.md +11 -0
  6. data/lib/twilio-ruby/framework/request.rb +8 -1
  7. data/lib/twilio-ruby/http/http_client.rb +10 -3
  8. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -2
  9. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +22 -22
  10. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +7 -0
  11. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +22 -22
  12. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -2
  13. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +0 -2
  14. data/lib/twilio-ruby/rest/client.rb +8 -3
  15. data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +184 -0
  16. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +11 -13
  17. data/lib/twilio-ruby/rest/content/v1/content.rb +422 -3
  18. data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -1
  19. data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -1
  20. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +6 -6
  21. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +6 -6
  22. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +0 -2
  23. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +26 -0
  24. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +0 -2
  25. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +0 -2
  26. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +0 -2
  27. data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -2
  28. data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -2
  29. data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +6 -0
  30. data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -2
  31. data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -2
  32. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -2
  33. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +0 -2
  34. data/lib/twilio-ruby/rest/insights/v1/room.rb +0 -2
  35. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +0 -2
  36. data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -2
  37. data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +0 -2
  38. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +0 -2
  39. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +17 -6
  40. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +0 -2
  41. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -2
  42. data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -2
  43. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -2
  44. data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -2
  45. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -2
  46. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -2
  47. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -2
  48. data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +0 -2
  49. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -2
  50. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -2
  51. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +0 -2
  52. data/lib/twilio-ruby/rest/messaging/v1/service.rb +7 -2
  53. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +0 -2
  54. data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -2
  55. data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -2
  56. data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -2
  57. data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -2
  58. data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -2
  59. data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -2
  60. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -2
  61. data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -2
  62. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +0 -2
  63. data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -2
  64. data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +16 -3
  65. data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +127 -0
  66. data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -2
  67. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +134 -0
  68. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +7 -2
  69. data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -2
  70. data/lib/twilio-ruby/rest/numbers/v1.rb +12 -0
  71. data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +0 -2
  72. data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +16 -3
  73. data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +0 -2
  74. data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +143 -0
  75. data/lib/twilio-ruby/rest/oauth/v1/token.rb +181 -0
  76. data/lib/twilio-ruby/rest/oauth/v1.rb +46 -0
  77. data/lib/twilio-ruby/rest/{media.rb → oauth.rb} +1 -1
  78. data/lib/twilio-ruby/rest/{media_base.rb → oauth_base.rb} +6 -6
  79. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -2
  80. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -2
  81. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -2
  82. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -2
  83. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -2
  84. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +0 -2
  85. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +0 -2
  86. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -2
  87. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -2
  88. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -2
  89. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -2
  90. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -2
  91. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -2
  92. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -2
  93. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -2
  94. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -2
  95. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -2
  96. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -2
  97. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -2
  98. data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -2
  99. data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -2
  100. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -2
  101. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -2
  102. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -2
  103. data/lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb +164 -0
  104. data/lib/twilio-ruby/rest/preview_messaging/v1/message.rb +235 -0
  105. data/lib/twilio-ruby/rest/preview_messaging/v1.rb +46 -0
  106. data/lib/twilio-ruby/rest/preview_messaging.rb +12 -0
  107. data/lib/twilio-ruby/rest/preview_messaging_base.rb +38 -0
  108. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +0 -2
  109. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +0 -2
  110. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +0 -2
  111. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +0 -2
  112. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +0 -2
  113. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -2
  114. data/lib/twilio-ruby/rest/proxy/v1/service.rb +0 -2
  115. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +0 -2
  116. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +0 -2
  117. data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -2
  118. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +0 -2
  119. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +0 -2
  120. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +0 -2
  121. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +0 -2
  122. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +0 -2
  123. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -2
  124. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +0 -2
  125. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +0 -2
  126. data/lib/twilio-ruby/rest/serverless/v1/service.rb +0 -2
  127. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +0 -2
  128. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +0 -2
  129. data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +0 -2
  130. data/lib/twilio-ruby/rest/supersim/v1/network.rb +0 -2
  131. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +0 -2
  132. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +0 -2
  133. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +0 -2
  134. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +0 -2
  135. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +163 -0
  136. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -8
  137. data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +95 -4
  138. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +9 -3
  139. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +9 -3
  140. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +18 -18
  141. data/lib/twilio-ruby/rest/trusthub/v1.rb +12 -3
  142. data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -2
  143. data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -2
  144. data/lib/twilio-ruby/rest/verify/v2/service.rb +25 -0
  145. data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -2
  146. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +0 -2
  147. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -2
  148. data/lib/twilio-ruby/version.rb +1 -1
  149. metadata +16 -9
  150. data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -424
  151. data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -407
  152. data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -255
  153. data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -436
  154. data/lib/twilio-ruby/rest/media/v1.rb +0 -79
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ee4da7ce236e476901cca417a590ffbcc5dd90d
4
- data.tar.gz: 7e0d20132c3cb96f03f2c6e3d42a9074ebf357fc
3
+ metadata.gz: 87282b59934c59ef97afb9ec219bf3e4b84834b1
4
+ data.tar.gz: daab71d45a3dd7d2cf1a92b54303506c1f474de6
5
5
  SHA512:
6
- metadata.gz: 4a7a0c2959b45c56f2ee701ecca64a21a6ec596e2a8b36c1761b32ce58e0669fecd3f2c61d0f749b5bcd8bea34c52e3e898231e3dad8eec421cd8b1637807575
7
- data.tar.gz: 529e0dd106814e77a1b0b8588da5b7077dbe12a18ccfd69383e7caa7df23e75e41ba3bb7172c24c67bbd167a6aac101b19fc3f70785be0d31c09c231c3304627
6
+ metadata.gz: 675d66180d805096fc40152ec2de327a00a28e2bcd96784c454b3859a2aa51da4c70651822f9a99a581d8984f91940017b388d096b464db35f5917b204f6da21
7
+ data.tar.gz: 53c10c95ff94ee894cac40055152f0f439cd7c32dc51276839231673b5abf9fb82d88b11883730e5ef01ced4b50cd2fc7264baa68333efb799d82c657cdbb586
@@ -48,11 +48,11 @@ jobs:
48
48
  - name: Run Cluster Test
49
49
  if: (!github.event.pull_request.head.repo.fork)
50
50
  env:
51
- TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
52
- TWILIO_API_KEY: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY}}
53
- TWILIO_API_SECRET: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY_SECRET }}
54
- TWILIO_FROM_NUMBER: ${{ secrets.TWILIO_FROM_NUMBER }}
55
- TWILIO_TO_NUMBER: ${{ secrets.TWILIO_TO_NUMBER }}
51
+ TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
52
+ TWILIO_API_KEY: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY}}
53
+ TWILIO_API_SECRET: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY_SECRET }}
54
+ TWILIO_FROM_NUMBER: ${{ secrets.TWILIO_FROM_NUMBER }}
55
+ TWILIO_TO_NUMBER: ${{ secrets.TWILIO_TO_NUMBER }}
56
56
  run: make cluster-test
57
57
 
58
58
  - name: Fix code coverage paths
data/CHANGES.md CHANGED
@@ -1,5 +1,76 @@
1
1
  twilio-ruby changelog
2
- =====================
2
+ =====================
3
+
4
+ [2024-04-04] Version 7.0.1
5
+ --------------------------
6
+ **Api**
7
+ - Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC.
8
+
9
+ **Flex**
10
+ - Remove optional parameter from `plugins` and it to `plugin_versions`
11
+
12
+ **Lookups**
13
+ - Add new `pre_fill` package to the lookup response
14
+
15
+ **Messaging**
16
+ - Cleanup api.messaging.next-gen from Messaging Services endpoints
17
+ - Readd Sending-Window after fixing test failure
18
+
19
+ **Verify**
20
+ - Add `whatsapp.msg_service_sid` and `whatsapp.from` parameters to create, update, get and list of services endpoints
21
+
22
+ **Voice**
23
+ - Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC.
24
+
25
+ **Twiml**
26
+ - Add new `token_type` value `payment-method` for `Pay` verb
27
+
28
+
29
+ [2024-04-01] Version 7.0.0
30
+ --------------------------
31
+ **Note:** This release contains breaking changes, check our [upgrade guide](./UPGRADE.md#2024-01-19-6xx-to-7xx) for detailed migration notes.
32
+
33
+ **Library - Feature**
34
+ - [PR #719](https://github.com/twilio/twilio-ruby/pull/719): Merge '7.0.0-rc' into main. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)! **(breaking change)**
35
+
36
+ **Library - Chore**
37
+ - [PR #715](https://github.com/twilio/twilio-ruby/pull/715): remove media endpoint. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
38
+
39
+ **Api**
40
+ - Add property `queue_time` to conference participant resource
41
+ - Update RiskCheck documentation
42
+ - Correct call filtering by start and end time documentation, clarifying that times are UTC.
43
+
44
+ **Flex**
45
+ - Adding optional parameter to `plugins`
46
+
47
+ **Media**
48
+ - Remove API: MediaProcessor
49
+
50
+ **Messaging**
51
+ - Remove Sending-Window due to test failure
52
+ - Add Sending-Window as a response property to Messaging Services, gated by a beta feature flag
53
+
54
+ **Numbers**
55
+ - Correct valid_until_date field to be visible in Bundles resource
56
+ - Adding port_in_status field to the Port In resource and phone_number_status and sid fields to the Port In Phone Number resource
57
+
58
+ **Oauth**
59
+ - Modified token endpoint response
60
+ - Added refresh_token and scope as optional parameter to token endpoint
61
+ - Add new APIs for vendor authorize and token endpoints
62
+
63
+ **Trusthub**
64
+ - Add update inquiry endpoint in compliance_registration.
65
+ - Add new field in themeSetId in compliance_registration.
66
+
67
+ **Voice**
68
+ - Correct call filtering by start and end time documentation, clarifying that times are UTC.
69
+
70
+ **Twiml**
71
+ - Add support for new Google voices (Q1 2024) for `Say` verb - gu-IN voices
72
+ - Add support for new Amazon Polly and Google voices (Q1 2024) for `Say` verb - Niamh (en-IE) and Sofie (da-DK) voices
73
+
3
74
 
4
75
  [2024-03-12] Version 6.12.1
5
76
  ---------------------------
data/README.md CHANGED
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
39
39
  To install using [Bundler][bundler] grab the latest stable version:
40
40
 
41
41
  ```ruby
42
- gem 'twilio-ruby', '~> 6.12.1'
42
+ gem 'twilio-ruby', '~> 7.0.1'
43
43
  ```
44
44
 
45
45
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
46
46
 
47
47
  ```bash
48
- gem install twilio-ruby -v 6.12.1
48
+ gem install twilio-ruby -v 7.0.1
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
data/UPGRADE.md CHANGED
@@ -3,6 +3,17 @@
3
3
  _After `5.0.0` all `MINOR` and `MAJOR` version bumps will have upgrade notes
4
4
  posted here._
5
5
 
6
+ [2024-01-19] 6.x.x to 7.x.x
7
+ -----------------------------
8
+ ### Overview
9
+
10
+ ##### Twilio Ruby Helper Library’s major version 7.0.0 is now available. We ensured that you can upgrade to Ruby helper Library 7.0.0 version without any breaking changes of existing apis
11
+
12
+ Behind the scenes Ruby Helper is now auto-generated via OpenAPI with this release. This enables us to rapidly add new features and enhance consistency across versions and languages.
13
+ We're pleased to inform you that version 7.0.0 adds support for the application/json content type in the request body.
14
+
15
+ To learn more about the Ruby Helper Library, check out [our docs](https://www.twilio.com/docs/libraries/ruby).
16
+
6
17
  [2023-05-03] 5.x.x to 6.x.x
7
18
  -----------------------------
8
19
  ### Overview
@@ -32,7 +32,14 @@ module Twilio
32
32
  data = ''
33
33
  unless @data.nil? || @data.empty?
34
34
  data = @method.equal?('GET') ? "\n -G" : "\n"
35
- data += @data.each.map { |key, value| "-d \"#{key}\"=\"#{value}\"" }.join("\n")
35
+ data += case @headers['Content-Type']
36
+ when 'application/x-www-form-urlencoded'
37
+ @data.each.map { |key, value| "-d \"#{key}\"=\"#{value}\"" }.join("\n")
38
+ when 'application/json'
39
+ "-d '#{JSON.generate(@data)}'"
40
+ else
41
+ @data.each.map { |key, value| "-d \"#{key}\"=\"#{value}\"" }.join("\n")
42
+ end
36
43
  end
37
44
 
38
45
  "#{auth} #{@method} #{@url}#{params}#{data}#{headers}"
@@ -9,11 +9,10 @@ module Twilio
9
9
  attr_reader :timeout, :last_response, :last_request, :connection
10
10
 
11
11
  def initialize(proxy_prot = nil, proxy_addr = nil, proxy_port = nil, proxy_user = nil, proxy_pass = nil,
12
- ssl_ca_file = nil, timeout: nil)
12
+ timeout: nil)
13
13
  @proxy_prot = proxy_prot
14
14
  @proxy_path = "#{proxy_addr}:#{proxy_port}" if proxy_addr && proxy_port
15
15
  @proxy_auth = "#{proxy_user}:#{proxy_pass}@" if proxy_pass && proxy_user
16
- @ssl_ca_file = ssl_ca_file
17
16
  @timeout = timeout
18
17
  @adapter = Faraday.default_adapter
19
18
  @configure_connection_blocks = []
@@ -27,9 +26,17 @@ module Twilio
27
26
  end
28
27
 
29
28
  def _request(request) # rubocop:disable Metrics/MethodLength
29
+ middle_ware = case request.headers['Content-Type']
30
+ when 'application/json'
31
+ :json
32
+ when 'application/x-www-form-urlencoded'
33
+ :url_encoded
34
+ else
35
+ :url_encoded
36
+ end
30
37
  @connection = Faraday.new(url: request.host + ':' + request.port.to_s, ssl: { verify: true }) do |f|
31
38
  f.options.params_encoder = Faraday::FlatParamsEncoder
32
- f.request :url_encoded
39
+ f.request(middle_ware)
33
40
  f.headers = request.headers
34
41
  if Faraday::VERSION.start_with?('2.')
35
42
  f.request(:authorization, :basic, request.auth[0], request.auth[1])
@@ -110,8 +110,6 @@ module Twilio
110
110
  end
111
111
 
112
112
 
113
- ##
114
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
115
113
  class PaymentContext < InstanceContext
116
114
  ##
117
115
  # Initialize the PaymentContext
@@ -164,12 +164,12 @@ module Twilio
164
164
  # @param [String] from Only include calls from this phone number, SIP address, Client identifier or SIM SID.
165
165
  # @param [String] parent_call_sid Only include calls spawned by calls with this SID.
166
166
  # @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
167
- # @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
168
- # @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
169
- # @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
170
- # @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
171
- # @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
172
- # @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
167
+ # @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
168
+ # @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
169
+ # @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
170
+ # @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
171
+ # @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
172
+ # @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
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
@@ -202,12 +202,12 @@ module Twilio
202
202
  # @param [String] from Only include calls from this phone number, SIP address, Client identifier or SIM SID.
203
203
  # @param [String] parent_call_sid Only include calls spawned by calls with this SID.
204
204
  # @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
205
- # @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
206
- # @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
207
- # @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
208
- # @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
209
- # @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
210
- # @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
205
+ # @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
206
+ # @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
207
+ # @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
208
+ # @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
209
+ # @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
210
+ # @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
211
211
  # @param [Integer] limit Upper limit for the number of records to return. stream()
212
212
  # guarantees to never return more than limit. Default is no limit
213
213
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -255,12 +255,12 @@ module Twilio
255
255
  # @param [String] from Only include calls from this phone number, SIP address, Client identifier or SIM SID.
256
256
  # @param [String] parent_call_sid Only include calls spawned by calls with this SID.
257
257
  # @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
258
- # @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
259
- # @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
260
- # @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
261
- # @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
262
- # @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
263
- # @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
258
+ # @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
259
+ # @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
260
+ # @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
261
+ # @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
262
+ # @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
263
+ # @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
264
264
  # @param [String] page_token PageToken provided by the API
265
265
  # @param [Integer] page_number Page Number, this value is simply for client state
266
266
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -649,13 +649,13 @@ module Twilio
649
649
  end
650
650
 
651
651
  ##
652
- # @return [Time] The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
652
+ # @return [Time] The date and time in UTC that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
653
653
  def date_created
654
654
  @properties['date_created']
655
655
  end
656
656
 
657
657
  ##
658
- # @return [Time] The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
658
+ # @return [Time] The date and time in UTC that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
659
659
  def date_updated
660
660
  @properties['date_updated']
661
661
  end
@@ -709,13 +709,13 @@ module Twilio
709
709
  end
710
710
 
711
711
  ##
712
- # @return [Time] The start time of the call, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed.
712
+ # @return [Time] The start time of the call, given as UTC in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed.
713
713
  def start_time
714
714
  @properties['start_time']
715
715
  end
716
716
 
717
717
  ##
718
- # @return [Time] The time the call ended, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully.
718
+ # @return [Time] The time the call ended, given as UTC in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully.
719
719
  def end_time
720
720
  @properties['end_time']
721
721
  end
@@ -478,6 +478,7 @@ module Twilio
478
478
  'hold' => payload['hold'],
479
479
  'start_conference_on_enter' => payload['start_conference_on_enter'],
480
480
  'status' => payload['status'],
481
+ 'queue_time' => payload['queue_time'],
481
482
  'uri' => payload['uri'],
482
483
  }
483
484
 
@@ -575,6 +576,12 @@ module Twilio
575
576
  @properties['status']
576
577
  end
577
578
 
579
+ ##
580
+ # @return [String] The wait time in milliseconds before participant's call is placed. Only available in the response to a create participant request.
581
+ def queue_time
582
+ @properties['queue_time']
583
+ end
584
+
578
585
  ##
579
586
  # @return [String] The URI of the resource, relative to `https://api.twilio.com`.
580
587
  def uri
@@ -37,12 +37,12 @@ module Twilio
37
37
  # Lists ConferenceInstance records from the API as a list.
38
38
  # Unlike stream(), this operation is eager and will load `limit` records into
39
39
  # memory before returning.
40
- # @param [Date] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
41
- # @param [Date] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
42
- # @param [Date] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
43
- # @param [Date] date_updated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
44
- # @param [Date] date_updated_before The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
45
- # @param [Date] date_updated_after The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
40
+ # @param [Date] date_created Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
41
+ # @param [Date] date_created_before Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
42
+ # @param [Date] date_created_after Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
43
+ # @param [Date] date_updated Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
44
+ # @param [Date] date_updated_before Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
45
+ # @param [Date] date_updated_after Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
46
46
  # @param [String] friendly_name The string that identifies the Conference resources to read.
47
47
  # @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
48
48
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -71,12 +71,12 @@ module Twilio
71
71
  # Streams Instance records from the API as an Enumerable.
72
72
  # This operation lazily loads records as efficiently as possible until the limit
73
73
  # is reached.
74
- # @param [Date] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
75
- # @param [Date] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
76
- # @param [Date] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
77
- # @param [Date] date_updated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
78
- # @param [Date] date_updated_before The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
79
- # @param [Date] date_updated_after The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
74
+ # @param [Date] date_created Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
75
+ # @param [Date] date_created_before Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
76
+ # @param [Date] date_created_after Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
77
+ # @param [Date] date_updated Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
78
+ # @param [Date] date_updated_before Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
79
+ # @param [Date] date_updated_after Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
80
80
  # @param [String] friendly_name The string that identifies the Conference resources to read.
81
81
  # @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
82
82
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -120,12 +120,12 @@ module Twilio
120
120
  ##
121
121
  # Retrieve a single page of ConferenceInstance records from the API.
122
122
  # Request is executed immediately.
123
- # @param [Date] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
124
- # @param [Date] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
125
- # @param [Date] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
126
- # @param [Date] date_updated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
127
- # @param [Date] date_updated_before The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
128
- # @param [Date] date_updated_after The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
123
+ # @param [Date] date_created Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
124
+ # @param [Date] date_created_before Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
125
+ # @param [Date] date_created_after Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
126
+ # @param [Date] date_updated Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
127
+ # @param [Date] date_updated_before Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
128
+ # @param [Date] date_updated_after Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
129
129
  # @param [String] friendly_name The string that identifies the Conference resources to read.
130
130
  # @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
131
131
  # @param [String] page_token PageToken provided by the API
@@ -369,13 +369,13 @@ module Twilio
369
369
  end
370
370
 
371
371
  ##
372
- # @return [Time] The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
372
+ # @return [Time] The date and time in UTC that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
373
373
  def date_created
374
374
  @properties['date_created']
375
375
  end
376
376
 
377
377
  ##
378
- # @return [Time] The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
378
+ # @return [Time] The date and time in UTC that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
379
379
  def date_updated
380
380
  @properties['date_updated']
381
381
  end
@@ -387,7 +387,7 @@ module Twilio
387
387
  end
388
388
 
389
389
  ##
390
- # @return [String] A string that you assigned to describe this conference room. Maxiumum length is 128 characters.
390
+ # @return [String] A string that you assigned to describe this conference room. Maximum length is 128 characters.
391
391
  def friendly_name
392
392
  @properties['friendly_name']
393
393
  end
@@ -399,7 +399,7 @@ module Twilio
399
399
  end
400
400
 
401
401
  ##
402
- # @return [String] The unique string that that we created to identify this Conference resource.
402
+ # @return [String] The unique, Twilio-provided string used to identify this Conference resource.
403
403
  def sid
404
404
  @properties['sid']
405
405
  end
@@ -128,8 +128,6 @@ module Twilio
128
128
  end
129
129
 
130
130
 
131
- ##
132
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
133
131
  class AssignedAddOnExtensionContext < InstanceContext
134
132
  ##
135
133
  # Initialize the AssignedAddOnExtensionContext
@@ -149,8 +149,6 @@ module Twilio
149
149
  end
150
150
 
151
151
 
152
- ##
153
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
154
152
  class AssignedAddOnContext < InstanceContext
155
153
  ##
156
154
  # Initialize the AssignedAddOnContext
@@ -82,9 +82,9 @@ module Twilio
82
82
  @lookups ||= Lookups.new self
83
83
  end
84
84
  ##
85
- # Access the Media Twilio Domain
86
- def media
87
- @media ||= Media.new self
85
+ # Access the PreviewMessaging Twilio Domain
86
+ def preview_messaging
87
+ @preview_messaging ||= PreviewMessaging.new self
88
88
  end
89
89
  ##
90
90
  # Access the Messaging Twilio Domain
@@ -112,6 +112,11 @@ module Twilio
112
112
  @numbers ||= Numbers.new self
113
113
  end
114
114
  ##
115
+ # Access the Oauth Twilio Domain
116
+ def oauth
117
+ @oauth ||= Oauth.new self
118
+ end
119
+ ##
115
120
  # Access the Preview Twilio Domain
116
121
  def preview
117
122
  @preview ||= Preview.new self