Skip to content

Commit a3e145d

Browse files
committed
[Librarian] Regenerated @ 86e712bb98e901aebd01edb01085d4f2becccd4c 8aaa87554258fca95fe9a1d38e0058f0c2c055c5
1 parent bd17551 commit a3e145d

File tree

7 files changed

+725
-1
lines changed

7 files changed

+725
-1
lines changed

CHANGES.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
twilio-ruby changelog
22
=====================
33

4+
[2025-12-03] Version 7.8.8
5+
--------------------------
6+
**Library - Fix**
7+
- [PR #765](https://github.com/twilio/twilio-ruby/pull/765): Regional API domain processing. Thanks to [@manisha1997](https://github.com/manisha1997)!
8+
9+
**Api**
10+
- Add `twiml_session` resource for calls
11+
- Add `twiml_session` resource for calls
12+
13+
**Monitor**
14+
- Update default output properties
15+
16+
**Trusthub**
17+
- Added customer_profile_sid in toll-free initialize api payload.
18+
19+
420
[2025-11-20] Version 7.8.7
521
--------------------------
622
**Memory**

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

Lines changed: 15 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+
@o_auth_apps = nil
2728
@token = nil
2829
end
2930

@@ -52,6 +53,20 @@ def new_api_key
5253
@new_api_key ||= NewApiKeyList.new self
5354
end
5455
##
56+
# @param [String] sid Unique ID (sid) of the OAuth app
57+
# @return [Twilio::REST::Iam::V1::OAuthAppContext] if sid was passed.
58+
# @return [Twilio::REST::Iam::V1::OAuthAppList]
59+
def o_auth_apps(sid=:unset)
60+
if sid.nil?
61+
raise ArgumentError, 'sid cannot be nil'
62+
end
63+
if sid == :unset
64+
@o_auth_apps ||= OAuthAppList.new self
65+
else
66+
OAuthAppContext.new(self, sid)
67+
end
68+
end
69+
##
5570
# @return [Twilio::REST::Iam::V1::TokenList]
5671
def token
5772
@token ||= TokenList.new self

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

Lines changed: 462 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def initialize(domain)
2626
@domain_certs = nil
2727
@domain_config = nil
2828
@domain_config_messaging_service = nil
29+
@domain_validate_dns = nil
2930
@external_campaign = nil
3031
@linkshortening_messaging_service = nil
3132
@linkshortening_messaging_service_domain_association = nil
@@ -97,6 +98,20 @@ def domain_config_messaging_service(messaging_service_sid=:unset)
9798
end
9899
end
99100
##
101+
# @param [String] domain_sid Unique string used to identify the domain.
102+
# @return [Twilio::REST::Messaging::V1::DomainValidateDnContext] if domainSid was passed.
103+
# @return [Twilio::REST::Messaging::V1::DomainValidateDnList]
104+
def domain_validate_dns(domain_sid=:unset)
105+
if domain_sid.nil?
106+
raise ArgumentError, 'domain_sid cannot be nil'
107+
end
108+
if domain_sid == :unset
109+
@domain_validate_dns ||= DomainValidateDnList.new self
110+
else
111+
DomainValidateDnContext.new(self, domain_sid)
112+
end
113+
end
114+
##
100115
# @return [Twilio::REST::Messaging::V1::ExternalCampaignList]
101116
def external_campaign
102117
@external_campaign ||= ExternalCampaignList.new self
Lines changed: 208 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
1+
##
2+
# This code was generated by
3+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
#
7+
# Twilio - Messaging
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+
16+
module Twilio
17+
module REST
18+
class Messaging < MessagingBase
19+
class V1 < Version
20+
class DomainValidateDnList < ListResource
21+
22+
##
23+
# Initialize the DomainValidateDnList
24+
# @param [Version] version Version that contains the resource
25+
# @return [DomainValidateDnList] DomainValidateDnList
26+
def initialize(version)
27+
super(version)
28+
# Path Solution
29+
@solution = { }
30+
31+
32+
end
33+
34+
35+
36+
# Provide a user friendly representation
37+
def to_s
38+
'#<Twilio.Messaging.V1.DomainValidateDnList>'
39+
end
40+
end
41+
42+
43+
class DomainValidateDnContext < InstanceContext
44+
##
45+
# Initialize the DomainValidateDnContext
46+
# @param [Version] version Version that contains the resource
47+
# @param [String] domain_sid Unique string used to identify the domain.
48+
# @return [DomainValidateDnContext] DomainValidateDnContext
49+
def initialize(version, domain_sid)
50+
super(version)
51+
52+
# Path Solution
53+
@solution = { domain_sid: domain_sid, }
54+
@uri = "/LinkShortening/Domains/#{@solution[:domain_sid]}/ValidateDns"
55+
56+
57+
end
58+
##
59+
# Fetch the DomainValidateDnInstance
60+
# @return [DomainValidateDnInstance] Fetched DomainValidateDnInstance
61+
def fetch
62+
63+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
64+
65+
66+
67+
68+
69+
payload = @version.fetch('GET', @uri, headers: headers)
70+
DomainValidateDnInstance.new(
71+
@version,
72+
payload,
73+
domain_sid: @solution[:domain_sid],
74+
)
75+
end
76+
77+
78+
##
79+
# Provide a user friendly representation
80+
def to_s
81+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
82+
"#<Twilio.Messaging.V1.DomainValidateDnContext #{context}>"
83+
end
84+
85+
##
86+
# Provide a detailed, user friendly representation
87+
def inspect
88+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
89+
"#<Twilio.Messaging.V1.DomainValidateDnContext #{context}>"
90+
end
91+
end
92+
93+
class DomainValidateDnPage < Page
94+
##
95+
# Initialize the DomainValidateDnPage
96+
# @param [Version] version Version that contains the resource
97+
# @param [Response] response Response from the API
98+
# @param [Hash] solution Path solution for the resource
99+
# @return [DomainValidateDnPage] DomainValidateDnPage
100+
def initialize(version, response, solution)
101+
super(version, response)
102+
103+
# Path Solution
104+
@solution = solution
105+
end
106+
107+
##
108+
# Build an instance of DomainValidateDnInstance
109+
# @param [Hash] payload Payload response from the API
110+
# @return [DomainValidateDnInstance] DomainValidateDnInstance
111+
def get_instance(payload)
112+
DomainValidateDnInstance.new(@version, payload)
113+
end
114+
115+
##
116+
# Provide a user friendly representation
117+
def to_s
118+
'<Twilio.Messaging.V1.DomainValidateDnPage>'
119+
end
120+
end
121+
class DomainValidateDnInstance < InstanceResource
122+
##
123+
# Initialize the DomainValidateDnInstance
124+
# @param [Version] version Version that contains the resource
125+
# @param [Hash] payload payload that contains response from Twilio
126+
# @param [String] account_sid The SID of the
127+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this DomainValidateDn
128+
# resource.
129+
# @param [String] sid The SID of the Call resource to fetch.
130+
# @return [DomainValidateDnInstance] DomainValidateDnInstance
131+
def initialize(version, payload , domain_sid: nil)
132+
super(version)
133+
134+
# Marshaled Properties
135+
@properties = {
136+
'domain_sid' => payload['domain_sid'],
137+
'is_valid' => payload['is_valid'],
138+
'reason' => payload['reason'],
139+
'url' => payload['url'],
140+
}
141+
142+
# Context
143+
@instance_context = nil
144+
@params = { 'domain_sid' => domain_sid || @properties['domain_sid'] , }
145+
end
146+
147+
##
148+
# Generate an instance context for the instance, the context is capable of
149+
# performing various actions. All instance actions are proxied to the context
150+
# @return [DomainValidateDnContext] CallContext for this CallInstance
151+
def context
152+
unless @instance_context
153+
@instance_context = DomainValidateDnContext.new(@version , @params['domain_sid'])
154+
end
155+
@instance_context
156+
end
157+
158+
##
159+
# @return [String] The unique string that we created to identify the Domain resource.
160+
def domain_sid
161+
@properties['domain_sid']
162+
end
163+
164+
##
165+
# @return [Boolean]
166+
def is_valid
167+
@properties['is_valid']
168+
end
169+
170+
##
171+
# @return [String]
172+
def reason
173+
@properties['reason']
174+
end
175+
176+
##
177+
# @return [String]
178+
def url
179+
@properties['url']
180+
end
181+
182+
##
183+
# Fetch the DomainValidateDnInstance
184+
# @return [DomainValidateDnInstance] Fetched DomainValidateDnInstance
185+
def fetch
186+
187+
context.fetch
188+
end
189+
190+
##
191+
# Provide a user friendly representation
192+
def to_s
193+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
194+
"<Twilio.Messaging.V1.DomainValidateDnInstance #{values}>"
195+
end
196+
197+
##
198+
# Provide a detailed, user friendly representation
199+
def inspect
200+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
201+
"<Twilio.Messaging.V1.DomainValidateDnInstance #{values}>"
202+
end
203+
end
204+
205+
end
206+
end
207+
end
208+
end

lib/twilio-ruby/rest/oauth/v2/token.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def initialize(version)
3232
end
3333
##
3434
# Create the TokenInstance
35+
# @param [String] account_sid Optional Account SID to perform on behalf of requests.
3536
# @param [String] grant_type Grant type is a credential representing resource owner's authorization which can be used by client to obtain access token.
3637
# @param [String] client_id A 34 character string that uniquely identifies this OAuth App.
3738
# @param [String] client_secret The credential for confidential OAuth App.
@@ -42,6 +43,7 @@ def initialize(version)
4243
# @param [String] scope The scope of token
4344
# @return [TokenInstance] Created TokenInstance
4445
def create(
46+
account_sid: :unset,
4547
grant_type: :unset,
4648
client_id: :unset,
4749
client_secret: :unset,
@@ -52,6 +54,9 @@ def create(
5254
scope: :unset
5355
)
5456

57+
params = Twilio::Values.of({
58+
'account_sid' => account_sid,
59+
})
5560
data = Twilio::Values.of({
5661
'grant_type' => grant_type,
5762
'client_id' => client_id,
@@ -69,7 +74,7 @@ def create(
6974

7075

7176

72-
payload = @version.create('POST', @uri, data: data, headers: headers)
77+
payload = @version.create('POST', @uri, params: params, data: data, headers: headers)
7378
TokenInstance.new(
7479
@version,
7580
payload,

lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def initialize(version)
3434
# Create the ComplianceTollfreeInquiriesInstance
3535
# @param [String] tollfree_phone_number The Tollfree phone number to be verified
3636
# @param [String] notification_email The email address to receive the notification about the verification result.
37+
# @param [String] customer_profile_sid The Customer Profile Sid associated with the Account.
3738
# @param [String] business_name The name of the business or organization using the Tollfree number.
3839
# @param [String] business_website The website of the business or organization using the Tollfree number.
3940
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many are applicable..
@@ -59,6 +60,7 @@ def initialize(version)
5960
def create(
6061
tollfree_phone_number: nil,
6162
notification_email: nil,
63+
customer_profile_sid: :unset,
6264
business_name: :unset,
6365
business_website: :unset,
6466
use_case_categories: :unset,
@@ -85,6 +87,7 @@ def create(
8587
data = Twilio::Values.of({
8688
'TollfreePhoneNumber' => tollfree_phone_number,
8789
'NotificationEmail' => notification_email,
90+
'CustomerProfileSid' => customer_profile_sid,
8891
'BusinessName' => business_name,
8992
'BusinessWebsite' => business_website,
9093
'UseCaseCategories' => Twilio.serialize_list(use_case_categories) { |e| e },

0 commit comments

Comments
 (0)