Skip to content

Commit

Permalink
Merge branch 'main' into oauth-ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
manisha1997 authored Nov 18, 2024
2 parents ae7271a + 47c5f4b commit 5ec7eb6
Show file tree
Hide file tree
Showing 18 changed files with 4,013 additions and 31 deletions.
14 changes: 14 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
twilio-ruby changelog
=====================

[2024-11-15] Version 7.3.6
--------------------------
**Library - Chore**
- [PR #732](https://github.com/twilio/twilio-ruby/pull/732): removed preview sync api. Thanks to [@sbansla](https://github.com/sbansla)!

**Api**
- Added `ivr-virtual-agent-custom-voices` and `ivr-virtual-agent-genai` to `usage_record` API.
- Add open-api file tag to realtime_transcriptions

**Taskrouter**
- Add `api-tag` property to workers reservation
- Add `api-tag` property to task reservation


[2024-10-24] Version 7.3.5
--------------------------
**Conversations**
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
To install using [Bundler][bundler] grab the latest stable version:

```ruby
gem 'twilio-ruby', '~> 7.3.5'
gem 'twilio-ruby', '~> 7.3.6'
```

To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:

```bash
gem install twilio-ruby -v 7.3.5
gem install twilio-ruby -v 7.3.6
```

To build and install the development branch yourself from the latest source:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(version)
# @param [String] timers_closed ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
# @param [String] bindings_email_address The default email address that will be used when sending outbound emails in this conversation.
# @param [String] bindings_email_name The default name that will be used when sending outbound emails in this conversation.
# @param [Array[String]] participant The participant to be added to the conversation in JSON format. The parameters are as in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.
# @param [Array[String]] participant The participant to be added to the conversation in JSON format. The JSON object attributes are as parameters in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.
# @param [ConversationWithParticipantsEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
# @return [ConversationWithParticipantsInstance] Created ConversationWithParticipantsInstance
def create(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def initialize(version, chat_service_sid: nil)
# @param [String] timers_closed ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
# @param [String] bindings_email_address The default email address that will be used when sending outbound emails in this conversation.
# @param [String] bindings_email_name The default name that will be used when sending outbound emails in this conversation.
# @param [Array[String]] participant The participant to be added to the conversation in JSON format. The parameters are as in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.
# @param [Array[String]] participant The participant to be added to the conversation in JSON format. The JSON object attributes are as parameters in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.
# @param [ServiceConversationWithParticipantsEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
# @return [ConversationWithParticipantsInstance] Created ConversationWithParticipantsInstance
def create(
Expand Down
12 changes: 6 additions & 6 deletions lib/twilio-ruby/rest/numbers/v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def initialize(domain)
@porting_portabilities = nil
@porting_webhook_configurations = nil
@porting_webhook_configurations_delete = nil
@porting_webhook_configuration_fetch = nil
@signing_request_configurations = nil
@webhook = nil
end

##
Expand Down Expand Up @@ -135,16 +135,16 @@ def porting_webhook_configurations_delete(webhook_type=:unset)
end
end
##
# @return [Twilio::REST::Numbers::V1::PortingWebhookConfigurationFetchList]
def porting_webhook_configuration_fetch
@porting_webhook_configuration_fetch ||= PortingWebhookConfigurationFetchList.new self
end
##
# @return [Twilio::REST::Numbers::V1::SigningRequestConfigurationList]
def signing_request_configurations
@signing_request_configurations ||= SigningRequestConfigurationList.new self
end
##
# @return [Twilio::REST::Numbers::V1::WebhookList]
def webhook
@webhook ||= WebhookList.new self
end
##
# Provide a user friendly representation
def to_s
'<Twilio::REST::Numbers::V1>';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ module Twilio
module REST
class Numbers < NumbersBase
class V1 < Version
class PortingWebhookConfigurationFetchList < ListResource
class WebhookList < ListResource

##
# Initialize the PortingWebhookConfigurationFetchList
# Initialize the WebhookList
# @param [Version] version Version that contains the resource
# @return [PortingWebhookConfigurationFetchList] PortingWebhookConfigurationFetchList
# @return [WebhookList] WebhookList
def initialize(version)
super(version)
# Path Solution
Expand All @@ -31,14 +31,14 @@ def initialize(version)

end
##
# Fetch the PortingWebhookConfigurationFetchInstance
# @return [PortingWebhookConfigurationFetchInstance] Fetched PortingWebhookConfigurationFetchInstance
# Fetch the WebhookInstance
# @return [WebhookInstance] Fetched WebhookInstance
def fetch

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.fetch('GET', @uri, headers: headers)
PortingWebhookConfigurationFetchInstance.new(
WebhookInstance.new(
@version,
payload,
)
Expand All @@ -49,17 +49,17 @@ def fetch

# Provide a user friendly representation
def to_s
'#<Twilio.Numbers.V1.PortingWebhookConfigurationFetchList>'
'#<Twilio.Numbers.V1.WebhookList>'
end
end

class PortingWebhookConfigurationFetchPage < Page
class WebhookPage < Page
##
# Initialize the PortingWebhookConfigurationFetchPage
# Initialize the WebhookPage
# @param [Version] version Version that contains the resource
# @param [Response] response Response from the API
# @param [Hash] solution Path solution for the resource
# @return [PortingWebhookConfigurationFetchPage] PortingWebhookConfigurationFetchPage
# @return [WebhookPage] WebhookPage
def initialize(version, response, solution)
super(version, response)

Expand All @@ -68,29 +68,29 @@ def initialize(version, response, solution)
end

##
# Build an instance of PortingWebhookConfigurationFetchInstance
# Build an instance of WebhookInstance
# @param [Hash] payload Payload response from the API
# @return [PortingWebhookConfigurationFetchInstance] PortingWebhookConfigurationFetchInstance
# @return [WebhookInstance] WebhookInstance
def get_instance(payload)
PortingWebhookConfigurationFetchInstance.new(@version, payload)
WebhookInstance.new(@version, payload)
end

##
# Provide a user friendly representation
def to_s
'<Twilio.Numbers.V1.PortingWebhookConfigurationFetchPage>'
'<Twilio.Numbers.V1.WebhookPage>'
end
end
class PortingWebhookConfigurationFetchInstance < InstanceResource
class WebhookInstance < InstanceResource
##
# Initialize the PortingWebhookConfigurationFetchInstance
# Initialize the WebhookInstance
# @param [Version] version Version that contains the resource
# @param [Hash] payload payload that contains response from Twilio
# @param [String] account_sid The SID of the
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this PortingWebhookConfigurationFetch
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Webhook
# resource.
# @param [String] sid The SID of the Call resource to fetch.
# @return [PortingWebhookConfigurationFetchInstance] PortingWebhookConfigurationFetchInstance
# @return [WebhookInstance] WebhookInstance
def initialize(version, payload )
super(version)

Expand Down Expand Up @@ -145,13 +145,13 @@ def port_out_target_date_created
##
# Provide a user friendly representation
def to_s
"<Twilio.Numbers.V1.PortingWebhookConfigurationFetchInstance>"
"<Twilio.Numbers.V1.WebhookInstance>"
end

##
# Provide a detailed, user friendly representation
def inspect
"<Twilio.Numbers.V1.PortingWebhookConfigurationFetchInstance>"
"<Twilio.Numbers.V1.WebhookInstance>"
end
end

Expand Down
49 changes: 49 additions & 0 deletions lib/twilio-ruby/rest/preview/sync.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
##
# This code was generated by
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
#
# Twilio - Preview
# This is the public Twilio REST API.
#
# NOTE: This class is auto generated by OpenAPI Generator.
# https://openapi-generator.tech
# Do not edit the class manually.
#

module Twilio
module REST
class Preview
class Sync < Version
##
# Initialize the Sync version of Preview
def initialize(domain)
super
@version = 'Sync'
@services = nil
end

##
# @param [String] sid
# @return [Twilio::REST::Preview::Sync::ServiceContext] if sid was passed.
# @return [Twilio::REST::Preview::Sync::ServiceList]
def services(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
end
if sid == :unset
@services ||= ServiceList.new self
else
ServiceContext.new(self, sid)
end
end
##
# Provide a user friendly representation
def to_s
'<Twilio::REST::Preview::Sync>';
end
end
end
end
end
Loading

0 comments on commit 5ec7eb6

Please sign in to comment.