Skip to content

Commit 72f859e

Browse files
committed
[Librarian] Regenerated @ 66882adf0db70d1f2bc084fe6acef7d99445b17b
1 parent fef9878 commit 72f859e

File tree

13 files changed

+2049
-4
lines changed

13 files changed

+2049
-4
lines changed

CHANGES.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
twilio-ruby changelog
22
=====================
33

4+
[2023-06-01] Version 6.0.2
5+
--------------------------
6+
**Api**
7+
- Add `Trim` to create Conference Participant API
8+
9+
**Intelligence**
10+
- First public beta release for Voice Intelligence APIs with client libraries
11+
12+
**Messaging**
13+
- Add new `errors` attribute to us_app_to_person resource. This attribute will provide additional information about campaign registration errors.
14+
15+
416
[2023-05-18] Version 6.0.1
517
--------------------------
618
**Library - Fix**

lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def initialize(version, account_sid: nil, conference_sid: nil)
5151
# @param [Boolean] early_media Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. Can be: `true` or `false` and defaults to `true`.
5252
# @param [String] max_participants The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`.
5353
# @param [String] conference_record Whether to record the conference the participant is joining. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`.
54-
# @param [String] conference_trim Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`.
54+
# @param [String] conference_trim Whether to trim leading and trailing silence from the conference recording. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`.
5555
# @param [String] conference_status_callback The URL we should call using the `conference_status_callback_method` when the conference events in `conference_status_callback_event` occur. Only the value set by the first participant to join the conference is used. Subsequent `conference_status_callback` values are ignored.
5656
# @param [String] conference_status_callback_method The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
5757
# @param [Array[String]] conference_status_callback_event The conference state changes that should generate a call to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `modify`, `speaker`, and `announcement`. Separate multiple values with a space. Defaults to `start end`.
@@ -80,6 +80,7 @@ def initialize(version, account_sid: nil, conference_sid: nil)
8080
# @param [String] machine_detection_silence_timeout The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000.
8181
# @param [String] amd_status_callback The URL that we should call using the `amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax.
8282
# @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`.
83+
# @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`.
8384
# @return [ParticipantInstance] Created ParticipantInstance
8485
def create(
8586
from: nil,
@@ -127,7 +128,8 @@ def create(
127128
machine_detection_speech_end_threshold: :unset,
128129
machine_detection_silence_timeout: :unset,
129130
amd_status_callback: :unset,
130-
amd_status_callback_method: :unset
131+
amd_status_callback_method: :unset,
132+
trim: :unset
131133
)
132134

133135
data = Twilio::Values.of({
@@ -177,6 +179,7 @@ def create(
177179
'MachineDetectionSilenceTimeout' => machine_detection_silence_timeout,
178180
'AmdStatusCallback' => amd_status_callback,
179181
'AmdStatusCallbackMethod' => amd_status_callback_method,
182+
'Trim' => trim,
180183
})
181184

182185
payload = @version.create('POST', @uri, data: data)

lib/twilio-ruby/rest/client.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ def insights
7272
@insights ||= Insights.new self
7373
end
7474
##
75+
# Access the Intelligence Twilio Domain
76+
def intelligence
77+
@intelligence ||= Intelligence.new self
78+
end
79+
##
7580
# Access the IpMessaging Twilio Domain
7681
def ip_messaging
7782
@ip_messaging ||= IpMessaging.new self
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module Twilio
2+
module REST
3+
class Intelligence < IntelligenceBase;
4+
end
5+
end
6+
end
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
##
2+
# This code was generated by
3+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
#
7+
# Twilio - Intelligence
8+
# This is the public Twilio REST API.
9+
#
10+
# NOTE: This class is auto generated by OpenAPI Generator.
11+
# https://openapi-generator.tech
12+
# Do not edit the class manually.
13+
#
14+
15+
module Twilio
16+
module REST
17+
class Intelligence
18+
class V2 < Version
19+
##
20+
# Initialize the V2 version of Intelligence
21+
def initialize(domain)
22+
super
23+
@version = 'v2'
24+
@services = nil
25+
@transcripts = nil
26+
end
27+
28+
##
29+
# @param [String] sid A 34 character string that uniquely identifies this Service.
30+
# @return [Twilio::REST::Intelligence::V2::ServiceContext] if sid was passed.
31+
# @return [Twilio::REST::Intelligence::V2::ServiceList]
32+
def services(sid=:unset)
33+
if sid.nil?
34+
raise ArgumentError, 'sid cannot be nil'
35+
end
36+
if sid == :unset
37+
@services ||= ServiceList.new self
38+
else
39+
ServiceContext.new(self, sid)
40+
end
41+
end
42+
##
43+
# @param [String] sid A 34 character string that uniquely identifies this Transcript.
44+
# @return [Twilio::REST::Intelligence::V2::TranscriptContext] if sid was passed.
45+
# @return [Twilio::REST::Intelligence::V2::TranscriptList]
46+
def transcripts(sid=:unset)
47+
if sid.nil?
48+
raise ArgumentError, 'sid cannot be nil'
49+
end
50+
if sid == :unset
51+
@transcripts ||= TranscriptList.new self
52+
else
53+
TranscriptContext.new(self, sid)
54+
end
55+
end
56+
##
57+
# Provide a user friendly representation
58+
def to_s
59+
'<Twilio::REST::Intelligence::V2>';
60+
end
61+
end
62+
end
63+
end
64+
end

0 commit comments

Comments
 (0)