Skip to content

Commit 845b048

Browse files
committed
[Librarian] Regenerated @ 0430a9c977225d55252b84f4d16e16ad2091cde1
1 parent e6ef538 commit 845b048

File tree

3 files changed

+42
-25
lines changed

3 files changed

+42
-25
lines changed

CHANGES.md

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

4+
[2023-06-15] Version 6.1.0
5+
--------------------------
6+
**Api**
7+
- Added `content_sid` as conditional parameter
8+
- Removed `content_sid` as optional field **(breaking change)**
9+
10+
**Insights**
11+
- Added `annotation` to list summary output
12+
13+
414
[2023-06-01] Version 6.0.2
515
--------------------------
616
**Api**

lib/twilio-ruby/rest/api/v2010/account/message.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ def initialize(version, account_sid: nil)
4949
# @param [ScheduleType] schedule_type
5050
# @param [Time] send_at The time that Twilio will send the message. Must be in ISO 8601 format.
5151
# @param [Boolean] send_as_mms If set to True, Twilio will deliver the message as a single MMS message, regardless of the presence of media.
52-
# @param [String] content_sid The SID of the Content object returned at Content API content create time (https://www.twilio.com/docs/content-api/create-and-send-your-first-content-api-template#create-a-template). If this parameter is not specified, then the Content API will not be utilized.
5352
# @param [String] content_variables Key-value pairs of variable names to substitution values, used alongside a content_sid. If not specified, Content API will default to the default variables defined at create time.
5453
# @param [String] from A Twilio phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, an [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or a [Channel Endpoint address](https://www.twilio.com/docs/sms/channels#channel-addresses) that is enabled for the type of message you want to send. Phone numbers or [short codes](https://www.twilio.com/docs/sms/api/short-code) purchased from Twilio also work here. You cannot, for example, spoof messages from a private cell phone number. If you are using `messaging_service_sid`, this parameter must be empty.
5554
# @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services#send-a-message-with-copilot) you want to associate with the Message. Set this parameter to use the [Messaging Service Settings and Copilot Features](https://www.twilio.com/console/sms/services) you have configured and leave the `from` parameter empty. When only this parameter is set, Twilio will use your enabled Copilot Features to select the `from` phone number for delivery.
5655
# @param [String] body The text of the message you want to send. Can be up to 1,600 characters in length.
5756
# @param [Array[String]] media_url The URL of the media to send with the message. The media can be of type `gif`, `png`, and `jpeg` and will be formatted correctly on the recipient's device. The media size limit is 5MB for supported file types (JPEG, PNG, GIF) and 500KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message body, provide multiple `media_url` parameters in the POST request. You can include up to 10 `media_url` parameters per message. You can send images in an SMS message in only the US and Canada.
57+
# @param [String] content_sid The SID of the Content object returned at Content API content create time (https://www.twilio.com/docs/content-api/create-and-send-your-first-content-api-template#create-a-template). If this parameter is not specified, then the Content API will not be utilized.
5858
# @return [MessageInstance] Created MessageInstance
5959
def create(
6060
to: nil,
@@ -73,12 +73,12 @@ def create(
7373
schedule_type: :unset,
7474
send_at: :unset,
7575
send_as_mms: :unset,
76-
content_sid: :unset,
7776
content_variables: :unset,
7877
from: :unset,
7978
messaging_service_sid: :unset,
8079
body: :unset,
81-
media_url: :unset
80+
media_url: :unset,
81+
content_sid: :unset
8282
)
8383

8484
data = Twilio::Values.of({
@@ -98,12 +98,12 @@ def create(
9898
'ScheduleType' => schedule_type,
9999
'SendAt' => Twilio.serialize_iso8601_datetime(send_at),
100100
'SendAsMms' => send_as_mms,
101-
'ContentSid' => content_sid,
102101
'ContentVariables' => content_variables,
103102
'From' => from,
104103
'MessagingServiceSid' => messaging_service_sid,
105104
'Body' => body,
106105
'MediaUrl' => Twilio.serialize_list(media_url) { |e| e },
106+
'ContentSid' => content_sid,
107107
})
108108

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

lib/twilio-ruby/rest/insights/v1/call_summaries.rb

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,18 @@ def initialize(version)
5353
# @param [String] subaccount
5454
# @param [Boolean] abnormal_session
5555
# @param [AnsweredBy] answered_by
56-
# @param [String] connectivity_issues
57-
# @param [String] quality_issues
56+
# @param [String] connectivity_issue
57+
# @param [String] quality_issue
5858
# @param [Boolean] spam
59-
# @param [String] call_scores
59+
# @param [String] call_score
6060
# @param [Integer] limit Upper limit for the number of records to return. stream()
6161
# guarantees to never return more than limit. Default is no limit
6262
# @param [Integer] page_size Number of records to fetch per request, when
6363
# not set will use the default value of 50 records. If no page_size is defined
6464
# but a limit is defined, stream() will attempt to read the limit with the most
6565
# efficient page size, i.e. min(limit, 1000)
6666
# @return [Array] Array of up to limit results
67-
def list(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, connectivity_issues: :unset, quality_issues: :unset, spam: :unset, call_scores: :unset, limit: nil, page_size: nil)
67+
def list(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, connectivity_issue: :unset, quality_issue: :unset, spam: :unset, call_score: :unset, limit: nil, page_size: nil)
6868
self.stream(
6969
from: from,
7070
to: to,
@@ -85,10 +85,10 @@ def list(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, fro
8585
subaccount: subaccount,
8686
abnormal_session: abnormal_session,
8787
answered_by: answered_by,
88-
connectivity_issues: connectivity_issues,
89-
quality_issues: quality_issues,
88+
connectivity_issue: connectivity_issue,
89+
quality_issue: quality_issue,
9090
spam: spam,
91-
call_scores: call_scores,
91+
call_score: call_score,
9292
limit: limit,
9393
page_size: page_size
9494
).entries
@@ -117,18 +117,18 @@ def list(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, fro
117117
# @param [String] subaccount
118118
# @param [Boolean] abnormal_session
119119
# @param [AnsweredBy] answered_by
120-
# @param [String] connectivity_issues
121-
# @param [String] quality_issues
120+
# @param [String] connectivity_issue
121+
# @param [String] quality_issue
122122
# @param [Boolean] spam
123-
# @param [String] call_scores
123+
# @param [String] call_score
124124
# @param [Integer] limit Upper limit for the number of records to return. stream()
125125
# guarantees to never return more than limit. Default is no limit
126126
# @param [Integer] page_size Number of records to fetch per request, when
127127
# not set will use the default value of 50 records. If no page_size is defined
128128
# but a limit is defined, stream() will attempt to read the limit with the most
129129
# efficient page size, i.e. min(limit, 1000)
130130
# @return [Enumerable] Enumerable that will yield up to limit results
131-
def stream(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, connectivity_issues: :unset, quality_issues: :unset, spam: :unset, call_scores: :unset, limit: nil, page_size: nil)
131+
def stream(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, connectivity_issue: :unset, quality_issue: :unset, spam: :unset, call_score: :unset, limit: nil, page_size: nil)
132132
limits = @version.read_limits(limit, page_size)
133133

134134
page = self.page(
@@ -151,10 +151,10 @@ def stream(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, f
151151
subaccount: subaccount,
152152
abnormal_session: abnormal_session,
153153
answered_by: answered_by,
154-
connectivity_issues: connectivity_issues,
155-
quality_issues: quality_issues,
154+
connectivity_issue: connectivity_issue,
155+
quality_issue: quality_issue,
156156
spam: spam,
157-
call_scores: call_scores,
157+
call_score: call_score,
158158
page_size: limits[:page_size], )
159159

160160
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
@@ -196,15 +196,15 @@ def each
196196
# @param [String] subaccount
197197
# @param [Boolean] abnormal_session
198198
# @param [AnsweredBy] answered_by
199-
# @param [String] connectivity_issues
200-
# @param [String] quality_issues
199+
# @param [String] connectivity_issue
200+
# @param [String] quality_issue
201201
# @param [Boolean] spam
202-
# @param [String] call_scores
202+
# @param [String] call_score
203203
# @param [String] page_token PageToken provided by the API
204204
# @param [Integer] page_number Page Number, this value is simply for client state
205205
# @param [Integer] page_size Number of records to return, defaults to 50
206206
# @return [Page] Page of CallSummariesInstance
207-
def page(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, connectivity_issues: :unset, quality_issues: :unset, spam: :unset, call_scores: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
207+
def page(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, connectivity_issue: :unset, quality_issue: :unset, spam: :unset, call_score: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
208208
params = Twilio::Values.of({
209209

210210
'From' => from,
@@ -245,13 +245,13 @@ def page(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, fro
245245

246246
'AnsweredBy' => answered_by,
247247

248-
'ConnectivityIssues' => connectivity_issues,
248+
'ConnectivityIssue' => connectivity_issue,
249249

250-
'QualityIssues' => quality_issues,
250+
'QualityIssue' => quality_issue,
251251

252252
'Spam' => spam,
253253

254-
'CallScores' => call_scores,
254+
'CallScore' => call_score,
255255

256256
'PageToken' => page_token,
257257
'Page' => page_number,
@@ -349,6 +349,7 @@ def initialize(version, payload )
349349
'attributes' => payload['attributes'],
350350
'properties' => payload['properties'],
351351
'trust' => payload['trust'],
352+
'annotation' => payload['annotation'],
352353
}
353354
end
354355

@@ -485,6 +486,12 @@ def trust
485486
@properties['trust']
486487
end
487488

489+
##
490+
# @return [Hash]
491+
def annotation
492+
@properties['annotation']
493+
end
494+
488495
##
489496
# Provide a user friendly representation
490497
def to_s

0 commit comments

Comments
 (0)