twilio-ruby 5.71.0 → 5.72.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.
- checksums.yaml +4 -4
- data/CHANGES.md +29 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +34 -1
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +559 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +16 -0
- data/lib/twilio-ruby/rest/messaging.rb +8 -0
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +215 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +18 -0
- data/lib/twilio-ruby/rest/verify.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_anonymize.rb +240 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +16 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +19 -5
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ff85f862e19ab053e7c76008d7958ace553b801
|
4
|
+
data.tar.gz: 0ef6213308056d5194d86331595f636a4a269975
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d5e18e054f72a4923b5c887e8340a6f020f643344e5fc917bbad822cc86c7d7d79cb7d8b2bb4221f9118718959197f298e30bed6924166e575fa46eff2d3752
|
7
|
+
data.tar.gz: c022194789766eab0873586d836b2b08010e4c54f84a1f4de5595bc6cb6a4234d6a119d43699f1f0433b6d1095fa15bb74830b59466252a3e9a50baf1078dd81
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,35 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2022-10-05] Version 5.72.1
|
5
|
+
---------------------------
|
6
|
+
**Api**
|
7
|
+
- Added `virtual-agent` to `usage_record` API.
|
8
|
+
- Add AMD attributes to participant create request
|
9
|
+
|
10
|
+
**Twiml**
|
11
|
+
- Add AMD attributes to `Number` and `Sip`
|
12
|
+
|
13
|
+
|
14
|
+
[2022-09-07] Version 5.72.0
|
15
|
+
---------------------------
|
16
|
+
**Flex**
|
17
|
+
- Removed redundant `close` status from Flex Interactions flow **(breaking change)**
|
18
|
+
- Adding `debugger_integration` and `flex_ui_status_report` to Flex Configuration
|
19
|
+
|
20
|
+
**Messaging**
|
21
|
+
- Add create, list and get tollfree verification API
|
22
|
+
|
23
|
+
**Verify**
|
24
|
+
- Verify SafeList API endpoints added.
|
25
|
+
|
26
|
+
**Video**
|
27
|
+
- Add `Anonymize` API
|
28
|
+
|
29
|
+
**Twiml**
|
30
|
+
- Update `event` value `call-in-progress` to `call-answered`
|
31
|
+
|
32
|
+
|
4
33
|
[2022-08-24] Version 5.71.0
|
5
34
|
---------------------------
|
6
35
|
**Library - Test**
|
data/README.md
CHANGED
@@ -34,13 +34,13 @@ This library supports the following Ruby implementations:
|
|
34
34
|
To install using [Bundler][bundler] grab the latest stable version:
|
35
35
|
|
36
36
|
```ruby
|
37
|
-
gem 'twilio-ruby', '~> 5.
|
37
|
+
gem 'twilio-ruby', '~> 5.72.1'
|
38
38
|
```
|
39
39
|
|
40
40
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
41
41
|
|
42
42
|
```bash
|
43
|
-
gem install twilio-ruby -v 5.
|
43
|
+
gem install twilio-ruby -v 5.72.1
|
44
44
|
```
|
45
45
|
|
46
46
|
To build and install the development branch yourself from the latest source:
|
@@ -169,8 +169,34 @@ module Twilio
|
|
169
169
|
# Twilio. `both` records the audio that is received and sent by Twilio.
|
170
170
|
# @param [String] time_limit The maximum duration of the call in seconds.
|
171
171
|
# Constraints depend on account and configuration.
|
172
|
+
# @param [String] machine_detection Whether to detect if a human, answering
|
173
|
+
# machine, or fax has picked up the call. Can be: `Enable` or `DetectMessageEnd`.
|
174
|
+
# Use `Enable` if you would like us to return `AnsweredBy` as soon as the called
|
175
|
+
# party is identified. Use `DetectMessageEnd`, if you would like to leave a
|
176
|
+
# message on an answering machine. If `send_digits` is provided, this parameter is
|
177
|
+
# ignored. For more information, see {Answering Machine
|
178
|
+
# Detection}[https://www.twilio.com/docs/voice/answering-machine-detection].
|
179
|
+
# @param [String] machine_detection_timeout The number of seconds that we should
|
180
|
+
# attempt to detect an answering machine before timing out and sending a voice
|
181
|
+
# request with `AnsweredBy` of `unknown`. The default timeout is 30 seconds.
|
182
|
+
# @param [String] machine_detection_speech_threshold The number of milliseconds
|
183
|
+
# that is used as the measuring stick for the length of the speech activity, where
|
184
|
+
# durations lower than this value will be interpreted as a human and longer than
|
185
|
+
# this value as a machine. Possible Values: 1000-6000. Default: 2400.
|
186
|
+
# @param [String] machine_detection_speech_end_threshold The number of
|
187
|
+
# milliseconds of silence after speech activity at which point the speech activity
|
188
|
+
# is considered complete. Possible Values: 500-5000. Default: 1200.
|
189
|
+
# @param [String] machine_detection_silence_timeout The number of milliseconds of
|
190
|
+
# initial silence after which an `unknown` AnsweredBy result will be returned.
|
191
|
+
# Possible Values: 2000-10000. Default: 5000.
|
192
|
+
# @param [String] amd_status_callback The URL that we should call using the
|
193
|
+
# `amd_status_callback_method` to notify customer application whether the call was
|
194
|
+
# answered by human, machine or fax.
|
195
|
+
# @param [String] amd_status_callback_method The HTTP method we should use when
|
196
|
+
# calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default
|
197
|
+
# is `POST`.
|
172
198
|
# @return [ParticipantInstance] Created ParticipantInstance
|
173
|
-
def create(from: nil, to: nil, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, label: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_record: :unset, conference_trim: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, sip_auth_username: :unset, sip_auth_password: :unset, region: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, recording_status_callback_event: :unset, conference_recording_status_callback_event: :unset, coaching: :unset, call_sid_to_coach: :unset, jitter_buffer_size: :unset, byoc: :unset, caller_id: :unset, call_reason: :unset, recording_track: :unset, time_limit: :unset)
|
199
|
+
def create(from: nil, to: nil, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, label: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_record: :unset, conference_trim: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, sip_auth_username: :unset, sip_auth_password: :unset, region: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, recording_status_callback_event: :unset, conference_recording_status_callback_event: :unset, coaching: :unset, call_sid_to_coach: :unset, jitter_buffer_size: :unset, byoc: :unset, caller_id: :unset, call_reason: :unset, recording_track: :unset, time_limit: :unset, machine_detection: :unset, machine_detection_timeout: :unset, machine_detection_speech_threshold: :unset, machine_detection_speech_end_threshold: :unset, machine_detection_silence_timeout: :unset, amd_status_callback: :unset, amd_status_callback_method: :unset)
|
174
200
|
data = Twilio::Values.of({
|
175
201
|
'From' => from,
|
176
202
|
'To' => to,
|
@@ -211,6 +237,13 @@ module Twilio
|
|
211
237
|
'CallReason' => call_reason,
|
212
238
|
'RecordingTrack' => recording_track,
|
213
239
|
'TimeLimit' => time_limit,
|
240
|
+
'MachineDetection' => machine_detection,
|
241
|
+
'MachineDetectionTimeout' => machine_detection_timeout,
|
242
|
+
'MachineDetectionSpeechThreshold' => machine_detection_speech_threshold,
|
243
|
+
'MachineDetectionSpeechEndThreshold' => machine_detection_speech_end_threshold,
|
244
|
+
'MachineDetectionSilenceTimeout' => machine_detection_silence_timeout,
|
245
|
+
'AmdStatusCallback' => amd_status_callback,
|
246
|
+
'AmdStatusCallbackMethod' => amd_status_callback_method,
|
214
247
|
})
|
215
248
|
|
216
249
|
payload = @version.create('POST', @uri, data: data)
|
@@ -171,6 +171,8 @@ module Twilio
|
|
171
171
|
'flex_insights_drilldown' => payload['flex_insights_drilldown'],
|
172
172
|
'flex_url' => payload['flex_url'],
|
173
173
|
'channel_configs' => payload['channel_configs'],
|
174
|
+
'debugger_integration' => payload['debugger_integration'],
|
175
|
+
'flex_ui_status_report' => payload['flex_ui_status_report'],
|
174
176
|
}
|
175
177
|
|
176
178
|
# Context
|
@@ -447,6 +449,18 @@ module Twilio
|
|
447
449
|
@properties['channel_configs']
|
448
450
|
end
|
449
451
|
|
452
|
+
##
|
453
|
+
# @return [Hash] Configurable parameters for Debugger Integration
|
454
|
+
def debugger_integration
|
455
|
+
@properties['debugger_integration']
|
456
|
+
end
|
457
|
+
|
458
|
+
##
|
459
|
+
# @return [Hash] Configurable parameters for Flex UI Status report
|
460
|
+
def flex_ui_status_report
|
461
|
+
@properties['flex_ui_status_report']
|
462
|
+
end
|
463
|
+
|
450
464
|
##
|
451
465
|
# Fetch the ConfigurationInstance
|
452
466
|
# @param [String] ui_version The Pinned UI version of the Configuration resource
|