twilio-ruby 6.8.0 → 6.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +41 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/client.rb +0 -5
- data/lib/twilio-ruby/rest/{oauth/v1/oauth.rb → flex_api/v1/provisioning_status.rb} +39 -37
- data/lib/twilio-ruby/rest/flex_api/v1.rb +6 -0
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +1 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +31 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +154 -0
- data/lib/twilio-ruby/rest/trusthub/v1.rb +6 -0
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +4 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +4 -10
- data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +0 -171
- data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +0 -262
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -179
- data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +0 -213
- data/lib/twilio-ruby/rest/oauth/v1.rb +0 -64
- data/lib/twilio-ruby/rest/oauth.rb +0 -33
- data/lib/twilio-ruby/rest/oauth_base.rb +0 -38
@@ -0,0 +1,154 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Trusthub
|
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 Trusthub < TrusthubBase
|
19
|
+
class V1 < Version
|
20
|
+
class ComplianceTollfreeInquiriesList < ListResource
|
21
|
+
##
|
22
|
+
# Initialize the ComplianceTollfreeInquiriesList
|
23
|
+
# @param [Version] version Version that contains the resource
|
24
|
+
# @return [ComplianceTollfreeInquiriesList] ComplianceTollfreeInquiriesList
|
25
|
+
def initialize(version)
|
26
|
+
super(version)
|
27
|
+
# Path Solution
|
28
|
+
@solution = { }
|
29
|
+
@uri = "/ComplianceInquiries/Tollfree/Initialize"
|
30
|
+
|
31
|
+
end
|
32
|
+
##
|
33
|
+
# Create the ComplianceTollfreeInquiriesInstance
|
34
|
+
# @param [String] tollfree_phone_number The Tollfree phone number to be verified
|
35
|
+
# @param [String] notification_email The notification email to be triggered when verification status is changed
|
36
|
+
# @return [ComplianceTollfreeInquiriesInstance] Created ComplianceTollfreeInquiriesInstance
|
37
|
+
def create(
|
38
|
+
tollfree_phone_number: nil,
|
39
|
+
notification_email: nil
|
40
|
+
)
|
41
|
+
|
42
|
+
data = Twilio::Values.of({
|
43
|
+
'TollfreePhoneNumber' => tollfree_phone_number,
|
44
|
+
'NotificationEmail' => notification_email,
|
45
|
+
})
|
46
|
+
|
47
|
+
payload = @version.create('POST', @uri, data: data)
|
48
|
+
ComplianceTollfreeInquiriesInstance.new(
|
49
|
+
@version,
|
50
|
+
payload,
|
51
|
+
)
|
52
|
+
end
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
# Provide a user friendly representation
|
58
|
+
def to_s
|
59
|
+
'#<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesList>'
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
class ComplianceTollfreeInquiriesPage < Page
|
64
|
+
##
|
65
|
+
# Initialize the ComplianceTollfreeInquiriesPage
|
66
|
+
# @param [Version] version Version that contains the resource
|
67
|
+
# @param [Response] response Response from the API
|
68
|
+
# @param [Hash] solution Path solution for the resource
|
69
|
+
# @return [ComplianceTollfreeInquiriesPage] ComplianceTollfreeInquiriesPage
|
70
|
+
def initialize(version, response, solution)
|
71
|
+
super(version, response)
|
72
|
+
|
73
|
+
# Path Solution
|
74
|
+
@solution = solution
|
75
|
+
end
|
76
|
+
|
77
|
+
##
|
78
|
+
# Build an instance of ComplianceTollfreeInquiriesInstance
|
79
|
+
# @param [Hash] payload Payload response from the API
|
80
|
+
# @return [ComplianceTollfreeInquiriesInstance] ComplianceTollfreeInquiriesInstance
|
81
|
+
def get_instance(payload)
|
82
|
+
ComplianceTollfreeInquiriesInstance.new(@version, payload)
|
83
|
+
end
|
84
|
+
|
85
|
+
##
|
86
|
+
# Provide a user friendly representation
|
87
|
+
def to_s
|
88
|
+
'<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesPage>'
|
89
|
+
end
|
90
|
+
end
|
91
|
+
class ComplianceTollfreeInquiriesInstance < InstanceResource
|
92
|
+
##
|
93
|
+
# Initialize the ComplianceTollfreeInquiriesInstance
|
94
|
+
# @param [Version] version Version that contains the resource
|
95
|
+
# @param [Hash] payload payload that contains response from Twilio
|
96
|
+
# @param [String] account_sid The SID of the
|
97
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this ComplianceTollfreeInquiries
|
98
|
+
# resource.
|
99
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
100
|
+
# @return [ComplianceTollfreeInquiriesInstance] ComplianceTollfreeInquiriesInstance
|
101
|
+
def initialize(version, payload )
|
102
|
+
super(version)
|
103
|
+
|
104
|
+
# Marshaled Properties
|
105
|
+
@properties = {
|
106
|
+
'inquiry_id' => payload['inquiry_id'],
|
107
|
+
'inquiry_session_token' => payload['inquiry_session_token'],
|
108
|
+
'registration_id' => payload['registration_id'],
|
109
|
+
'url' => payload['url'],
|
110
|
+
}
|
111
|
+
end
|
112
|
+
|
113
|
+
|
114
|
+
##
|
115
|
+
# @return [String] The unique ID used to start an embedded compliance registration session.
|
116
|
+
def inquiry_id
|
117
|
+
@properties['inquiry_id']
|
118
|
+
end
|
119
|
+
|
120
|
+
##
|
121
|
+
# @return [String] The session token used to start an embedded compliance registration session.
|
122
|
+
def inquiry_session_token
|
123
|
+
@properties['inquiry_session_token']
|
124
|
+
end
|
125
|
+
|
126
|
+
##
|
127
|
+
# @return [String] The TolfreeId matching the Tollfree Profile that should be resumed or resubmitted for editing.
|
128
|
+
def registration_id
|
129
|
+
@properties['registration_id']
|
130
|
+
end
|
131
|
+
|
132
|
+
##
|
133
|
+
# @return [String] The URL of this resource.
|
134
|
+
def url
|
135
|
+
@properties['url']
|
136
|
+
end
|
137
|
+
|
138
|
+
##
|
139
|
+
# Provide a user friendly representation
|
140
|
+
def to_s
|
141
|
+
"<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesInstance>"
|
142
|
+
end
|
143
|
+
|
144
|
+
##
|
145
|
+
# Provide a detailed, user friendly representation
|
146
|
+
def inspect
|
147
|
+
"<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesInstance>"
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
@@ -22,6 +22,7 @@ module Twilio
|
|
22
22
|
super
|
23
23
|
@version = 'v1'
|
24
24
|
@compliance_inquiries = nil
|
25
|
+
@compliance_tollfree_inquiries = nil
|
25
26
|
@customer_profiles = nil
|
26
27
|
@end_users = nil
|
27
28
|
@end_user_types = nil
|
@@ -46,6 +47,11 @@ module Twilio
|
|
46
47
|
end
|
47
48
|
end
|
48
49
|
##
|
50
|
+
# @return [Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesList]
|
51
|
+
def compliance_tollfree_inquiries
|
52
|
+
@compliance_tollfree_inquiries ||= ComplianceTollfreeInquiriesList.new self
|
53
|
+
end
|
54
|
+
##
|
49
55
|
# @param [String] sid The unique string that we created to identify the Customer-Profile resource.
|
50
56
|
# @return [Twilio::REST::Trusthub::V1::CustomerProfilesContext] if sid was passed.
|
51
57
|
# @return [Twilio::REST::Trusthub::V1::CustomerProfilesList]
|
@@ -49,6 +49,7 @@ module Twilio
|
|
49
49
|
# @param [String] template_custom_substitutions A stringified JSON object in which the keys are the template's special variables and the values are the variables substitutions.
|
50
50
|
# @param [String] device_ip Strongly encouraged if using the auto channel. The IP address of the client's device. If provided, it has to be a valid IPv4 or IPv6 address.
|
51
51
|
# @param [RiskCheck] risk_check
|
52
|
+
# @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.
|
52
53
|
# @return [VerificationInstance] Created VerificationInstance
|
53
54
|
def create(
|
54
55
|
to: nil,
|
@@ -66,7 +67,8 @@ module Twilio
|
|
66
67
|
template_sid: :unset,
|
67
68
|
template_custom_substitutions: :unset,
|
68
69
|
device_ip: :unset,
|
69
|
-
risk_check: :unset
|
70
|
+
risk_check: :unset,
|
71
|
+
tags: :unset
|
70
72
|
)
|
71
73
|
|
72
74
|
data = Twilio::Values.of({
|
@@ -86,6 +88,7 @@ module Twilio
|
|
86
88
|
'TemplateCustomSubstitutions' => template_custom_substitutions,
|
87
89
|
'DeviceIp' => device_ip,
|
88
90
|
'RiskCheck' => risk_check,
|
91
|
+
'Tags' => tags,
|
89
92
|
})
|
90
93
|
|
91
94
|
payload = @version.create('POST', @uri, data: data)
|
data/lib/twilio-ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.8.
|
4
|
+
version: 6.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twilio API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -456,6 +456,7 @@ files:
|
|
456
456
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb
|
457
457
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb
|
458
458
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb
|
459
|
+
- lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb
|
459
460
|
- lib/twilio-ruby/rest/flex_api/v1/web_channel.rb
|
460
461
|
- lib/twilio-ruby/rest/flex_api/v2.rb
|
461
462
|
- lib/twilio-ruby/rest/flex_api/v2/web_channels.rb
|
@@ -590,14 +591,6 @@ files:
|
|
590
591
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb
|
591
592
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb
|
592
593
|
- lib/twilio-ruby/rest/numbers_base.rb
|
593
|
-
- lib/twilio-ruby/rest/oauth.rb
|
594
|
-
- lib/twilio-ruby/rest/oauth/v1.rb
|
595
|
-
- lib/twilio-ruby/rest/oauth/v1/device_code.rb
|
596
|
-
- lib/twilio-ruby/rest/oauth/v1/oauth.rb
|
597
|
-
- lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb
|
598
|
-
- lib/twilio-ruby/rest/oauth/v1/token.rb
|
599
|
-
- lib/twilio-ruby/rest/oauth/v1/user_info.rb
|
600
|
-
- lib/twilio-ruby/rest/oauth_base.rb
|
601
594
|
- lib/twilio-ruby/rest/preview.rb
|
602
595
|
- lib/twilio-ruby/rest/preview/deployed_devices.rb
|
603
596
|
- lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb
|
@@ -782,6 +775,7 @@ files:
|
|
782
775
|
- lib/twilio-ruby/rest/trusthub.rb
|
783
776
|
- lib/twilio-ruby/rest/trusthub/v1.rb
|
784
777
|
- lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb
|
778
|
+
- lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb
|
785
779
|
- lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb
|
786
780
|
- lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb
|
787
781
|
- lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb
|
@@ -1,171 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
-
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
-
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
-
#
|
7
|
-
# Twilio - Oauth
|
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 Oauth < OauthBase
|
19
|
-
class V1 < Version
|
20
|
-
class DeviceCodeList < ListResource
|
21
|
-
##
|
22
|
-
# Initialize the DeviceCodeList
|
23
|
-
# @param [Version] version Version that contains the resource
|
24
|
-
# @return [DeviceCodeList] DeviceCodeList
|
25
|
-
def initialize(version)
|
26
|
-
super(version)
|
27
|
-
# Path Solution
|
28
|
-
@solution = { }
|
29
|
-
@uri = "/device/code"
|
30
|
-
|
31
|
-
end
|
32
|
-
##
|
33
|
-
# Create the DeviceCodeInstance
|
34
|
-
# @param [String] client_sid A 34 character string that uniquely identifies this OAuth App.
|
35
|
-
# @param [Array[String]] scopes An Array of scopes for authorization request
|
36
|
-
# @param [Array[String]] audiences An array of intended audiences for token requests
|
37
|
-
# @return [DeviceCodeInstance] Created DeviceCodeInstance
|
38
|
-
def create(
|
39
|
-
client_sid: nil,
|
40
|
-
scopes: nil,
|
41
|
-
audiences: :unset
|
42
|
-
)
|
43
|
-
|
44
|
-
data = Twilio::Values.of({
|
45
|
-
'ClientSid' => client_sid,
|
46
|
-
'Scopes' => Twilio.serialize_list(scopes) { |e| e },
|
47
|
-
'Audiences' => Twilio.serialize_list(audiences) { |e| e },
|
48
|
-
})
|
49
|
-
|
50
|
-
payload = @version.create('POST', @uri, data: data)
|
51
|
-
DeviceCodeInstance.new(
|
52
|
-
@version,
|
53
|
-
payload,
|
54
|
-
)
|
55
|
-
end
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
# Provide a user friendly representation
|
61
|
-
def to_s
|
62
|
-
'#<Twilio.Oauth.V1.DeviceCodeList>'
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
class DeviceCodePage < Page
|
67
|
-
##
|
68
|
-
# Initialize the DeviceCodePage
|
69
|
-
# @param [Version] version Version that contains the resource
|
70
|
-
# @param [Response] response Response from the API
|
71
|
-
# @param [Hash] solution Path solution for the resource
|
72
|
-
# @return [DeviceCodePage] DeviceCodePage
|
73
|
-
def initialize(version, response, solution)
|
74
|
-
super(version, response)
|
75
|
-
|
76
|
-
# Path Solution
|
77
|
-
@solution = solution
|
78
|
-
end
|
79
|
-
|
80
|
-
##
|
81
|
-
# Build an instance of DeviceCodeInstance
|
82
|
-
# @param [Hash] payload Payload response from the API
|
83
|
-
# @return [DeviceCodeInstance] DeviceCodeInstance
|
84
|
-
def get_instance(payload)
|
85
|
-
DeviceCodeInstance.new(@version, payload)
|
86
|
-
end
|
87
|
-
|
88
|
-
##
|
89
|
-
# Provide a user friendly representation
|
90
|
-
def to_s
|
91
|
-
'<Twilio.Oauth.V1.DeviceCodePage>'
|
92
|
-
end
|
93
|
-
end
|
94
|
-
class DeviceCodeInstance < InstanceResource
|
95
|
-
##
|
96
|
-
# Initialize the DeviceCodeInstance
|
97
|
-
# @param [Version] version Version that contains the resource
|
98
|
-
# @param [Hash] payload payload that contains response from Twilio
|
99
|
-
# @param [String] account_sid The SID of the
|
100
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this DeviceCode
|
101
|
-
# resource.
|
102
|
-
# @param [String] sid The SID of the Call resource to fetch.
|
103
|
-
# @return [DeviceCodeInstance] DeviceCodeInstance
|
104
|
-
def initialize(version, payload )
|
105
|
-
super(version)
|
106
|
-
|
107
|
-
# Marshaled Properties
|
108
|
-
@properties = {
|
109
|
-
'device_code' => payload['device_code'],
|
110
|
-
'user_code' => payload['user_code'],
|
111
|
-
'verification_uri' => payload['verification_uri'],
|
112
|
-
'verification_uri_complete' => payload['verification_uri_complete'],
|
113
|
-
'expires_in' => payload['expires_in'],
|
114
|
-
'interval' => payload['interval'] == nil ? payload['interval'] : payload['interval'].to_i,
|
115
|
-
}
|
116
|
-
end
|
117
|
-
|
118
|
-
|
119
|
-
##
|
120
|
-
# @return [String] The device verification code.
|
121
|
-
def device_code
|
122
|
-
@properties['device_code']
|
123
|
-
end
|
124
|
-
|
125
|
-
##
|
126
|
-
# @return [String] The verification code which end user uses to verify authorization request.
|
127
|
-
def user_code
|
128
|
-
@properties['user_code']
|
129
|
-
end
|
130
|
-
|
131
|
-
##
|
132
|
-
# @return [String] The URI that the end user visits to verify authorization request.
|
133
|
-
def verification_uri
|
134
|
-
@properties['verification_uri']
|
135
|
-
end
|
136
|
-
|
137
|
-
##
|
138
|
-
# @return [String] The URI with user_code that the end-user alternatively visits to verify authorization request.
|
139
|
-
def verification_uri_complete
|
140
|
-
@properties['verification_uri_complete']
|
141
|
-
end
|
142
|
-
|
143
|
-
##
|
144
|
-
# @return [String] The expiration time of the device_code and user_code in seconds.
|
145
|
-
def expires_in
|
146
|
-
@properties['expires_in']
|
147
|
-
end
|
148
|
-
|
149
|
-
##
|
150
|
-
# @return [String] The minimum amount of time in seconds that the client should wait between polling requests to the token endpoint.
|
151
|
-
def interval
|
152
|
-
@properties['interval']
|
153
|
-
end
|
154
|
-
|
155
|
-
##
|
156
|
-
# Provide a user friendly representation
|
157
|
-
def to_s
|
158
|
-
"<Twilio.Oauth.V1.DeviceCodeInstance>"
|
159
|
-
end
|
160
|
-
|
161
|
-
##
|
162
|
-
# Provide a detailed, user friendly representation
|
163
|
-
def inspect
|
164
|
-
"<Twilio.Oauth.V1.DeviceCodeInstance>"
|
165
|
-
end
|
166
|
-
end
|
167
|
-
|
168
|
-
end
|
169
|
-
end
|
170
|
-
end
|
171
|
-
end
|