Skip to content

Commit 5e628dd

Browse files
committed
[Librarian] Regenerated @ 5eb406c4977c9f6976e6053cb5b581056f541a59
1 parent f5859f5 commit 5e628dd

File tree

7 files changed

+481
-0
lines changed

7 files changed

+481
-0
lines changed

CHANGES.md

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

4+
[2023-11-06] Version 6.8.1
5+
--------------------------
6+
**Flex**
7+
- Adding `provisioning_status` for Email Manager
8+
9+
**Intelligence**
10+
- Add text-generation operator (for example conversation summary) results to existing OperatorResults collection.
11+
12+
**Messaging**
13+
- Add DELETE support to Tollfree Verification resource
14+
15+
**Serverless**
16+
- Add node18 as a valid Build runtime
17+
18+
**Verify**
19+
- Update Verify TOTP maturity to GA.
20+
21+
422
[2023-10-19] Version 6.8.0
523
--------------------------
624
**Library - Chore**

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def initialize(domain)
3636
@insights_settings_comment = nil
3737
@insights_user_roles = nil
3838
@interaction = nil
39+
@provisioning_status = nil
3940
@web_channel = nil
4041
end
4142

@@ -178,6 +179,11 @@ def interaction(sid=:unset)
178179
end
179180
end
180181
##
182+
# @return [Twilio::REST::FlexApi::V1::provisioningStatusContext]
183+
def provisioning_status
184+
@provisioning_status ||= ProvisioningStatusContext.new self
185+
end
186+
##
181187
# @param [String] sid The SID of the WebChannel resource to fetch.
182188
# @return [Twilio::REST::FlexApi::V1::WebChannelContext] if sid was passed.
183189
# @return [Twilio::REST::FlexApi::V1::WebChannelList]
Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
##
2+
# This code was generated by
3+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
#
7+
# Twilio - Flex
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 FlexApi < FlexApiBase
19+
class V1 < Version
20+
class ProvisioningStatusList < ListResource
21+
##
22+
# Initialize the ProvisioningStatusList
23+
# @param [Version] version Version that contains the resource
24+
# @return [ProvisioningStatusList] ProvisioningStatusList
25+
def initialize(version)
26+
super(version)
27+
# Path Solution
28+
@solution = { }
29+
30+
31+
end
32+
33+
34+
35+
# Provide a user friendly representation
36+
def to_s
37+
'#<Twilio.FlexApi.V1.ProvisioningStatusList>'
38+
end
39+
end
40+
41+
42+
##
43+
#PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
44+
class ProvisioningStatusContext < InstanceContext
45+
##
46+
# Initialize the ProvisioningStatusContext
47+
# @param [Version] version Version that contains the resource
48+
# @return [ProvisioningStatusContext] ProvisioningStatusContext
49+
def initialize(version)
50+
super(version)
51+
52+
# Path Solution
53+
@solution = { }
54+
@uri = "/account/provision/status"
55+
56+
57+
end
58+
##
59+
# Fetch the ProvisioningStatusInstance
60+
# @return [ProvisioningStatusInstance] Fetched ProvisioningStatusInstance
61+
def fetch
62+
63+
payload = @version.fetch('GET', @uri)
64+
ProvisioningStatusInstance.new(
65+
@version,
66+
payload,
67+
)
68+
end
69+
70+
71+
##
72+
# Provide a user friendly representation
73+
def to_s
74+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
75+
"#<Twilio.FlexApi.V1.ProvisioningStatusContext #{context}>"
76+
end
77+
78+
##
79+
# Provide a detailed, user friendly representation
80+
def inspect
81+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
82+
"#<Twilio.FlexApi.V1.ProvisioningStatusContext #{context}>"
83+
end
84+
end
85+
86+
class ProvisioningStatusPage < Page
87+
##
88+
# Initialize the ProvisioningStatusPage
89+
# @param [Version] version Version that contains the resource
90+
# @param [Response] response Response from the API
91+
# @param [Hash] solution Path solution for the resource
92+
# @return [ProvisioningStatusPage] ProvisioningStatusPage
93+
def initialize(version, response, solution)
94+
super(version, response)
95+
96+
# Path Solution
97+
@solution = solution
98+
end
99+
100+
##
101+
# Build an instance of ProvisioningStatusInstance
102+
# @param [Hash] payload Payload response from the API
103+
# @return [ProvisioningStatusInstance] ProvisioningStatusInstance
104+
def get_instance(payload)
105+
ProvisioningStatusInstance.new(@version, payload)
106+
end
107+
108+
##
109+
# Provide a user friendly representation
110+
def to_s
111+
'<Twilio.FlexApi.V1.ProvisioningStatusPage>'
112+
end
113+
end
114+
class ProvisioningStatusInstance < InstanceResource
115+
##
116+
# Initialize the ProvisioningStatusInstance
117+
# @param [Version] version Version that contains the resource
118+
# @param [Hash] payload payload that contains response from Twilio
119+
# @param [String] account_sid The SID of the
120+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this ProvisioningStatus
121+
# resource.
122+
# @param [String] sid The SID of the Call resource to fetch.
123+
# @return [ProvisioningStatusInstance] ProvisioningStatusInstance
124+
def initialize(version, payload )
125+
super(version)
126+
127+
# Marshaled Properties
128+
@properties = {
129+
'status' => payload['status'],
130+
'url' => payload['url'],
131+
}
132+
133+
# Context
134+
@instance_context = nil
135+
@params = { }
136+
end
137+
138+
##
139+
# Generate an instance context for the instance, the context is capable of
140+
# performing various actions. All instance actions are proxied to the context
141+
# @return [ProvisioningStatusContext] CallContext for this CallInstance
142+
def context
143+
unless @instance_context
144+
@instance_context = ProvisioningStatusContext.new(@version )
145+
end
146+
@instance_context
147+
end
148+
149+
##
150+
# @return [Status]
151+
def status
152+
@properties['status']
153+
end
154+
155+
##
156+
# @return [String] The absolute URL of the resource.
157+
def url
158+
@properties['url']
159+
end
160+
161+
##
162+
# Fetch the ProvisioningStatusInstance
163+
# @return [ProvisioningStatusInstance] Fetched ProvisioningStatusInstance
164+
def fetch
165+
166+
context.fetch
167+
end
168+
169+
##
170+
# Provide a user friendly representation
171+
def to_s
172+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
173+
"<Twilio.FlexApi.V1.ProvisioningStatusInstance #{values}>"
174+
end
175+
176+
##
177+
# Provide a detailed, user friendly representation
178+
def inspect
179+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
180+
"<Twilio.FlexApi.V1.ProvisioningStatusInstance #{values}>"
181+
end
182+
end
183+
184+
end
185+
end
186+
end
187+
end

lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ def initialize(version, payload , transcript_sid: nil, operator_sid: nil)
240240
'predicted_probability' => payload['predicted_probability'],
241241
'label_probabilities' => payload['label_probabilities'],
242242
'extract_results' => payload['extract_results'],
243+
'text_generation_results' => payload['text_generation_results'],
243244
'transcript_sid' => payload['transcript_sid'],
244245
'url' => payload['url'],
245246
}
@@ -332,6 +333,12 @@ def extract_results
332333
@properties['extract_results']
333334
end
334335

336+
##
337+
# @return [Hash] Output of a text generation operator for example Conversation Sumamary.
338+
def text_generation_results
339+
@properties['text_generation_results']
340+
end
341+
335342
##
336343
# @return [String] A 34 character string that uniquely identifies this Transcript.
337344
def transcript_sid

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,14 @@ def initialize(version, sid)
237237

238238

239239
end
240+
##
241+
# Delete the TollfreeVerificationInstance
242+
# @return [Boolean] True if delete succeeds, false otherwise
243+
def delete
244+
245+
@version.delete('DELETE', @uri)
246+
end
247+
240248
##
241249
# Fetch the TollfreeVerificationInstance
242250
# @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance
@@ -649,6 +657,14 @@ def external_reference_id
649657
@properties['external_reference_id']
650658
end
651659

660+
##
661+
# Delete the TollfreeVerificationInstance
662+
# @return [Boolean] True if delete succeeds, false otherwise
663+
def delete
664+
665+
context.delete
666+
end
667+
652668
##
653669
# Fetch the TollfreeVerificationInstance
654670
# @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def initialize(domain)
2222
super
2323
@version = 'v1'
2424
@compliance_inquiries = nil
25+
@compliance_tollfree_inquiries = nil
2526
@customer_profiles = nil
2627
@end_users = nil
2728
@end_user_types = nil
@@ -46,6 +47,20 @@ def compliance_inquiries(customer_id=:unset)
4647
end
4748
end
4849
##
50+
# @param [String] tollfree_id The unique TolfreeId matching the Compliance Tollfree Verification Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Tollfree Verification Inquiry creation call.
51+
# @return [Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesContext] if tollfreeId was passed.
52+
# @return [Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesList]
53+
def compliance_tollfree_inquiries(tollfree_id=:unset)
54+
if tollfree_id.nil?
55+
raise ArgumentError, 'tollfree_id cannot be nil'
56+
end
57+
if tollfree_id == :unset
58+
@compliance_tollfree_inquiries ||= ComplianceTollfreeInquiriesList.new self
59+
else
60+
ComplianceTollfreeInquiriesContext.new(self, tollfree_id)
61+
end
62+
end
63+
##
4964
# @param [String] sid The unique string that we created to identify the Customer-Profile resource.
5065
# @return [Twilio::REST::Trusthub::V1::CustomerProfilesContext] if sid was passed.
5166
# @return [Twilio::REST::Trusthub::V1::CustomerProfilesList]

0 commit comments

Comments
 (0)