Skip to content

Commit

Permalink
[Librarian] Regenerated @ 6b85410bb6ecf3aa579d1fa442c7bb74c62cf6f0 ae…
Browse files Browse the repository at this point in the history
…4a12dded508a988aeaca39721be27984e9aeeb
  • Loading branch information
twilio-dx committed Feb 11, 2025
1 parent dcddfef commit 3f28f62
Show file tree
Hide file tree
Showing 5 changed files with 437 additions and 2 deletions.
15 changes: 15 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
twilio-ruby changelog
=====================

[2025-02-11] Version 7.4.4
--------------------------
**Api**
- Change downstream url and change media type for file `base/api/v2010/validation_request.json`.

**Intelligence**
- Add json_results for Generative JSON operator results

**Messaging**
- Add DestinationAlphaSender API to support Country-Specific Alpha Senders

**Video**
- Change codec type from enum to case-insensitive enum in recording and room_recording apis


[2025-01-28] Version 7.4.3
--------------------------
**Library - Chore**
Expand Down
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/api/v2010/account/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def fetch

##
# Update the AddressInstance
# @param [String] friendly_name A descriptive string that you create to describe the address. It can be up to 64 characters long.
# @param [String] friendly_name A descriptive string that you create to describe the new address. It can be up to 64 characters long for Regulatory Compliance addresses and 32 characters long for Emergency addresses.
# @param [String] customer_name The name to associate with the address.
# @param [String] street The number and street address of the address.
# @param [String] city The city of the address.
Expand Down Expand Up @@ -518,7 +518,7 @@ def fetch

##
# Update the AddressInstance
# @param [String] friendly_name A descriptive string that you create to describe the address. It can be up to 64 characters long.
# @param [String] friendly_name A descriptive string that you create to describe the new address. It can be up to 64 characters long for Regulatory Compliance addresses and 32 characters long for Emergency addresses.
# @param [String] customer_name The name to associate with the address.
# @param [String] street The number and street address of the address.
# @param [String] city The city of the address.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ def initialize(version, payload , transcript_sid: nil, operator_sid: nil)
'label_probabilities' => payload['label_probabilities'],
'extract_results' => payload['extract_results'],
'text_generation_results' => payload['text_generation_results'],
'json_results' => payload['json_results'],
'transcript_sid' => payload['transcript_sid'],
'url' => payload['url'],
}
Expand Down Expand Up @@ -347,6 +348,12 @@ def text_generation_results
@properties['text_generation_results']
end

##
# @return [Hash]
def json_results
@properties['json_results']
end

##
# @return [String] A 34 character string that uniquely identifies this Transcript.
def transcript_sid
Expand Down
27 changes: 27 additions & 0 deletions lib/twilio-ruby/rest/messaging/v1/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ def initialize(version, sid)
@us_app_to_person = nil
@phone_numbers = nil
@alpha_senders = nil
@destination_alpha_senders = nil
@channel_senders = nil
end
##
Expand Down Expand Up @@ -408,6 +409,25 @@ def alpha_senders(sid=:unset)
@alpha_senders
end
##
# Access the destination_alpha_senders
# @return [DestinationAlphaSenderList]
# @return [DestinationAlphaSenderContext] if sid was passed.
def destination_alpha_senders(sid=:unset)

raise ArgumentError, 'sid cannot be nil' if sid.nil?

if sid != :unset
return DestinationAlphaSenderContext.new(@version, @solution[:sid],sid )
end

unless @destination_alpha_senders
@destination_alpha_senders = DestinationAlphaSenderList.new(
@version, service_sid: @solution[:sid], )
end

@destination_alpha_senders
end
##
# Access the channel_senders
# @return [ChannelSenderList]
# @return [ChannelSenderContext] if sid was passed.
Expand Down Expand Up @@ -773,6 +793,13 @@ def alpha_senders
context.alpha_senders
end

##
# Access the destination_alpha_senders
# @return [destination_alpha_senders] destination_alpha_senders
def destination_alpha_senders
context.destination_alpha_senders
end

##
# Access the channel_senders
# @return [channel_senders] channel_senders
Expand Down
Loading

0 comments on commit 3f28f62

Please sign in to comment.