twilio-ruby 5.44.0 → 5.45.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +10 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +6 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +6 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +6 -1
- data/lib/twilio-ruby/rest/preview.rb +0 -21
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -30
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +6 -6
- data/lib/twilio-ruby/twiml/voice_response.rb +3 -2
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +2 -17
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +0 -243
- data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +0 -213
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +0 -108
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb +0 -260
- data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +0 -342
- data/spec/integration/preview/trusted_comms/branded_call_spec.rb +0 -59
- data/spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb +0 -56
- data/spec/integration/preview/trusted_comms/business/insights_spec.rb +0 -12
- data/spec/integration/preview/trusted_comms/business_spec.rb +0 -45
- data/spec/integration/preview/trusted_comms/phone_call_spec.rb +0 -59
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d11664418beb1659b2ee854fea2a14df842116c75edde8f66aa98c8b6cb9fd2
|
4
|
+
data.tar.gz: 4109ac807241c28fed2e425e74064bf1daaac49ec2360fa874568453797e148f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a08b729a2859792323662ee8d9f4b9b4b93539d20485d3f7bb794dba44975e61d4c3178710ec488b6738db1cc30656aa0ae24530cde10d899165d9f152e94c0
|
7
|
+
data.tar.gz: ac04197fe55debf9afe2d08f4f79a4e56ca40488b99b02a038c999873c27775c9728e8d38adb6d3bdffae47894366a1aa34925da86409731555c90e7a4050e06
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2020-12-08] Version 5.45.0
|
5
|
+
---------------------------
|
6
|
+
**Api**
|
7
|
+
- Added optional `RecordingTrack` parameter for create calls, create participants, and create call recordings
|
8
|
+
- Removed deprecated Programmable Chat usage record categories **(breaking change)**
|
9
|
+
|
10
|
+
**Twiml**
|
11
|
+
- Add `recordingTrack` to `Dial`.
|
12
|
+
|
13
|
+
|
4
14
|
[2020-12-02] Version 5.44.0
|
5
15
|
---------------------------
|
6
16
|
**Api**
|
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.45.0'
|
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.45.0
|
44
44
|
```
|
45
45
|
|
46
46
|
To build and install the development branch yourself from the latest source:
|
@@ -142,6 +142,10 @@ module Twilio
|
|
142
142
|
# @param [String] call_reason The Reason for the outgoing call. Use it to specify
|
143
143
|
# the purpose of the call that is presented on the called party's phone. (Branded
|
144
144
|
# Calls Beta)
|
145
|
+
# @param [String] recording_track The tracks to record. Can be: `inbound`,
|
146
|
+
# `outbound`, or `both`. The default is `both`. `inbound` only records the audio
|
147
|
+
# received by Twilio, `outbound` only records audio generated by Twilio, and
|
148
|
+
# `both` mixes the inbound and outbound audio.
|
145
149
|
# @param [String] url The absolute URL that returns the TwiML instructions for the
|
146
150
|
# call. We will call this URL using the `method` when the call connects. For more
|
147
151
|
# information, see the {Url
|
@@ -153,7 +157,7 @@ module Twilio
|
|
153
157
|
# @param [String] application_sid The SID of the Application resource that will
|
154
158
|
# handle the call, if the call will be handled by an application.
|
155
159
|
# @return [CallInstance] Created CallInstance
|
156
|
-
def create(to: nil, from: nil, method: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_event: :unset, status_callback_method: :unset, send_digits: :unset, timeout: :unset, record: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, sip_auth_username: :unset, sip_auth_password: :unset, machine_detection: :unset, machine_detection_timeout: :unset, recording_status_callback_event: :unset, trim: :unset, caller_id: :unset, machine_detection_speech_threshold: :unset, machine_detection_speech_end_threshold: :unset, machine_detection_silence_timeout: :unset, async_amd: :unset, async_amd_status_callback: :unset, async_amd_status_callback_method: :unset, byoc: :unset, call_reason: :unset, url: :unset, twiml: :unset, application_sid: :unset)
|
160
|
+
def create(to: nil, from: nil, method: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_event: :unset, status_callback_method: :unset, send_digits: :unset, timeout: :unset, record: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, sip_auth_username: :unset, sip_auth_password: :unset, machine_detection: :unset, machine_detection_timeout: :unset, recording_status_callback_event: :unset, trim: :unset, caller_id: :unset, machine_detection_speech_threshold: :unset, machine_detection_speech_end_threshold: :unset, machine_detection_silence_timeout: :unset, async_amd: :unset, async_amd_status_callback: :unset, async_amd_status_callback_method: :unset, byoc: :unset, call_reason: :unset, recording_track: :unset, url: :unset, twiml: :unset, application_sid: :unset)
|
157
161
|
data = Twilio::Values.of({
|
158
162
|
'To' => to,
|
159
163
|
'From' => from,
|
@@ -187,6 +191,7 @@ module Twilio
|
|
187
191
|
'AsyncAmdStatusCallbackMethod' => async_amd_status_callback_method,
|
188
192
|
'Byoc' => byoc,
|
189
193
|
'CallReason' => call_reason,
|
194
|
+
'RecordingTrack' => recording_track,
|
190
195
|
})
|
191
196
|
|
192
197
|
payload = @version.create('POST', @uri, data: data)
|
@@ -53,14 +53,19 @@ module Twilio
|
|
53
53
|
# Can be: `mono` or `dual` and the default is `mono`. `mono` records all parties
|
54
54
|
# of the call into one channel. `dual` records each party of a 2-party call into
|
55
55
|
# separate channels.
|
56
|
+
# @param [String] recording_track The tracks to record. Can be: `inbound`,
|
57
|
+
# `outbound`, or `both`. The default is `both`. `inbound` only records the audio
|
58
|
+
# received by Twilio, `outbound` only records audio generated by Twilio, and
|
59
|
+
# `both` mixes the inbound and outbound audio.
|
56
60
|
# @return [RecordingInstance] Created RecordingInstance
|
57
|
-
def create(recording_status_callback_event: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, trim: :unset, recording_channels: :unset)
|
61
|
+
def create(recording_status_callback_event: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, trim: :unset, recording_channels: :unset, recording_track: :unset)
|
58
62
|
data = Twilio::Values.of({
|
59
63
|
'RecordingStatusCallbackEvent' => Twilio.serialize_list(recording_status_callback_event) { |e| e },
|
60
64
|
'RecordingStatusCallback' => recording_status_callback,
|
61
65
|
'RecordingStatusCallbackMethod' => recording_status_callback_method,
|
62
66
|
'Trim' => trim,
|
63
67
|
'RecordingChannels' => recording_channels,
|
68
|
+
'RecordingTrack' => recording_track,
|
64
69
|
})
|
65
70
|
|
66
71
|
payload = @version.create('POST', @uri, data: data)
|
@@ -162,8 +162,12 @@ module Twilio
|
|
162
162
|
# @param [String] call_reason The Reason for the outgoing call. Use it to specify
|
163
163
|
# the purpose of the call that is presented on the called party's phone. (Branded
|
164
164
|
# Calls Beta)
|
165
|
+
# @param [String] recording_track The track to record. Can be: `inbound`,
|
166
|
+
# `outbound`, or `both`. The default is `both`. `inbound` only records the audio
|
167
|
+
# received by Twilio, `outbound` only records audio sent from Twilio, and `both`
|
168
|
+
# mixes the inbound and outbound audio.
|
165
169
|
# @return [ParticipantInstance] Created ParticipantInstance
|
166
|
-
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)
|
170
|
+
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)
|
167
171
|
data = Twilio::Values.of({
|
168
172
|
'From' => from,
|
169
173
|
'To' => to,
|
@@ -202,6 +206,7 @@ module Twilio
|
|
202
206
|
'Byoc' => byoc,
|
203
207
|
'CallerId' => caller_id,
|
204
208
|
'CallReason' => call_reason,
|
209
|
+
'RecordingTrack' => recording_track,
|
205
210
|
})
|
206
211
|
|
207
212
|
payload = @version.create('POST', @uri, data: data)
|
@@ -180,12 +180,6 @@ module Twilio
|
|
180
180
|
self.wireless.sims(sid)
|
181
181
|
end
|
182
182
|
|
183
|
-
##
|
184
|
-
# @return [Twilio::REST::Preview::TrustedComms::BrandedCallInstance]
|
185
|
-
def branded_calls
|
186
|
-
self.trusted_comms.branded_calls()
|
187
|
-
end
|
188
|
-
|
189
183
|
##
|
190
184
|
# @param [String] sid The unique SID identifier of the Branded Channel.
|
191
185
|
# @return [Twilio::REST::Preview::TrustedComms::BrandedChannelInstance] if sid was passed.
|
@@ -200,15 +194,6 @@ module Twilio
|
|
200
194
|
self.trusted_comms.brands_information()
|
201
195
|
end
|
202
196
|
|
203
|
-
##
|
204
|
-
# @param [String] sid A 34 character string that uniquely identifies this
|
205
|
-
# Business.
|
206
|
-
# @return [Twilio::REST::Preview::TrustedComms::BusinessInstance] if sid was passed.
|
207
|
-
# @return [Twilio::REST::Preview::TrustedComms::BusinessList]
|
208
|
-
def businesses(sid=:unset)
|
209
|
-
self.trusted_comms.businesses(sid)
|
210
|
-
end
|
211
|
-
|
212
197
|
##
|
213
198
|
# @return [Twilio::REST::Preview::TrustedComms::CpsInstance]
|
214
199
|
def cps
|
@@ -221,12 +206,6 @@ module Twilio
|
|
221
206
|
self.trusted_comms.current_calls()
|
222
207
|
end
|
223
208
|
|
224
|
-
##
|
225
|
-
# @return [Twilio::REST::Preview::TrustedComms::PhoneCallInstance]
|
226
|
-
def phone_calls
|
227
|
-
self.trusted_comms.phone_calls()
|
228
|
-
end
|
229
|
-
|
230
209
|
##
|
231
210
|
# Provide a user friendly representation
|
232
211
|
def to_s
|
@@ -15,19 +15,10 @@ module Twilio
|
|
15
15
|
def initialize(domain)
|
16
16
|
super
|
17
17
|
@version = 'TrustedComms'
|
18
|
-
@branded_calls = nil
|
19
18
|
@branded_channels = nil
|
20
19
|
@brands_information = nil
|
21
|
-
@businesses = nil
|
22
20
|
@cps = nil
|
23
21
|
@current_calls = nil
|
24
|
-
@phone_calls = nil
|
25
|
-
end
|
26
|
-
|
27
|
-
##
|
28
|
-
# @return [Twilio::REST::Preview::TrustedComms::BrandedCallContext]
|
29
|
-
def branded_calls
|
30
|
-
@branded_calls ||= BrandedCallList.new self
|
31
22
|
end
|
32
23
|
|
33
24
|
##
|
@@ -50,21 +41,6 @@ module Twilio
|
|
50
41
|
@brands_information ||= BrandsInformationContext.new self
|
51
42
|
end
|
52
43
|
|
53
|
-
##
|
54
|
-
# @param [String] sid A 34 character string that uniquely identifies this
|
55
|
-
# Business.
|
56
|
-
# @return [Twilio::REST::Preview::TrustedComms::BusinessContext] if sid was passed.
|
57
|
-
# @return [Twilio::REST::Preview::TrustedComms::BusinessList]
|
58
|
-
def businesses(sid=:unset)
|
59
|
-
if sid.nil?
|
60
|
-
raise ArgumentError, 'sid cannot be nil'
|
61
|
-
elsif sid == :unset
|
62
|
-
@businesses ||= BusinessList.new self
|
63
|
-
else
|
64
|
-
BusinessContext.new(self, sid)
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
44
|
##
|
69
45
|
# @return [Twilio::REST::Preview::TrustedComms::CpsContext]
|
70
46
|
def cps
|
@@ -77,12 +53,6 @@ module Twilio
|
|
77
53
|
@current_calls ||= CurrentCallContext.new self
|
78
54
|
end
|
79
55
|
|
80
|
-
##
|
81
|
-
# @return [Twilio::REST::Preview::TrustedComms::PhoneCallContext]
|
82
|
-
def phone_calls
|
83
|
-
@phone_calls ||= PhoneCallList.new self
|
84
|
-
end
|
85
|
-
|
86
56
|
##
|
87
57
|
# Provide a user friendly representation
|
88
58
|
def to_s
|
@@ -89,9 +89,9 @@ module Twilio
|
|
89
89
|
# encryption.
|
90
90
|
# @param [String] aws_s3_url The URL of the AWS S3 bucket where the compositions
|
91
91
|
# should be stored. We only support DNS-compliant URLs like
|
92
|
-
# `https
|
93
|
-
#
|
94
|
-
#
|
92
|
+
# `https://documentation-example-twilio-bucket/compositions`, where `compositions`
|
93
|
+
# is the path in which you want the compositions to be stored. This URL accepts
|
94
|
+
# only URI-valid characters, as described in the <a
|
95
95
|
# href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
|
96
96
|
# @param [Boolean] aws_storage_enabled Whether all compositions should be written
|
97
97
|
# to the `aws_s3_url`. When `false`, all compositions are stored in our cloud.
|
@@ -229,9 +229,9 @@ module Twilio
|
|
229
229
|
# encryption.
|
230
230
|
# @param [String] aws_s3_url The URL of the AWS S3 bucket where the compositions
|
231
231
|
# should be stored. We only support DNS-compliant URLs like
|
232
|
-
# `https
|
233
|
-
#
|
234
|
-
#
|
232
|
+
# `https://documentation-example-twilio-bucket/compositions`, where `compositions`
|
233
|
+
# is the path in which you want the compositions to be stored. This URL accepts
|
234
|
+
# only URI-valid characters, as described in the <a
|
235
235
|
# href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
|
236
236
|
# @param [Boolean] aws_storage_enabled Whether all compositions should be written
|
237
237
|
# to the `aws_s3_url`. When `false`, all compositions are stored in our cloud.
|
@@ -89,9 +89,9 @@ module Twilio
|
|
89
89
|
# encryption.
|
90
90
|
# @param [String] aws_s3_url The URL of the AWS S3 bucket where the recordings
|
91
91
|
# should be stored. We only support DNS-compliant URLs like
|
92
|
-
# `https
|
93
|
-
#
|
94
|
-
#
|
92
|
+
# `https://documentation-example-twilio-bucket/recordings`, where `recordings` is
|
93
|
+
# the path in which you want the recordings to be stored. This URL accepts only
|
94
|
+
# URI-valid characters, as described in the <a
|
95
95
|
# href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
|
96
96
|
# @param [Boolean] aws_storage_enabled Whether all recordings should be written to
|
97
97
|
# the `aws_s3_url`. When `false`, all recordings are stored in our cloud.
|
@@ -229,9 +229,9 @@ module Twilio
|
|
229
229
|
# encryption.
|
230
230
|
# @param [String] aws_s3_url The URL of the AWS S3 bucket where the recordings
|
231
231
|
# should be stored. We only support DNS-compliant URLs like
|
232
|
-
# `https
|
233
|
-
#
|
234
|
-
#
|
232
|
+
# `https://documentation-example-twilio-bucket/recordings`, where `recordings` is
|
233
|
+
# the path in which you want the recordings to be stored. This URL accepts only
|
234
|
+
# URI-valid characters, as described in the <a
|
235
235
|
# href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
|
236
236
|
# @param [Boolean] aws_storage_enabled Whether all recordings should be written to
|
237
237
|
# the `aws_s3_url`. When `false`, all recordings are stored in our cloud.
|
@@ -46,9 +46,10 @@ module Twilio
|
|
46
46
|
# recording_status_callback_event:: Recording status callback events
|
47
47
|
# answer_on_bridge:: Preserve the ringing behavior of the inbound call until the Dialed call picks up
|
48
48
|
# ring_tone:: Ringtone allows you to override the ringback tone that Twilio will play back to the caller while executing the Dial
|
49
|
+
# recording_track:: To indicate which audio track should be recorded
|
49
50
|
# keyword_args:: additional attributes
|
50
|
-
def dial(number: nil, action: nil, method: nil, timeout: nil, hangup_on_star: nil, time_limit: nil, caller_id: nil, record: nil, trim: nil, recording_status_callback: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, answer_on_bridge: nil, ring_tone: nil, **keyword_args)
|
51
|
-
dial = Dial.new(number: number, action: action, method: method, timeout: timeout, hangup_on_star: hangup_on_star, time_limit: time_limit, caller_id: caller_id, record: record, trim: trim, recording_status_callback: recording_status_callback, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, answer_on_bridge: answer_on_bridge, ring_tone: ring_tone, **keyword_args)
|
51
|
+
def dial(number: nil, action: nil, method: nil, timeout: nil, hangup_on_star: nil, time_limit: nil, caller_id: nil, record: nil, trim: nil, recording_status_callback: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, answer_on_bridge: nil, ring_tone: nil, recording_track: nil, **keyword_args)
|
52
|
+
dial = Dial.new(number: number, action: action, method: method, timeout: timeout, hangup_on_star: hangup_on_star, time_limit: time_limit, caller_id: caller_id, record: record, trim: trim, recording_status_callback: recording_status_callback, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, answer_on_bridge: answer_on_bridge, ring_tone: ring_tone, recording_track: recording_track, **keyword_args)
|
52
53
|
|
53
54
|
yield(dial) if block_given?
|
54
55
|
append(dial)
|
data/lib/twilio-ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.45.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twilio API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -525,16 +525,11 @@ files:
|
|
525
525
|
- lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb
|
526
526
|
- lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb
|
527
527
|
- lib/twilio-ruby/rest/preview/trusted_comms.rb
|
528
|
-
- lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb
|
529
528
|
- lib/twilio-ruby/rest/preview/trusted_comms/branded_channel.rb
|
530
529
|
- lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb
|
531
530
|
- lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb
|
532
|
-
- lib/twilio-ruby/rest/preview/trusted_comms/business.rb
|
533
|
-
- lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb
|
534
|
-
- lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb
|
535
531
|
- lib/twilio-ruby/rest/preview/trusted_comms/cps.rb
|
536
532
|
- lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb
|
537
|
-
- lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb
|
538
533
|
- lib/twilio-ruby/rest/preview/understand.rb
|
539
534
|
- lib/twilio-ruby/rest/preview/understand/assistant.rb
|
540
535
|
- lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb
|
@@ -960,16 +955,11 @@ files:
|
|
960
955
|
- spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb
|
961
956
|
- spec/integration/preview/sync/service/sync_map_spec.rb
|
962
957
|
- spec/integration/preview/sync/service_spec.rb
|
963
|
-
- spec/integration/preview/trusted_comms/branded_call_spec.rb
|
964
958
|
- spec/integration/preview/trusted_comms/branded_channel/channel_spec.rb
|
965
959
|
- spec/integration/preview/trusted_comms/branded_channel_spec.rb
|
966
960
|
- spec/integration/preview/trusted_comms/brands_information_spec.rb
|
967
|
-
- spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb
|
968
|
-
- spec/integration/preview/trusted_comms/business/insights_spec.rb
|
969
|
-
- spec/integration/preview/trusted_comms/business_spec.rb
|
970
961
|
- spec/integration/preview/trusted_comms/cps_spec.rb
|
971
962
|
- spec/integration/preview/trusted_comms/current_call_spec.rb
|
972
|
-
- spec/integration/preview/trusted_comms/phone_call_spec.rb
|
973
963
|
- spec/integration/preview/understand/assistant/assistant_fallback_actions_spec.rb
|
974
964
|
- spec/integration/preview/understand/assistant/assistant_initiation_actions_spec.rb
|
975
965
|
- spec/integration/preview/understand/assistant/dialogue_spec.rb
|
@@ -1405,16 +1395,11 @@ test_files:
|
|
1405
1395
|
- spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb
|
1406
1396
|
- spec/integration/preview/sync/service/sync_map_spec.rb
|
1407
1397
|
- spec/integration/preview/sync/service_spec.rb
|
1408
|
-
- spec/integration/preview/trusted_comms/branded_call_spec.rb
|
1409
1398
|
- spec/integration/preview/trusted_comms/branded_channel/channel_spec.rb
|
1410
1399
|
- spec/integration/preview/trusted_comms/branded_channel_spec.rb
|
1411
1400
|
- spec/integration/preview/trusted_comms/brands_information_spec.rb
|
1412
|
-
- spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb
|
1413
|
-
- spec/integration/preview/trusted_comms/business/insights_spec.rb
|
1414
|
-
- spec/integration/preview/trusted_comms/business_spec.rb
|
1415
1401
|
- spec/integration/preview/trusted_comms/cps_spec.rb
|
1416
1402
|
- spec/integration/preview/trusted_comms/current_call_spec.rb
|
1417
|
-
- spec/integration/preview/trusted_comms/phone_call_spec.rb
|
1418
1403
|
- spec/integration/preview/understand/assistant/assistant_fallback_actions_spec.rb
|
1419
1404
|
- spec/integration/preview/understand/assistant/assistant_initiation_actions_spec.rb
|
1420
1405
|
- spec/integration/preview/understand/assistant/dialogue_spec.rb
|
@@ -1,243 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# \ / _ _ _| _ _
|
4
|
-
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
-
# / /
|
6
|
-
#
|
7
|
-
# frozen_string_literal: true
|
8
|
-
|
9
|
-
module Twilio
|
10
|
-
module REST
|
11
|
-
class Preview < Domain
|
12
|
-
class TrustedComms < Version
|
13
|
-
##
|
14
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
15
|
-
class BrandedCallList < ListResource
|
16
|
-
##
|
17
|
-
# Initialize the BrandedCallList
|
18
|
-
# @param [Version] version Version that contains the resource
|
19
|
-
# @return [BrandedCallList] BrandedCallList
|
20
|
-
def initialize(version)
|
21
|
-
super(version)
|
22
|
-
|
23
|
-
# Path Solution
|
24
|
-
@solution = {}
|
25
|
-
@uri = "/Business/BrandedCalls"
|
26
|
-
end
|
27
|
-
|
28
|
-
##
|
29
|
-
# Create the BrandedCallInstance
|
30
|
-
# @param [String] from The phone number to use as the caller id, given in {E.164
|
31
|
-
# format}[https://www.twilio.com/docs/glossary/what-e164]. It must be a Twilio
|
32
|
-
# number that has been set up as a Branded Number in the Business Profile section
|
33
|
-
# for your account.
|
34
|
-
# @param [String] to The terminating Phone Number, given in {E.164
|
35
|
-
# format}[https://www.twilio.com/docs/glossary/what-e164].
|
36
|
-
# @param [String] reason The business reason for this phone call that will appear
|
37
|
-
# in the terminating device's screen. Max 50 characters.
|
38
|
-
# @param [String] call_sid The Call sid this Branded Call should link to.
|
39
|
-
# @return [BrandedCallInstance] Created BrandedCallInstance
|
40
|
-
def create(from: nil, to: nil, reason: nil, call_sid: :unset)
|
41
|
-
data = Twilio::Values.of({'From' => from, 'To' => to, 'Reason' => reason, 'CallSid' => call_sid, })
|
42
|
-
|
43
|
-
payload = @version.create('POST', @uri, data: data)
|
44
|
-
|
45
|
-
BrandedCallInstance.new(@version, payload, )
|
46
|
-
end
|
47
|
-
|
48
|
-
##
|
49
|
-
# Provide a user friendly representation
|
50
|
-
def to_s
|
51
|
-
'#<Twilio.Preview.TrustedComms.BrandedCallList>'
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
##
|
56
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
57
|
-
class BrandedCallPage < Page
|
58
|
-
##
|
59
|
-
# Initialize the BrandedCallPage
|
60
|
-
# @param [Version] version Version that contains the resource
|
61
|
-
# @param [Response] response Response from the API
|
62
|
-
# @param [Hash] solution Path solution for the resource
|
63
|
-
# @return [BrandedCallPage] BrandedCallPage
|
64
|
-
def initialize(version, response, solution)
|
65
|
-
super(version, response)
|
66
|
-
|
67
|
-
# Path Solution
|
68
|
-
@solution = solution
|
69
|
-
end
|
70
|
-
|
71
|
-
##
|
72
|
-
# Build an instance of BrandedCallInstance
|
73
|
-
# @param [Hash] payload Payload response from the API
|
74
|
-
# @return [BrandedCallInstance] BrandedCallInstance
|
75
|
-
def get_instance(payload)
|
76
|
-
BrandedCallInstance.new(@version, payload, )
|
77
|
-
end
|
78
|
-
|
79
|
-
##
|
80
|
-
# Provide a user friendly representation
|
81
|
-
def to_s
|
82
|
-
'<Twilio.Preview.TrustedComms.BrandedCallPage>'
|
83
|
-
end
|
84
|
-
end
|
85
|
-
|
86
|
-
##
|
87
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
88
|
-
class BrandedCallInstance < InstanceResource
|
89
|
-
##
|
90
|
-
# Initialize the BrandedCallInstance
|
91
|
-
# @param [Version] version Version that contains the resource
|
92
|
-
# @param [Hash] payload payload that contains response from Twilio
|
93
|
-
# @return [BrandedCallInstance] BrandedCallInstance
|
94
|
-
def initialize(version, payload)
|
95
|
-
super(version)
|
96
|
-
|
97
|
-
# Marshaled Properties
|
98
|
-
@properties = {
|
99
|
-
'account_sid' => payload['account_sid'],
|
100
|
-
'bg_color' => payload['bg_color'],
|
101
|
-
'brand_sid' => payload['brand_sid'],
|
102
|
-
'branded_channel_sid' => payload['branded_channel_sid'],
|
103
|
-
'business_sid' => payload['business_sid'],
|
104
|
-
'call_sid' => payload['call_sid'],
|
105
|
-
'caller' => payload['caller'],
|
106
|
-
'created_at' => Twilio.deserialize_iso8601_datetime(payload['created_at']),
|
107
|
-
'font_color' => payload['font_color'],
|
108
|
-
'from' => payload['from'],
|
109
|
-
'logo' => payload['logo'],
|
110
|
-
'phone_number_sid' => payload['phone_number_sid'],
|
111
|
-
'reason' => payload['reason'],
|
112
|
-
'sid' => payload['sid'],
|
113
|
-
'status' => payload['status'],
|
114
|
-
'to' => payload['to'],
|
115
|
-
'url' => payload['url'],
|
116
|
-
'use_case' => payload['use_case'],
|
117
|
-
}
|
118
|
-
end
|
119
|
-
|
120
|
-
##
|
121
|
-
# @return [String] Account Sid.
|
122
|
-
def account_sid
|
123
|
-
@properties['account_sid']
|
124
|
-
end
|
125
|
-
|
126
|
-
##
|
127
|
-
# @return [String] Background color of the current phone call
|
128
|
-
def bg_color
|
129
|
-
@properties['bg_color']
|
130
|
-
end
|
131
|
-
|
132
|
-
##
|
133
|
-
# @return [String] Brand Sid.
|
134
|
-
def brand_sid
|
135
|
-
@properties['brand_sid']
|
136
|
-
end
|
137
|
-
|
138
|
-
##
|
139
|
-
# @return [String] Branded Channel Sid.
|
140
|
-
def branded_channel_sid
|
141
|
-
@properties['branded_channel_sid']
|
142
|
-
end
|
143
|
-
|
144
|
-
##
|
145
|
-
# @return [String] Business Sid.
|
146
|
-
def business_sid
|
147
|
-
@properties['business_sid']
|
148
|
-
end
|
149
|
-
|
150
|
-
##
|
151
|
-
# @return [String] A string that uniquely identifies this phone call.
|
152
|
-
def call_sid
|
153
|
-
@properties['call_sid']
|
154
|
-
end
|
155
|
-
|
156
|
-
##
|
157
|
-
# @return [String] Caller name of the current phone call
|
158
|
-
def caller
|
159
|
-
@properties['caller']
|
160
|
-
end
|
161
|
-
|
162
|
-
##
|
163
|
-
# @return [Time] The date this current phone call was created
|
164
|
-
def created_at
|
165
|
-
@properties['created_at']
|
166
|
-
end
|
167
|
-
|
168
|
-
##
|
169
|
-
# @return [String] Font color of the current phone call
|
170
|
-
def font_color
|
171
|
-
@properties['font_color']
|
172
|
-
end
|
173
|
-
|
174
|
-
##
|
175
|
-
# @return [String] The originating phone number
|
176
|
-
def from
|
177
|
-
@properties['from']
|
178
|
-
end
|
179
|
-
|
180
|
-
##
|
181
|
-
# @return [String] Logo URL of the caller
|
182
|
-
def logo
|
183
|
-
@properties['logo']
|
184
|
-
end
|
185
|
-
|
186
|
-
##
|
187
|
-
# @return [String] Phone Number Sid.
|
188
|
-
def phone_number_sid
|
189
|
-
@properties['phone_number_sid']
|
190
|
-
end
|
191
|
-
|
192
|
-
##
|
193
|
-
# @return [String] The business reason for this current phone call
|
194
|
-
def reason
|
195
|
-
@properties['reason']
|
196
|
-
end
|
197
|
-
|
198
|
-
##
|
199
|
-
# @return [String] A string that uniquely identifies this current branded phone call.
|
200
|
-
def sid
|
201
|
-
@properties['sid']
|
202
|
-
end
|
203
|
-
|
204
|
-
##
|
205
|
-
# @return [String] The status of the current phone call
|
206
|
-
def status
|
207
|
-
@properties['status']
|
208
|
-
end
|
209
|
-
|
210
|
-
##
|
211
|
-
# @return [String] The terminating phone number
|
212
|
-
def to
|
213
|
-
@properties['to']
|
214
|
-
end
|
215
|
-
|
216
|
-
##
|
217
|
-
# @return [String] The URL of this resource.
|
218
|
-
def url
|
219
|
-
@properties['url']
|
220
|
-
end
|
221
|
-
|
222
|
-
##
|
223
|
-
# @return [String] The use case for the current phone call
|
224
|
-
def use_case
|
225
|
-
@properties['use_case']
|
226
|
-
end
|
227
|
-
|
228
|
-
##
|
229
|
-
# Provide a user friendly representation
|
230
|
-
def to_s
|
231
|
-
"<Twilio.Preview.TrustedComms.BrandedCallInstance>"
|
232
|
-
end
|
233
|
-
|
234
|
-
##
|
235
|
-
# Provide a detailed, user friendly representation
|
236
|
-
def inspect
|
237
|
-
"<Twilio.Preview.TrustedComms.BrandedCallInstance>"
|
238
|
-
end
|
239
|
-
end
|
240
|
-
end
|
241
|
-
end
|
242
|
-
end
|
243
|
-
end
|