Skip to content

Commit 1098ad6

Browse files
committed
[Librarian] Regenerated @ 160660ccc2266b2b6f15f8e8291a4b07d233dc21 817197bb9e54bf7b3518030a6183a4c45eb689fa
1 parent 0f25e6e commit 1098ad6

File tree

22 files changed

+221
-4151
lines changed

22 files changed

+221
-4151
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+
[2025-03-20] Version 7.5.1
5+
--------------------------
6+
**Accounts**
7+
- Update Safelist API docs as part of prefix supoort
8+
9+
**Flex**
10+
- Removing `first_name`, `last_name`, and `friendly_name` from the Flex User API
11+
12+
**Messaging**
13+
- Add missing tests under transaction/phone_numbers and transaction/short_code
14+
15+
416
[2025-03-11] Version 7.5.0
517
--------------------------
618
**Library - Feature**

lib/twilio-ruby/rest/accounts/v1/safelist.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def initialize(version)
3232
end
3333
##
3434
# Create the SafelistInstance
35-
# @param [String] phone_number The phone number to be added in SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
35+
# @param [String] phone_number The phone number or phone number 1k prefix to be added in SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
3636
# @return [SafelistInstance] Created SafelistInstance
3737
def create(
3838
phone_number: nil
@@ -57,7 +57,7 @@ def create(
5757

5858
##
5959
# Delete the SafelistInstance
60-
# @param [String] phone_number The phone number to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
60+
# @param [String] phone_number The phone number or phone number 1k prefix to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
6161
# @return [Boolean] True if delete succeeds, false otherwise
6262
def delete(
6363
phone_number: :unset
@@ -75,7 +75,7 @@ def delete(
7575

7676
##
7777
# Fetch the SafelistInstance
78-
# @param [String] phone_number The phone number to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
78+
# @param [String] phone_number The phone number or phone number 1k prefix to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
7979
# @return [SafelistInstance] Fetched SafelistInstance
8080
def fetch(
8181
phone_number: :unset
@@ -162,7 +162,7 @@ def sid
162162
end
163163

164164
##
165-
# @return [String] The phone number in SafeList.
165+
# @return [String] The phone number or phone number 1k prefix in SafeList.
166166
def phone_number
167167
@properties['phone_number']
168168
end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def friendly_name
406406
end
407407

408408
##
409-
# @return [String] A string that represents the Twilio Region where the conference audio was mixed. May be `us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, and `jp1`. Basic conference audio will always be mixed in `us1`. Global Conference audio will be mixed nearest to the majority of participants.
409+
# @return [String] A string that represents the Twilio Region where the conference audio was mixed. May be `us1`, `us2`, `ie1`, `de1`, `sg1`, `br1`, `au1`, and `jp1`. Basic conference audio will always be mixed in `us1`. Global Conference audio will be mixed nearest to the majority of participants.
410410
def region
411411
@properties['region']
412412
end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def initialize(version, account_sid: nil, conference_sid: nil)
6161
# @param [String] recording_status_callback_method The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
6262
# @param [String] sip_auth_username The SIP username used for authentication.
6363
# @param [String] sip_auth_password The SIP password for authentication.
64-
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
64+
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `us2`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
6565
# @param [String] conference_recording_status_callback The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available.
6666
# @param [String] conference_recording_status_callback_method The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
6767
# @param [Array[String]] recording_status_callback_event The recording state changes that should generate a call to `recording_status_callback`. Can be: `started`, `in-progress`, `paused`, `resumed`, `stopped`, `completed`, `failed`, and `absent`. Separate multiple values with a space, ex: `'in-progress completed failed'`.

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def initialize(version, account_sid: nil)
4646
# @param [AddressRetention] address_retention
4747
# @param [Boolean] smart_encoded Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: `true` or `false`.
4848
# @param [Array[String]] persistent_action Rich actions for non-SMS/MMS channels. Used for [sending location in WhatsApp messages](https://www.twilio.com/docs/whatsapp/message-features#location-messages-with-whatsapp).
49+
# @param [TrafficType] traffic_type
4950
# @param [Boolean] shorten_urls For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided.
5051
# @param [ScheduleType] schedule_type
5152
# @param [Time] send_at The time that Twilio will send the message. Must be in ISO 8601 format.
@@ -71,6 +72,7 @@ def create(
7172
address_retention: :unset,
7273
smart_encoded: :unset,
7374
persistent_action: :unset,
75+
traffic_type: :unset,
7476
shorten_urls: :unset,
7577
schedule_type: :unset,
7678
send_at: :unset,
@@ -97,6 +99,7 @@ def create(
9799
'AddressRetention' => address_retention,
98100
'SmartEncoded' => smart_encoded,
99101
'PersistentAction' => Twilio.serialize_list(persistent_action) { |e| e },
102+
'TrafficType' => traffic_type,
100103
'ShortenUrls' => shorten_urls,
101104
'ScheduleType' => schedule_type,
102105
'SendAt' => Twilio.serialize_iso8601_datetime(send_at),

lib/twilio-ruby/rest/flex_api/v2/flex_user.rb

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -78,27 +78,18 @@ def fetch
7878

7979
##
8080
# Update the FlexUserInstance
81-
# @param [String] first_name First name of the User.
82-
# @param [String] last_name Last name of the User.
8381
# @param [String] email Email of the User.
84-
# @param [String] friendly_name Friendly name of the User.
8582
# @param [String] user_sid The unique SID identifier of the Twilio Unified User.
8683
# @param [String] locale The locale preference of the user.
8784
# @return [FlexUserInstance] Updated FlexUserInstance
8885
def update(
89-
first_name: :unset,
90-
last_name: :unset,
9186
email: :unset,
92-
friendly_name: :unset,
9387
user_sid: :unset,
9488
locale: :unset
9589
)
9690

9791
data = Twilio::Values.of({
98-
'FirstName' => first_name,
99-
'LastName' => last_name,
10092
'Email' => email,
101-
'FriendlyName' => friendly_name,
10293
'UserSid' => user_sid,
10394
'Locale' => locale,
10495
})
@@ -184,11 +175,8 @@ def initialize(version, payload , instance_sid: nil, flex_user_sid: nil)
184175
'worker_sid' => payload['worker_sid'],
185176
'workspace_sid' => payload['workspace_sid'],
186177
'flex_team_sid' => payload['flex_team_sid'],
187-
'first_name' => payload['first_name'],
188-
'last_name' => payload['last_name'],
189178
'username' => payload['username'],
190179
'email' => payload['email'],
191-
'friendly_name' => payload['friendly_name'],
192180
'locale' => payload['locale'],
193181
'roles' => payload['roles'],
194182
'created_date' => Twilio.deserialize_iso8601_datetime(payload['created_date']),
@@ -255,18 +243,6 @@ def flex_team_sid
255243
@properties['flex_team_sid']
256244
end
257245

258-
##
259-
# @return [String] First name of the User.
260-
def first_name
261-
@properties['first_name']
262-
end
263-
264-
##
265-
# @return [String] Last name of the User.
266-
def last_name
267-
@properties['last_name']
268-
end
269-
270246
##
271247
# @return [String] Username of the User.
272248
def username
@@ -279,12 +255,6 @@ def email
279255
@properties['email']
280256
end
281257

282-
##
283-
# @return [String] Friendly name of the User.
284-
def friendly_name
285-
@properties['friendly_name']
286-
end
287-
288258
##
289259
# @return [String] The locale preference of the user.
290260
def locale
@@ -331,27 +301,18 @@ def fetch
331301

332302
##
333303
# Update the FlexUserInstance
334-
# @param [String] first_name First name of the User.
335-
# @param [String] last_name Last name of the User.
336304
# @param [String] email Email of the User.
337-
# @param [String] friendly_name Friendly name of the User.
338305
# @param [String] user_sid The unique SID identifier of the Twilio Unified User.
339306
# @param [String] locale The locale preference of the user.
340307
# @return [FlexUserInstance] Updated FlexUserInstance
341308
def update(
342-
first_name: :unset,
343-
last_name: :unset,
344309
email: :unset,
345-
friendly_name: :unset,
346310
user_sid: :unset,
347311
locale: :unset
348312
)
349313

350314
context.update(
351-
first_name: first_name,
352-
last_name: last_name,
353315
email: email,
354-
friendly_name: friendly_name,
355316
user_sid: user_sid,
356317
locale: locale,
357318
)

lib/twilio-ruby/rest/iam/v1.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def initialize(domain)
2424
@api_key = nil
2525
@get_api_keys = nil
2626
@new_api_key = nil
27+
@token = nil
2728
end
2829

2930
##
@@ -51,6 +52,11 @@ def new_api_key
5152
@new_api_key ||= NewApiKeyList.new self
5253
end
5354
##
55+
# @return [Twilio::REST::Iam::V1::TokenList]
56+
def token
57+
@token ||= TokenList.new self
58+
end
59+
##
5460
# Provide a user friendly representation
5561
def to_s
5662
'<Twilio::REST::Iam::V1>';

0 commit comments

Comments
 (0)