twilio-ruby 7.8.0 → 7.8.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 (32) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +20 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +3 -3
  5. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +3 -3
  6. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +3 -3
  7. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +3 -3
  8. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +3 -3
  9. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +3 -3
  10. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +3 -3
  11. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +1 -1
  12. data/lib/twilio-ruby/rest/content/v1/content.rb +38 -1
  13. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +17 -1
  14. data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +217 -0
  15. data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +217 -0
  16. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +43 -0
  17. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +3 -3
  18. data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +339 -0
  19. data/lib/twilio-ruby/rest/numbers/v3.rb +40 -0
  20. data/lib/twilio-ruby/rest/numbers_base.rb +5 -0
  21. data/lib/twilio-ruby/rest/oauth/v2/token.rb +186 -0
  22. data/lib/twilio-ruby/rest/oauth/v2.rb +40 -0
  23. data/lib/twilio-ruby/rest/oauth_base.rb +6 -1
  24. data/lib/twilio-ruby/rest/verify/v2/new_challenge.rb +335 -0
  25. data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +297 -0
  26. data/lib/twilio-ruby/rest/verify/v2/service.rb +38 -0
  27. data/lib/twilio-ruby/rest/verify/v2.rb +15 -0
  28. data/lib/twilio-ruby/rest/voice_base.rb +6 -1
  29. data/lib/twilio-ruby/twiml/voice_response.rb +20 -0
  30. data/lib/twilio-ruby/version.rb +1 -1
  31. data/twilio-ruby.gemspec +1 -1
  32. metadata +12 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e88cf9b829dc06745800593b0c509f9fe4cf0b25
4
- data.tar.gz: 718f708c4c309bc3cd8046c823cc153702a79729
3
+ metadata.gz: 63da26cfdb1e46e561d69fc12866a3d6fe004da7
4
+ data.tar.gz: 483a0abb0e0d9dee81f63057e181faaad5b193b5
5
5
  SHA512:
6
- metadata.gz: fbbfe2dbdb666e8f3244098354e9dd87c22b9d3ed902181454297c0e20758597c36428ccb92f9c5efea65f4d8983a6e040e3c93cf63535b0184f22cf59371737
7
- data.tar.gz: 44315005800e2958406e530a8991874f30bbb7e870da9159da22cd61f5f17ebb8f6f103d32040d3532f3970c0babbdac3b23c28d9eff1231dc365acd2bfdecae
6
+ metadata.gz: e8df0759d0aa220c2b26e26fe4210641eb87cdcb645a1efc4c83ca8fed8bf60c92ea148435798302e1e2dac9f13fd26ab4ae907d2718c4036e6169d5530beee9
7
+ data.tar.gz: 3db5b3c4c4343e61a5f8371c6671c28064b31053b1d11963cbbdd6e7913ee5834d34df51b530dbd4b9d43ba7837dd0da0e332ae4935cd85ed365e82e32b9e481
data/CHANGES.md CHANGED
@@ -1,6 +1,26 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2025-09-18] Version 7.8.1
5
+ --------------------------
6
+ **Library - Chore**
7
+ - [PR #753](https://github.com/twilio/twilio-ruby/pull/753): Support JWT 3.x. Thanks to [@hieuk09](https://github.com/hieuk09)!
8
+
9
+ **Api**
10
+ - Add `date_created` property to media resource and date_created filtering parameters for read action
11
+ - Updated the Recordings Resource `channels` property to clarify channels = # of channels in the recording resource and how to specify the # of channels in recording download
12
+
13
+ **Intelligence**
14
+ - Add encryption_credential_sid field in transcripts and services in v2
15
+
16
+ **Trusthub**
17
+ - Remove beta feature flag for all TH APIs
18
+ - Remove beta feature flag for ComplianceInquiries API to support OneConsole traffic
19
+
20
+ **Twiml**
21
+ - Add new noun `<AiSession>`
22
+
23
+
4
24
  [2025-09-04] Version 7.8.0
5
25
  --------------------------
6
26
  **Api**
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', '~> 7.8.0'
42
+ gem 'twilio-ruby', '~> 7.8.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 7.8.0
48
+ gem install twilio-ruby -v 7.8.1
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
@@ -39,7 +39,7 @@ module Twilio
39
39
  # Unlike stream(), this operation is eager and will load `limit` records into
40
40
  # memory before returning.
41
41
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
42
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern). If specified, this value must have at least two characters.
42
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
43
43
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
44
44
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
45
45
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -93,7 +93,7 @@ module Twilio
93
93
  # This operation lazily loads records as efficiently as possible until the limit
94
94
  # is reached.
95
95
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
96
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern). If specified, this value must have at least two characters.
96
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
97
97
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
98
98
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
99
99
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -162,7 +162,7 @@ module Twilio
162
162
  # Retrieve a single page of LocalInstance records from the API.
163
163
  # Request is executed immediately.
164
164
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
165
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern). If specified, this value must have at least two characters.
165
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
166
166
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
167
167
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
168
168
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -39,7 +39,7 @@ module Twilio
39
39
  # Unlike stream(), this operation is eager and will load `limit` records into
40
40
  # memory before returning.
41
41
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
42
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
42
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
43
43
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
44
44
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
45
45
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -93,7 +93,7 @@ module Twilio
93
93
  # This operation lazily loads records as efficiently as possible until the limit
94
94
  # is reached.
95
95
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
96
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
96
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
97
97
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
98
98
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
99
99
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -162,7 +162,7 @@ module Twilio
162
162
  # Retrieve a single page of MachineToMachineInstance records from the API.
163
163
  # Request is executed immediately.
164
164
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
165
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
165
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
166
166
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
167
167
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
168
168
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -39,7 +39,7 @@ module Twilio
39
39
  # Unlike stream(), this operation is eager and will load `limit` records into
40
40
  # memory before returning.
41
41
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
42
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
42
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
43
43
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
44
44
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
45
45
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -93,7 +93,7 @@ module Twilio
93
93
  # This operation lazily loads records as efficiently as possible until the limit
94
94
  # is reached.
95
95
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
96
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
96
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
97
97
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
98
98
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
99
99
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -162,7 +162,7 @@ module Twilio
162
162
  # Retrieve a single page of MobileInstance records from the API.
163
163
  # Request is executed immediately.
164
164
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
165
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
165
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
166
166
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
167
167
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
168
168
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -39,7 +39,7 @@ module Twilio
39
39
  # Unlike stream(), this operation is eager and will load `limit` records into
40
40
  # memory before returning.
41
41
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
42
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
42
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
43
43
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
44
44
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
45
45
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -93,7 +93,7 @@ module Twilio
93
93
  # This operation lazily loads records as efficiently as possible until the limit
94
94
  # is reached.
95
95
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
96
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
96
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
97
97
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
98
98
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
99
99
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -162,7 +162,7 @@ module Twilio
162
162
  # Retrieve a single page of NationalInstance records from the API.
163
163
  # Request is executed immediately.
164
164
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
165
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
165
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
166
166
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
167
167
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
168
168
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -39,7 +39,7 @@ module Twilio
39
39
  # Unlike stream(), this operation is eager and will load `limit` records into
40
40
  # memory before returning.
41
41
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
42
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
42
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
43
43
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
44
44
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
45
45
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -93,7 +93,7 @@ module Twilio
93
93
  # This operation lazily loads records as efficiently as possible until the limit
94
94
  # is reached.
95
95
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
96
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
96
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
97
97
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
98
98
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
99
99
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -162,7 +162,7 @@ module Twilio
162
162
  # Retrieve a single page of SharedCostInstance records from the API.
163
163
  # Request is executed immediately.
164
164
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
165
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
165
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
166
166
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
167
167
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
168
168
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -39,7 +39,7 @@ module Twilio
39
39
  # Unlike stream(), this operation is eager and will load `limit` records into
40
40
  # memory before returning.
41
41
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
42
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
42
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
43
43
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
44
44
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
45
45
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -93,7 +93,7 @@ module Twilio
93
93
  # This operation lazily loads records as efficiently as possible until the limit
94
94
  # is reached.
95
95
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
96
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
96
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
97
97
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
98
98
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
99
99
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -162,7 +162,7 @@ module Twilio
162
162
  # Retrieve a single page of TollFreeInstance records from the API.
163
163
  # Request is executed immediately.
164
164
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
165
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
165
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
166
166
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
167
167
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
168
168
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -39,7 +39,7 @@ module Twilio
39
39
  # Unlike stream(), this operation is eager and will load `limit` records into
40
40
  # memory before returning.
41
41
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
42
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
42
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
43
43
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
44
44
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
45
45
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -93,7 +93,7 @@ module Twilio
93
93
  # This operation lazily loads records as efficiently as possible until the limit
94
94
  # is reached.
95
95
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
96
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
96
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
97
97
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
98
98
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
99
99
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -162,7 +162,7 @@ module Twilio
162
162
  # Retrieve a single page of VoipInstance records from the API.
163
163
  # Request is executed immediately.
164
164
  # @param [String] area_code The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.
165
- # @param [String] contains The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters.
165
+ # @param [String] contains Matching pattern to identify phone numbers. This pattern can be between 2 and 16 characters long and allows all digits (0-9) and all non-diacritic latin alphabet letters (a-z, A-Z). It accepts four meta-characters: `*`, `%`, `+`, `$`. The `*` and `%` meta-characters can appear multiple times in the pattern. To match wildcards at the beginning or end of the pattern, use `*` to match any single character or `%` to match a sequence of characters. If you use the wildcard patterns, it must include at least two non-meta-characters. To match the beginning of a pattern, start the pattern with `+`. To match the end of the pattern, append the pattern with `$`. These meta-characters can't be adjacent to each other.
166
166
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text messages. Can be: `true` or `false`.
167
167
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages. Can be: `true` or `false`.
168
168
  # @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can be: `true` or `false`.
@@ -428,7 +428,7 @@ module Twilio
428
428
  end
429
429
 
430
430
  ##
431
- # @return [String] The number of channels in the final recording file. Can be: `1` or `2`. Default: `1`.
431
+ # @return [String] The number of channels in the recording resource. For information on specifying the number of channels in the downloaded recording file, check out [Fetch a Recording’s media file](https://www.twilio.com/docs/voice/api/recording#download-dual-channel-media-file).
432
432
  def channels
433
433
  @properties['channels']
434
434
  end
@@ -502,7 +502,8 @@ module Twilio
502
502
  # @param [twilio_schedule]: [ContentList.TwilioSchedule]
503
503
  # @param [whatsapp_card]: [ContentList.WhatsappCard]
504
504
  # @param [whatsapp_authentication]: [ContentList.WhatsappAuthentication]
505
- attr_accessor :twilio_text, :twilio_media, :twilio_location, :twilio_list_picker, :twilio_call_to_action, :twilio_quick_reply, :twilio_card, :twilio_catalog, :twilio_carousel, :twilio_flows, :twilio_schedule, :whatsapp_card, :whatsapp_authentication
505
+ # @param [whatsapp_flows]: [ContentList.WhatsappFlows]
506
+ attr_accessor :twilio_text, :twilio_media, :twilio_location, :twilio_list_picker, :twilio_call_to_action, :twilio_quick_reply, :twilio_card, :twilio_catalog, :twilio_carousel, :twilio_flows, :twilio_schedule, :whatsapp_card, :whatsapp_authentication, :whatsapp_flows
506
507
  def initialize(payload)
507
508
  @twilio_text = payload["twilio_text"]
508
509
  @twilio_media = payload["twilio_media"]
@@ -517,6 +518,7 @@ module Twilio
517
518
  @twilio_schedule = payload["twilio_schedule"]
518
519
  @whatsapp_card = payload["whatsapp_card"]
519
520
  @whatsapp_authentication = payload["whatsapp_authentication"]
521
+ @whatsapp_flows = payload["whatsapp_flows"]
520
522
  end
521
523
  def to_json(options = {})
522
524
  {
@@ -533,6 +535,7 @@ module Twilio
533
535
  "twilio/schedule": @twilio_schedule,
534
536
  "whatsapp/card": @whatsapp_card,
535
537
  "whatsapp/authentication": @whatsapp_authentication,
538
+ "whatsapp/flows": @whatsapp_flows,
536
539
  }.to_json(options)
537
540
  end
538
541
  end
@@ -581,6 +584,40 @@ module Twilio
581
584
  end
582
585
  end
583
586
 
587
+ class WhatsappFlows
588
+ # @param [body]: [String]
589
+ # @param [button_text]: [String]
590
+ # @param [subtitle]: [String]
591
+ # @param [media_url]: [String]
592
+ # @param [flow_id]: [String]
593
+ # @param [flow_token]: [String]
594
+ # @param [flow_first_page_id]: [String]
595
+ # @param [is_flow_first_page_endpoint]: [Boolean]
596
+ attr_accessor :body, :button_text, :subtitle, :media_url, :flow_id, :flow_token, :flow_first_page_id, :is_flow_first_page_endpoint
597
+ def initialize(payload)
598
+ @body = payload["body"]
599
+ @button_text = payload["button_text"]
600
+ @subtitle = payload["subtitle"]
601
+ @media_url = payload["media_url"]
602
+ @flow_id = payload["flow_id"]
603
+ @flow_token = payload["flow_token"]
604
+ @flow_first_page_id = payload["flow_first_page_id"]
605
+ @is_flow_first_page_endpoint = payload["is_flow_first_page_endpoint"]
606
+ end
607
+ def to_json(options = {})
608
+ {
609
+ "body": @body,
610
+ "button_text": @button_text,
611
+ "subtitle": @subtitle,
612
+ "media_url": @media_url,
613
+ "flow_id": @flow_id,
614
+ "flow_token": @flow_token,
615
+ "flow_first_page_id": @flow_first_page_id,
616
+ "is_flow_first_page_endpoint": @is_flow_first_page_endpoint,
617
+ }.to_json(options)
618
+ end
619
+ end
620
+
584
621
 
585
622
  ##
586
623
  # Initialize the ContentList
@@ -41,6 +41,7 @@ module Twilio
41
41
  # @param [Boolean] media_redaction Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.
42
42
  # @param [String] webhook_url The URL Twilio will request when executing the Webhook.
43
43
  # @param [HttpMethod] webhook_http_method
44
+ # @param [String] encryption_credential_sid The unique SID identifier of the Public Key resource used to encrypt the sentences and operator results.
44
45
  # @return [ServiceInstance] Created ServiceInstance
45
46
  def create(
46
47
  unique_name: nil,
@@ -51,7 +52,8 @@ module Twilio
51
52
  auto_redaction: :unset,
52
53
  media_redaction: :unset,
53
54
  webhook_url: :unset,
54
- webhook_http_method: :unset
55
+ webhook_http_method: :unset,
56
+ encryption_credential_sid: :unset
55
57
  )
56
58
 
57
59
  data = Twilio::Values.of({
@@ -64,6 +66,7 @@ module Twilio
64
66
  'MediaRedaction' => media_redaction,
65
67
  'WebhookUrl' => webhook_url,
66
68
  'WebhookHttpMethod' => webhook_http_method,
69
+ 'EncryptionCredentialSid' => encryption_credential_sid,
67
70
  })
68
71
 
69
72
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -232,6 +235,7 @@ module Twilio
232
235
  # @param [Boolean] media_redaction Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.
233
236
  # @param [String] webhook_url The URL Twilio will request when executing the Webhook.
234
237
  # @param [HttpMethod] webhook_http_method
238
+ # @param [String] encryption_credential_sid The unique SID identifier of the Public Key resource used to encrypt the sentences and operator results.
235
239
  # @param [String] if_match The If-Match HTTP request header
236
240
  # @return [ServiceInstance] Updated ServiceInstance
237
241
  def update(
@@ -243,6 +247,7 @@ module Twilio
243
247
  media_redaction: :unset,
244
248
  webhook_url: :unset,
245
249
  webhook_http_method: :unset,
250
+ encryption_credential_sid: :unset,
246
251
  if_match: :unset
247
252
  )
248
253
 
@@ -255,6 +260,7 @@ module Twilio
255
260
  'MediaRedaction' => media_redaction,
256
261
  'WebhookUrl' => webhook_url,
257
262
  'WebhookHttpMethod' => webhook_http_method,
263
+ 'EncryptionCredentialSid' => encryption_credential_sid,
258
264
  })
259
265
 
260
266
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, })
@@ -346,6 +352,7 @@ module Twilio
346
352
  'webhook_http_method' => payload['webhook_http_method'],
347
353
  'read_only_attached_operator_sids' => payload['read_only_attached_operator_sids'],
348
354
  'version' => payload['version'] == nil ? payload['version'] : payload['version'].to_i,
355
+ 'encryption_credential_sid' => payload['encryption_credential_sid'],
349
356
  }
350
357
 
351
358
  # Context
@@ -460,6 +467,12 @@ module Twilio
460
467
  @properties['version']
461
468
  end
462
469
 
470
+ ##
471
+ # @return [String] The unique SID identifier of the Public Key resource used to encrypt the sentences and operator results.
472
+ def encryption_credential_sid
473
+ @properties['encryption_credential_sid']
474
+ end
475
+
463
476
  ##
464
477
  # Delete the ServiceInstance
465
478
  # @return [Boolean] True if delete succeeds, false otherwise
@@ -486,6 +499,7 @@ module Twilio
486
499
  # @param [Boolean] media_redaction Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.
487
500
  # @param [String] webhook_url The URL Twilio will request when executing the Webhook.
488
501
  # @param [HttpMethod] webhook_http_method
502
+ # @param [String] encryption_credential_sid The unique SID identifier of the Public Key resource used to encrypt the sentences and operator results.
489
503
  # @param [String] if_match The If-Match HTTP request header
490
504
  # @return [ServiceInstance] Updated ServiceInstance
491
505
  def update(
@@ -497,6 +511,7 @@ module Twilio
497
511
  media_redaction: :unset,
498
512
  webhook_url: :unset,
499
513
  webhook_http_method: :unset,
514
+ encryption_credential_sid: :unset,
500
515
  if_match: :unset
501
516
  )
502
517
 
@@ -509,6 +524,7 @@ module Twilio
509
524
  media_redaction: media_redaction,
510
525
  webhook_url: webhook_url,
511
526
  webhook_http_method: webhook_http_method,
527
+ encryption_credential_sid: encryption_credential_sid,
512
528
  if_match: if_match,
513
529
  )
514
530
  end