Skip to content

Commit 95fd4e5

Browse files
committed
[Librarian] Regenerated @ 704aff1023a3b44d7f87c78c70595552749ad55c
1 parent fe7eb31 commit 95fd4e5

File tree

84 files changed

+11922
-706
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+11922
-706
lines changed

CHANGES.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
twilio-ruby changelog
22
=====================
33

4+
[2024-01-25] Version 6.10.0
5+
---------------------------
6+
**Oauth**
7+
- updated openid discovery endpoint uri **(breaking change)**
8+
- Added device code authorization endpoint
9+
- added oauth JWKS endpoint
10+
- Get userinfo resource
11+
- OpenID discovery resource
12+
- Add new API for token endpoint
13+
14+
415
[2024-01-14] Version 6.9.1
516
--------------------------
617
**Library - Chore**

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

+14
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ def initialize(version, payload , account_sid: nil, connect_app_sid: nil)
220220
'connect_app_friendly_name' => payload['connect_app_friendly_name'],
221221
'connect_app_homepage_url' => payload['connect_app_homepage_url'],
222222
'connect_app_sid' => payload['connect_app_sid'],
223+
'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
224+
'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
223225
'permissions' => payload['permissions'],
224226
'uri' => payload['uri'],
225227
}
@@ -276,6 +278,18 @@ def connect_app_sid
276278
@properties['connect_app_sid']
277279
end
278280

281+
##
282+
# @return [Time] The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
283+
def date_created
284+
@properties['date_created']
285+
end
286+
287+
##
288+
# @return [Time] The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
289+
def date_updated
290+
@properties['date_updated']
291+
end
292+
279293
##
280294
# @return [Array<Permission>] The set of permissions that you authorized for the Connect App. Can be: `get-all` or `post-all`.
281295
def permissions

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

+1-4
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ def initialize(version, account_sid: nil, conference_sid: nil)
8181
# @param [String] amd_status_callback The URL that we should call using the `amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax.
8282
# @param [String] amd_status_callback_method The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
8383
# @param [String] trim Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
84-
# @param [String] call_token A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
8584
# @return [ParticipantInstance] Created ParticipantInstance
8685
def create(
8786
from: nil,
@@ -130,8 +129,7 @@ def create(
130129
machine_detection_silence_timeout: :unset,
131130
amd_status_callback: :unset,
132131
amd_status_callback_method: :unset,
133-
trim: :unset,
134-
call_token: :unset
132+
trim: :unset
135133
)
136134

137135
data = Twilio::Values.of({
@@ -182,7 +180,6 @@ def create(
182180
'AmdStatusCallback' => amd_status_callback,
183181
'AmdStatusCallbackMethod' => amd_status_callback_method,
184182
'Trim' => trim,
185-
'CallToken' => call_token,
186183
})
187184

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

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ def initialize(version, account_sid: nil)
4545
# @param [AddressRetention] address_retention
4646
# @param [Boolean] smart_encoded Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: `true` or `false`.
4747
# @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).
48-
# @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.
48+
# @param [Boolean] shorten_urls For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/how-to-configure-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.
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 delivers the message as a single MMS message, regardless of the presence of media.
5252
# @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.
5353
# @param [RiskCheck] risk_check
54-
# @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/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), 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.
54+
# @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.
5555
# @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.
5656
# @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).
57-
# @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/messaging/guides/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.
57+
# @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.
5858
# @param [String] content_sid For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio's response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources).
5959
# @return [MessageInstance] Created MessageInstance
6060
def create(
@@ -451,7 +451,7 @@ def direction
451451
end
452452

453453
##
454-
# @return [String] The sender's phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent.
454+
# @return [String] The sender's 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`). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent.
455455
def from
456456
@properties['from']
457457
end

lib/twilio-ruby/rest/autopilot.rb

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module Twilio
2+
module REST
3+
class Autopilot < AutopilotBase;
4+
end
5+
end
6+
end

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

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
##
2+
# This code was generated by
3+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
#
7+
# Twilio - Autopilot
8+
# This is the public Twilio REST API.
9+
#
10+
# NOTE: This class is auto generated by OpenAPI Generator.
11+
# https://openapi-generator.tech
12+
# Do not edit the class manually.
13+
#
14+
15+
module Twilio
16+
module REST
17+
class Autopilot
18+
class V1 < Version
19+
##
20+
# Initialize the V1 version of Autopilot
21+
def initialize(domain)
22+
super
23+
@version = 'v1'
24+
@assistants = nil
25+
@restore_assistant = nil
26+
end
27+
28+
##
29+
# @param [String] sid The Twilio-provided string that uniquely identifies the Assistant resource to fetch.
30+
# @return [Twilio::REST::Autopilot::V1::AssistantContext] if sid was passed.
31+
# @return [Twilio::REST::Autopilot::V1::AssistantList]
32+
def assistants(sid=:unset)
33+
if sid.nil?
34+
raise ArgumentError, 'sid cannot be nil'
35+
end
36+
if sid == :unset
37+
@assistants ||= AssistantList.new self
38+
else
39+
AssistantContext.new(self, sid)
40+
end
41+
end
42+
##
43+
# @return [Twilio::REST::Autopilot::V1::RestoreAssistantList]
44+
def restore_assistant
45+
@restore_assistant ||= RestoreAssistantList.new self
46+
end
47+
##
48+
# Provide a user friendly representation
49+
def to_s
50+
'<Twilio::REST::Autopilot::V1>';
51+
end
52+
end
53+
end
54+
end
55+
end

0 commit comments

Comments
 (0)