Skip to content

Commit

Permalink
Merge branch 'main' into twilio-help-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kridai authored Sep 27, 2023
2 parents 7878f5d + 3fe8534 commit a4e116d
Show file tree
Hide file tree
Showing 71 changed files with 405 additions and 154 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
=====================

[2023-09-21] Version 6.7.0
--------------------------
**Conversations**
- Enable conversation email bindings, email address configurations and email message subjects

**Flex**
- Adding `console_errors_included` to Flex Configuration field `debugger_integrations`
- Introducing new channel status as `inactive` in modify channel endpoint for leave functionality **(breaking change)**
- Adding `citrix_voice_vdi` to Flex Configuration

**Taskrouter**
- Add Update Queues, Workers, Workflow Real Time Statistics API to flex-rt-data-api-v2 endpoint
- Add Update Workspace Real Time Statistics API to flex-rt-data-api-v2 endpoint


[2023-09-07] Version 6.6.0
--------------------------
**Api**
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', '~> 6.6.0'
gem 'twilio-ruby', '~> 6.7.0'
```

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

```bash
gem install twilio-ruby -v 6.6.0
gem install twilio-ruby -v 6.7.0
```

To build and install the development branch yourself from the latest source:
Expand Down
6 changes: 6 additions & 0 deletions lib/twilio-ruby/rest/api/v2010.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def initialize(domain)
super
@version = '2010-04-01'
@accounts = nil
@safelist = nil
end

##
Expand Down Expand Up @@ -122,6 +123,11 @@ def accounts(sid=:unset)
end
end
##
# @return [Twilio::REST::Api::V2010::SafelistList]
def safelist
@safelist ||= SafelistList.new self
end
##
# Provide a user friendly representation
def to_s
'<Twilio::REST::Api::V2010>';
Expand Down
2 changes: 1 addition & 1 deletion lib/twilio-ruby/rest/api/v2010/account/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def update(
def dependent_phone_numbers
unless @dependent_phone_numbers
@dependent_phone_numbers = DependentPhoneNumberList.new(
@version, account_sid: @solution[:account_sid], address_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], address_sid: @solution[:sid], )
end
@dependent_phone_numbers
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def fetch
def voip
unless @voip
@voip = VoipList.new(
@version, account_sid: @solution[:account_sid], country_code: @solution[:country_code], )
@version, account_sid: @solution[:account_sid], country_code: @solution[:country_code], )
end
@voip
end
Expand All @@ -180,7 +180,7 @@ def voip
def national
unless @national
@national = NationalList.new(
@version, account_sid: @solution[:account_sid], country_code: @solution[:country_code], )
@version, account_sid: @solution[:account_sid], country_code: @solution[:country_code], )
end
@national
end
Expand All @@ -191,7 +191,7 @@ def national
def mobile
unless @mobile
@mobile = MobileList.new(
@version, account_sid: @solution[:account_sid], country_code: @solution[:country_code], )
@version, account_sid: @solution[:account_sid], country_code: @solution[:country_code], )
end
@mobile
end
Expand All @@ -202,7 +202,7 @@ def mobile
def machine_to_machine
unless @machine_to_machine
@machine_to_machine = MachineToMachineList.new(
@version, account_sid: @solution[:account_sid], country_code: @solution[:country_code], )
@version, account_sid: @solution[:account_sid], country_code: @solution[:country_code], )
end
@machine_to_machine
end
Expand All @@ -213,7 +213,7 @@ def machine_to_machine
def toll_free
unless @toll_free
@toll_free = TollFreeList.new(
@version, account_sid: @solution[:account_sid], country_code: @solution[:country_code], )
@version, account_sid: @solution[:account_sid], country_code: @solution[:country_code], )
end
@toll_free
end
Expand All @@ -224,7 +224,7 @@ def toll_free
def shared_cost
unless @shared_cost
@shared_cost = SharedCostList.new(
@version, account_sid: @solution[:account_sid], country_code: @solution[:country_code], )
@version, account_sid: @solution[:account_sid], country_code: @solution[:country_code], )
end
@shared_cost
end
Expand All @@ -235,7 +235,7 @@ def shared_cost
def local
unless @local
@local = LocalList.new(
@version, account_sid: @solution[:account_sid], country_code: @solution[:country_code], )
@version, account_sid: @solution[:account_sid], country_code: @solution[:country_code], )
end
@local
end
Expand Down
16 changes: 8 additions & 8 deletions lib/twilio-ruby/rest/api/v2010/account/call.rb
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def update(
def events
unless @events
@events = EventList.new(
@version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
end
@events
end
Expand All @@ -431,7 +431,7 @@ def events
def user_defined_messages
unless @user_defined_messages
@user_defined_messages = UserDefinedMessageList.new(
@version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
end
@user_defined_messages
end
Expand All @@ -449,7 +449,7 @@ def siprec(sid=:unset)

unless @siprec
@siprec = SiprecList.new(
@version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
end

@siprec
Expand All @@ -468,7 +468,7 @@ def user_defined_message_subscriptions(sid=:unset)

unless @user_defined_message_subscriptions
@user_defined_message_subscriptions = UserDefinedMessageSubscriptionList.new(
@version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
end

@user_defined_message_subscriptions
Expand All @@ -487,7 +487,7 @@ def payments(sid=:unset)

unless @payments
@payments = PaymentList.new(
@version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
end

@payments
Expand All @@ -506,7 +506,7 @@ def recordings(sid=:unset)

unless @recordings
@recordings = RecordingList.new(
@version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
end

@recordings
Expand All @@ -525,7 +525,7 @@ def notifications(sid=:unset)

unless @notifications
@notifications = NotificationList.new(
@version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
end

@notifications
Expand Down Expand Up @@ -555,7 +555,7 @@ def streams(sid=:unset)

unless @streams
@streams = StreamList.new(
@version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
end

@streams
Expand Down
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/api/v2010/account/conference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def recordings(sid=:unset)

unless @recordings
@recordings = RecordingList.new(
@version, account_sid: @solution[:account_sid], conference_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], conference_sid: @solution[:sid], )
end

@recordings
Expand All @@ -265,7 +265,7 @@ def participants(call_sid=:unset)

unless @participants
@participants = ParticipantList.new(
@version, account_sid: @solution[:account_sid], conference_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], conference_sid: @solution[:sid], )
end

@participants
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def assigned_add_ons(sid=:unset)

unless @assigned_add_ons
@assigned_add_ons = AssignedAddOnList.new(
@version, account_sid: @solution[:account_sid], resource_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], resource_sid: @solution[:sid], )
end

@assigned_add_ons
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def extensions(sid=:unset)

unless @extensions
@extensions = AssignedAddOnExtensionList.new(
@version, account_sid: @solution[:account_sid], resource_sid: @solution[:resource_sid], assigned_add_on_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], resource_sid: @solution[:resource_sid], assigned_add_on_sid: @solution[:sid], )
end

@extensions
Expand Down
6 changes: 3 additions & 3 deletions lib/twilio-ruby/rest/api/v2010/account/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def initialize(version, account_sid: nil)
# @param [String] content_variables For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used.
# @param [String] tags A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length.
# @param [RiskCheck] risk_check
# @param [String] from The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belong to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
# @param [String] from The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
# @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) you want to associate with the Message. When this parameter is provided and the `from` parameter is omitted, Twilio selects the optimal sender from the Messaging Service's Sender Pool. You may also provide a `from` parameter if you want to use a specific Sender from the Sender Pool.
# @param [String] body The text content of the outgoing message. Can be up to 1,600 characters in length. SMS only: If the `body` contains more than 160 [GSM-7](https://www.twilio.com/docs/glossary/what-is-gsm-7-character-encoding) characters (or 70 [UCS-2](https://www.twilio.com/docs/glossary/what-is-ucs-2-character-encoding) characters), the message is segmented and charged accordingly. For long `body` text, consider using the [send_as_mms parameter](https://www.twilio.com/blog/mms-for-long-text-messages).
# @param [Array[String]] media_url The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply.
Expand Down Expand Up @@ -315,7 +315,7 @@ def update(
def feedback
unless @feedback
@feedback = FeedbackList.new(
@version, account_sid: @solution[:account_sid], message_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], message_sid: @solution[:sid], )
end
@feedback
end
Expand All @@ -333,7 +333,7 @@ def media(sid=:unset)

unless @media
@media = MediaList.new(
@version, account_sid: @solution[:account_sid], message_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], message_sid: @solution[:sid], )
end

@media
Expand Down
2 changes: 1 addition & 1 deletion lib/twilio-ruby/rest/api/v2010/account/queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def members(call_sid=:unset)

unless @members
@members = MemberList.new(
@version, account_sid: @solution[:account_sid], queue_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], queue_sid: @solution[:sid], )
end

@members
Expand Down
4 changes: 2 additions & 2 deletions lib/twilio-ruby/rest/api/v2010/account/recording.rb
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def add_on_results(sid=:unset)

unless @add_on_results
@add_on_results = AddOnResultList.new(
@version, account_sid: @solution[:account_sid], reference_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], reference_sid: @solution[:sid], )
end

@add_on_results
Expand All @@ -240,7 +240,7 @@ def transcriptions(sid=:unset)

unless @transcriptions
@transcriptions = TranscriptionList.new(
@version, account_sid: @solution[:account_sid], recording_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], recording_sid: @solution[:sid], )
end

@transcriptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def payloads(sid=:unset)

unless @payloads
@payloads = PayloadList.new(
@version, account_sid: @solution[:account_sid], reference_sid: @solution[:reference_sid], add_on_result_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], reference_sid: @solution[:reference_sid], add_on_result_sid: @solution[:sid], )
end

@payloads
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def credentials(sid=:unset)

unless @credentials
@credentials = CredentialList.new(
@version, account_sid: @solution[:account_sid], credential_list_sid: @solution[:sid], )
@version, account_sid: @solution[:account_sid], credential_list_sid: @solution[:sid], )
end

@credentials
Expand Down
Loading

0 comments on commit a4e116d

Please sign in to comment.