twilio-ruby 7.8.0 → 7.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +27 -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/conference/participant.rb +5 -2
  12. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +1 -1
  13. data/lib/twilio-ruby/rest/client.rb +5 -0
  14. data/lib/twilio-ruby/rest/content/v1/content.rb +38 -1
  15. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +17 -1
  16. data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +217 -0
  17. data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +217 -0
  18. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +43 -0
  19. data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +232 -0
  20. data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +213 -0
  21. data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +623 -0
  22. data/lib/twilio-ruby/rest/knowledge/v1.rb +49 -0
  23. data/lib/twilio-ruby/rest/knowledge.rb +6 -0
  24. data/lib/twilio-ruby/rest/knowledge_base.rb +38 -0
  25. data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +140 -0
  26. data/lib/twilio-ruby/rest/messaging/v2.rb +6 -0
  27. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +96 -8
  28. data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +339 -0
  29. data/lib/twilio-ruby/rest/numbers/v3.rb +40 -0
  30. data/lib/twilio-ruby/rest/numbers_base.rb +5 -0
  31. data/lib/twilio-ruby/rest/oauth/v2/token.rb +186 -0
  32. data/lib/twilio-ruby/rest/oauth/v2.rb +40 -0
  33. data/lib/twilio-ruby/rest/oauth_base.rb +6 -1
  34. data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +312 -0
  35. data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +340 -0
  36. data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +467 -0
  37. data/lib/twilio-ruby/rest/verify/v2/service.rb +75 -0
  38. data/lib/twilio-ruby/rest/voice_base.rb +6 -1
  39. data/lib/twilio-ruby/twiml/voice_response.rb +20 -0
  40. data/lib/twilio-ruby/version.rb +1 -1
  41. data/twilio-ruby.gemspec +1 -1
  42. metadata +20 -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: 8ed68053a51691a7772045403d8fa29d5ff86d9a
4
+ data.tar.gz: e1507f6091b864caf41abd0da30416ae793135bd
5
5
  SHA512:
6
- metadata.gz: fbbfe2dbdb666e8f3244098354e9dd87c22b9d3ed902181454297c0e20758597c36428ccb92f9c5efea65f4d8983a6e040e3c93cf63535b0184f22cf59371737
7
- data.tar.gz: 44315005800e2958406e530a8991874f30bbb7e870da9159da22cd61f5f17ebb8f6f103d32040d3532f3970c0babbdac3b23c28d9eff1231dc365acd2bfdecae
6
+ metadata.gz: 4150296b045e7a008046ebc083d6547bf81d0f7a3b1998623d6ce5a5fb79c29230ac14954092b6ce05c20dcaa3112d0551a4cc87c55290f912aece5484cf4a9a
7
+ data.tar.gz: 45948295c59d88c401e0cba4b03ac1c0a115c1724a1ca185e66ca544532f262cd63769e59584c74c680e33cb00443982a5ed603191b8ab66b611c9f61a1a4360
data/CHANGES.md CHANGED
@@ -1,6 +1,33 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2025-09-25] Version 7.8.2
5
+ --------------------------
6
+ **Api**
7
+ - Added optional parameter `CallerDisplayName` for conference participant outbound
8
+ - Updated description for property `to` in the participant create request
9
+
10
+
11
+ [2025-09-18] Version 7.8.1
12
+ --------------------------
13
+ **Library - Chore**
14
+ - [PR #753](https://github.com/twilio/twilio-ruby/pull/753): Support JWT 3.x. Thanks to [@hieuk09](https://github.com/hieuk09)!
15
+
16
+ **Api**
17
+ - Add `date_created` property to media resource and date_created filtering parameters for read action
18
+ - 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
19
+
20
+ **Intelligence**
21
+ - Add encryption_credential_sid field in transcripts and services in v2
22
+
23
+ **Trusthub**
24
+ - Remove beta feature flag for all TH APIs
25
+ - Remove beta feature flag for ComplianceInquiries API to support OneConsole traffic
26
+
27
+ **Twiml**
28
+ - Add new noun `<AiSession>`
29
+
30
+
4
31
  [2025-09-04] Version 7.8.0
5
32
  --------------------------
6
33
  **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.2'
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.2
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`.
@@ -36,7 +36,7 @@ module Twilio
36
36
  ##
37
37
  # Create the ParticipantInstance
38
38
  # @param [String] from The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `from` must also be a phone number. If `to` is sip address, this value of `from` should be a username portion to be used to populate the P-Asserted-Identity header that is passed to the SIP endpoint.
39
- # @param [String] to The phone number, SIP address, or Client identifier that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `sip:name@company.com`. Client identifiers are formatted `client:name`. [Custom parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified.
39
+ # @param [String] to The phone number, SIP address, Client, TwiML App identifier that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `sip:name@company.com`. Client identifiers are formatted `client:name`. TwiML App identifiers are formatted `app:<APP_SID>`. [Custom parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified.
40
40
  # @param [String] status_callback The URL we should call using the `status_callback_method` to send status information to your application.
41
41
  # @param [String] status_callback_method The HTTP method we should use to call `status_callback`. Can be: `GET` and `POST` and defaults to `POST`.
42
42
  # @param [Array[String]] status_callback_event The conference state changes that should generate a call to `status_callback`. Can be: `initiated`, `ringing`, `answered`, and `completed`. Separate multiple values with a space. The default value is `completed`.
@@ -83,6 +83,7 @@ module Twilio
83
83
  # @param [String] amd_status_callback_method The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
84
84
  # @param [String] trim Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
85
85
  # @param [String] call_token A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
86
+ # @param [String] caller_display_name The name that appears to the called party for this call. Must be between 2 and 255 characters.
86
87
  # @return [ParticipantInstance] Created ParticipantInstance
87
88
  def create(
88
89
  from: nil,
@@ -132,7 +133,8 @@ module Twilio
132
133
  amd_status_callback: :unset,
133
134
  amd_status_callback_method: :unset,
134
135
  trim: :unset,
135
- call_token: :unset
136
+ call_token: :unset,
137
+ caller_display_name: :unset
136
138
  )
137
139
 
138
140
  data = Twilio::Values.of({
@@ -184,6 +186,7 @@ module Twilio
184
186
  'AmdStatusCallbackMethod' => amd_status_callback_method,
185
187
  'Trim' => trim,
186
188
  'CallToken' => call_token,
189
+ 'CallerDisplayName' => caller_display_name,
187
190
  })
188
191
 
189
192
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -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
@@ -92,6 +92,11 @@ module Twilio
92
92
  @ip_messaging ||= IpMessaging.new self
93
93
  end
94
94
  ##
95
+ # Access the Knowledge Twilio Domain
96
+ def knowledge
97
+ @knowledge ||= Knowledge.new self
98
+ end
99
+ ##
95
100
  # Access the Lookups Twilio Domain
96
101
  def lookups
97
102
  @lookups ||= Lookups.new self
@@ -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