From 5e628ddae4fe7ba00c15fd2f8e4a652f8263bd25 Mon Sep 17 00:00:00 2001 From: Twilio Date: Mon, 6 Nov 2023 14:52:37 +0000 Subject: [PATCH] [Librarian] Regenerated @ 5eb406c4977c9f6976e6053cb5b581056f541a59 --- CHANGES.md | 18 ++ lib/twilio-ruby/rest/flex_api/v1.rb | 6 + .../rest/flex_api/v1/provisioning_status.rb | 187 ++++++++++++++ .../v2/transcript/operator_result.rb | 7 + .../messaging/v1/tollfree_verification.rb | 16 ++ lib/twilio-ruby/rest/trusthub/v1.rb | 15 ++ .../v1/compliance_tollfree_inquiries.rb | 232 ++++++++++++++++++ 7 files changed, 481 insertions(+) create mode 100644 lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb create mode 100644 lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb diff --git a/CHANGES.md b/CHANGES.md index 8b80db49a..cfef0da84 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,24 @@ twilio-ruby changelog ===================== +[2023-11-06] Version 6.8.1 +-------------------------- +**Flex** +- Adding `provisioning_status` for Email Manager + +**Intelligence** +- Add text-generation operator (for example conversation summary) results to existing OperatorResults collection. + +**Messaging** +- Add DELETE support to Tollfree Verification resource + +**Serverless** +- Add node18 as a valid Build runtime + +**Verify** +- Update Verify TOTP maturity to GA. + + [2023-10-19] Version 6.8.0 -------------------------- **Library - Chore** diff --git a/lib/twilio-ruby/rest/flex_api/v1.rb b/lib/twilio-ruby/rest/flex_api/v1.rb index 864c38f55..3fadd4aec 100644 --- a/lib/twilio-ruby/rest/flex_api/v1.rb +++ b/lib/twilio-ruby/rest/flex_api/v1.rb @@ -36,6 +36,7 @@ def initialize(domain) @insights_settings_comment = nil @insights_user_roles = nil @interaction = nil + @provisioning_status = nil @web_channel = nil end @@ -178,6 +179,11 @@ def interaction(sid=:unset) end end ## + # @return [Twilio::REST::FlexApi::V1::provisioningStatusContext] + def provisioning_status + @provisioning_status ||= ProvisioningStatusContext.new self + end + ## # @param [String] sid The SID of the WebChannel resource to fetch. # @return [Twilio::REST::FlexApi::V1::WebChannelContext] if sid was passed. # @return [Twilio::REST::FlexApi::V1::WebChannelList] diff --git a/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb b/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb new file mode 100644 index 000000000..cbb383a30 --- /dev/null +++ b/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb @@ -0,0 +1,187 @@ +## +# This code was generated by +# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ +# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ +# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ +# +# Twilio - Flex +# 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 FlexApi < FlexApiBase + class V1 < Version + class ProvisioningStatusList < ListResource + ## + # Initialize the ProvisioningStatusList + # @param [Version] version Version that contains the resource + # @return [ProvisioningStatusList] ProvisioningStatusList + def initialize(version) + super(version) + # Path Solution + @solution = { } + + + end + + + + # Provide a user friendly representation + def to_s + '#' + end + end + + + ## + #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution. + class ProvisioningStatusContext < InstanceContext + ## + # Initialize the ProvisioningStatusContext + # @param [Version] version Version that contains the resource + # @return [ProvisioningStatusContext] ProvisioningStatusContext + def initialize(version) + super(version) + + # Path Solution + @solution = { } + @uri = "/account/provision/status" + + + end + ## + # Fetch the ProvisioningStatusInstance + # @return [ProvisioningStatusInstance] Fetched ProvisioningStatusInstance + def fetch + + payload = @version.fetch('GET', @uri) + ProvisioningStatusInstance.new( + @version, + payload, + ) + end + + + ## + # Provide a user friendly representation + def to_s + context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') + "#" + end + + ## + # Provide a detailed, user friendly representation + def inspect + context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') + "#" + end + end + + class ProvisioningStatusPage < Page + ## + # Initialize the ProvisioningStatusPage + # @param [Version] version Version that contains the resource + # @param [Response] response Response from the API + # @param [Hash] solution Path solution for the resource + # @return [ProvisioningStatusPage] ProvisioningStatusPage + def initialize(version, response, solution) + super(version, response) + + # Path Solution + @solution = solution + end + + ## + # Build an instance of ProvisioningStatusInstance + # @param [Hash] payload Payload response from the API + # @return [ProvisioningStatusInstance] ProvisioningStatusInstance + def get_instance(payload) + ProvisioningStatusInstance.new(@version, payload) + end + + ## + # Provide a user friendly representation + def to_s + '' + end + end + class ProvisioningStatusInstance < InstanceResource + ## + # Initialize the ProvisioningStatusInstance + # @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 ProvisioningStatus + # resource. + # @param [String] sid The SID of the Call resource to fetch. + # @return [ProvisioningStatusInstance] ProvisioningStatusInstance + def initialize(version, payload ) + super(version) + + # Marshaled Properties + @properties = { + 'status' => payload['status'], + 'url' => payload['url'], + } + + # Context + @instance_context = nil + @params = { } + end + + ## + # Generate an instance context for the instance, the context is capable of + # performing various actions. All instance actions are proxied to the context + # @return [ProvisioningStatusContext] CallContext for this CallInstance + def context + unless @instance_context + @instance_context = ProvisioningStatusContext.new(@version ) + end + @instance_context + end + + ## + # @return [Status] + def status + @properties['status'] + end + + ## + # @return [String] The absolute URL of the resource. + def url + @properties['url'] + end + + ## + # Fetch the ProvisioningStatusInstance + # @return [ProvisioningStatusInstance] Fetched ProvisioningStatusInstance + def fetch + + context.fetch + end + + ## + # Provide a user friendly representation + def to_s + values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") + "" + end + + ## + # Provide a detailed, user friendly representation + def inspect + values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") + "" + end + end + + end + end + end +end diff --git a/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb b/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb index 9e20f1d73..64960555b 100644 --- a/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +++ b/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb @@ -240,6 +240,7 @@ def initialize(version, payload , transcript_sid: nil, operator_sid: nil) 'predicted_probability' => payload['predicted_probability'], 'label_probabilities' => payload['label_probabilities'], 'extract_results' => payload['extract_results'], + 'text_generation_results' => payload['text_generation_results'], 'transcript_sid' => payload['transcript_sid'], 'url' => payload['url'], } @@ -332,6 +333,12 @@ def extract_results @properties['extract_results'] end + ## + # @return [Hash] Output of a text generation operator for example Conversation Sumamary. + def text_generation_results + @properties['text_generation_results'] + end + ## # @return [String] A 34 character string that uniquely identifies this Transcript. def transcript_sid diff --git a/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb b/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb index 237cd8098..cd2a580a1 100644 --- a/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +++ b/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb @@ -237,6 +237,14 @@ def initialize(version, sid) end + ## + # Delete the TollfreeVerificationInstance + # @return [Boolean] True if delete succeeds, false otherwise + def delete + + @version.delete('DELETE', @uri) + end + ## # Fetch the TollfreeVerificationInstance # @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance @@ -649,6 +657,14 @@ def external_reference_id @properties['external_reference_id'] end + ## + # Delete the TollfreeVerificationInstance + # @return [Boolean] True if delete succeeds, false otherwise + def delete + + context.delete + end + ## # Fetch the TollfreeVerificationInstance # @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance diff --git a/lib/twilio-ruby/rest/trusthub/v1.rb b/lib/twilio-ruby/rest/trusthub/v1.rb index 7a7edf684..0481a90cc 100644 --- a/lib/twilio-ruby/rest/trusthub/v1.rb +++ b/lib/twilio-ruby/rest/trusthub/v1.rb @@ -22,6 +22,7 @@ def initialize(domain) super @version = 'v1' @compliance_inquiries = nil + @compliance_tollfree_inquiries = nil @customer_profiles = nil @end_users = nil @end_user_types = nil @@ -46,6 +47,20 @@ def compliance_inquiries(customer_id=:unset) end end ## + # @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. + # @return [Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesContext] if tollfreeId was passed. + # @return [Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesList] + def compliance_tollfree_inquiries(tollfree_id=:unset) + if tollfree_id.nil? + raise ArgumentError, 'tollfree_id cannot be nil' + end + if tollfree_id == :unset + @compliance_tollfree_inquiries ||= ComplianceTollfreeInquiriesList.new self + else + ComplianceTollfreeInquiriesContext.new(self, tollfree_id) + end + end + ## # @param [String] sid The unique string that we created to identify the Customer-Profile resource. # @return [Twilio::REST::Trusthub::V1::CustomerProfilesContext] if sid was passed. # @return [Twilio::REST::Trusthub::V1::CustomerProfilesList] diff --git a/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb b/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb new file mode 100644 index 000000000..a52f8198e --- /dev/null +++ b/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb @@ -0,0 +1,232 @@ +## +# This code was generated by +# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ +# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ +# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ +# +# Twilio - Trusthub +# 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 Trusthub < TrusthubBase + class V1 < Version + class ComplianceTollfreeInquiriesList < ListResource + ## + # Initialize the ComplianceTollfreeInquiriesList + # @param [Version] version Version that contains the resource + # @return [ComplianceTollfreeInquiriesList] ComplianceTollfreeInquiriesList + def initialize(version) + super(version) + # Path Solution + @solution = { } + @uri = "/ComplianceInquiries/Tollfree/Initialize" + + end + ## + # Create the ComplianceTollfreeInquiriesInstance + # @param [String] did The Tollfree phone number to be verified + # @return [ComplianceTollfreeInquiriesInstance] Created ComplianceTollfreeInquiriesInstance + def create( + did: nil + ) + + data = Twilio::Values.of({ + 'Did' => did, + }) + + payload = @version.create('POST', @uri, data: data) + ComplianceTollfreeInquiriesInstance.new( + @version, + payload, + ) + end + + + + + # Provide a user friendly representation + def to_s + '#' + end + end + + + class ComplianceTollfreeInquiriesContext < InstanceContext + ## + # Initialize the ComplianceTollfreeInquiriesContext + # @param [Version] version Version that contains the resource + # @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. + # @return [ComplianceTollfreeInquiriesContext] ComplianceTollfreeInquiriesContext + def initialize(version, tollfree_id) + super(version) + + # Path Solution + @solution = { tollfree_id: tollfree_id, } + @uri = "/ComplianceInquiries/Tollfree/#{@solution[:tollfree_id]}/Initialize" + + + end + ## + # Update the ComplianceTollfreeInquiriesInstance + # @param [String] did The Tollfree phone number to be verified + # @return [ComplianceTollfreeInquiriesInstance] Updated ComplianceTollfreeInquiriesInstance + def update( + did: nil + ) + + data = Twilio::Values.of({ + 'Did' => did, + }) + + payload = @version.update('POST', @uri, data: data) + ComplianceTollfreeInquiriesInstance.new( + @version, + payload, + tollfree_id: @solution[:tollfree_id], + ) + end + + + ## + # Provide a user friendly representation + def to_s + context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') + "#" + end + + ## + # Provide a detailed, user friendly representation + def inspect + context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') + "#" + end + end + + class ComplianceTollfreeInquiriesPage < Page + ## + # Initialize the ComplianceTollfreeInquiriesPage + # @param [Version] version Version that contains the resource + # @param [Response] response Response from the API + # @param [Hash] solution Path solution for the resource + # @return [ComplianceTollfreeInquiriesPage] ComplianceTollfreeInquiriesPage + def initialize(version, response, solution) + super(version, response) + + # Path Solution + @solution = solution + end + + ## + # Build an instance of ComplianceTollfreeInquiriesInstance + # @param [Hash] payload Payload response from the API + # @return [ComplianceTollfreeInquiriesInstance] ComplianceTollfreeInquiriesInstance + def get_instance(payload) + ComplianceTollfreeInquiriesInstance.new(@version, payload) + end + + ## + # Provide a user friendly representation + def to_s + '' + end + end + class ComplianceTollfreeInquiriesInstance < InstanceResource + ## + # Initialize the ComplianceTollfreeInquiriesInstance + # @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 ComplianceTollfreeInquiries + # resource. + # @param [String] sid The SID of the Call resource to fetch. + # @return [ComplianceTollfreeInquiriesInstance] ComplianceTollfreeInquiriesInstance + def initialize(version, payload , tollfree_id: nil) + super(version) + + # Marshaled Properties + @properties = { + 'inquiry_id' => payload['inquiry_id'], + 'inquiry_session_token' => payload['inquiry_session_token'], + 'tollfree_id' => payload['tollfree_id'], + 'url' => payload['url'], + } + + # Context + @instance_context = nil + @params = { 'tollfree_id' => tollfree_id || @properties['tollfree_id'] , } + end + + ## + # Generate an instance context for the instance, the context is capable of + # performing various actions. All instance actions are proxied to the context + # @return [ComplianceTollfreeInquiriesContext] CallContext for this CallInstance + def context + unless @instance_context + @instance_context = ComplianceTollfreeInquiriesContext.new(@version , @params['tollfree_id']) + end + @instance_context + end + + ## + # @return [String] The unique ID used to start an embedded compliance registration session. + def inquiry_id + @properties['inquiry_id'] + end + + ## + # @return [String] The session token used to start an embedded compliance registration session. + def inquiry_session_token + @properties['inquiry_session_token'] + end + + ## + # @return [String] The TolfreeId matching the Tollfree Profile that should be resumed or resubmitted for editing. + def tollfree_id + @properties['tollfree_id'] + end + + ## + # @return [String] The URL of this resource. + def url + @properties['url'] + end + + ## + # Update the ComplianceTollfreeInquiriesInstance + # @param [String] did The Tollfree phone number to be verified + # @return [ComplianceTollfreeInquiriesInstance] Updated ComplianceTollfreeInquiriesInstance + def update( + did: nil + ) + + context.update( + did: did, + ) + end + + ## + # Provide a user friendly representation + def to_s + values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") + "" + end + + ## + # Provide a detailed, user friendly representation + def inspect + values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") + "" + end + end + + end + end + end +end