twilio-ruby 5.71.0 → 5.72.1
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 +29 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +34 -1
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +559 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +16 -0
- data/lib/twilio-ruby/rest/messaging.rb +8 -0
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +215 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +18 -0
- data/lib/twilio-ruby/rest/verify.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_anonymize.rb +240 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +16 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +19 -5
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +5 -2
@@ -0,0 +1,215 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
module Twilio
|
10
|
+
module REST
|
11
|
+
class Verify < Domain
|
12
|
+
class V2 < Version
|
13
|
+
##
|
14
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
15
|
+
class SafelistList < ListResource
|
16
|
+
##
|
17
|
+
# Initialize the SafelistList
|
18
|
+
# @param [Version] version Version that contains the resource
|
19
|
+
# @return [SafelistList] SafelistList
|
20
|
+
def initialize(version)
|
21
|
+
super(version)
|
22
|
+
|
23
|
+
# Path Solution
|
24
|
+
@solution = {}
|
25
|
+
@uri = "/SafeList/Numbers"
|
26
|
+
end
|
27
|
+
|
28
|
+
##
|
29
|
+
# Create the SafelistInstance
|
30
|
+
# @param [String] phone_number The phone number to be added in SafeList. Phone
|
31
|
+
# numbers must be in {E.164
|
32
|
+
# format}[https://www.twilio.com/docs/glossary/what-e164].
|
33
|
+
# @return [SafelistInstance] Created SafelistInstance
|
34
|
+
def create(phone_number: nil)
|
35
|
+
data = Twilio::Values.of({'PhoneNumber' => phone_number, })
|
36
|
+
|
37
|
+
payload = @version.create('POST', @uri, data: data)
|
38
|
+
|
39
|
+
SafelistInstance.new(@version, payload, )
|
40
|
+
end
|
41
|
+
|
42
|
+
##
|
43
|
+
# Provide a user friendly representation
|
44
|
+
def to_s
|
45
|
+
'#<Twilio.Verify.V2.SafelistList>'
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
##
|
50
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
51
|
+
class SafelistPage < Page
|
52
|
+
##
|
53
|
+
# Initialize the SafelistPage
|
54
|
+
# @param [Version] version Version that contains the resource
|
55
|
+
# @param [Response] response Response from the API
|
56
|
+
# @param [Hash] solution Path solution for the resource
|
57
|
+
# @return [SafelistPage] SafelistPage
|
58
|
+
def initialize(version, response, solution)
|
59
|
+
super(version, response)
|
60
|
+
|
61
|
+
# Path Solution
|
62
|
+
@solution = solution
|
63
|
+
end
|
64
|
+
|
65
|
+
##
|
66
|
+
# Build an instance of SafelistInstance
|
67
|
+
# @param [Hash] payload Payload response from the API
|
68
|
+
# @return [SafelistInstance] SafelistInstance
|
69
|
+
def get_instance(payload)
|
70
|
+
SafelistInstance.new(@version, payload, )
|
71
|
+
end
|
72
|
+
|
73
|
+
##
|
74
|
+
# Provide a user friendly representation
|
75
|
+
def to_s
|
76
|
+
'<Twilio.Verify.V2.SafelistPage>'
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
##
|
81
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
82
|
+
class SafelistContext < InstanceContext
|
83
|
+
##
|
84
|
+
# Initialize the SafelistContext
|
85
|
+
# @param [Version] version Version that contains the resource
|
86
|
+
# @param [String] phone_number The phone number to be fetched from SafeList. Phone
|
87
|
+
# numbers must be in {E.164
|
88
|
+
# format}[https://www.twilio.com/docs/glossary/what-e164].
|
89
|
+
# @return [SafelistContext] SafelistContext
|
90
|
+
def initialize(version, phone_number)
|
91
|
+
super(version)
|
92
|
+
|
93
|
+
# Path Solution
|
94
|
+
@solution = {phone_number: phone_number, }
|
95
|
+
@uri = "/SafeList/Numbers/#{@solution[:phone_number]}"
|
96
|
+
end
|
97
|
+
|
98
|
+
##
|
99
|
+
# Fetch the SafelistInstance
|
100
|
+
# @return [SafelistInstance] Fetched SafelistInstance
|
101
|
+
def fetch
|
102
|
+
payload = @version.fetch('GET', @uri)
|
103
|
+
|
104
|
+
SafelistInstance.new(@version, payload, phone_number: @solution[:phone_number], )
|
105
|
+
end
|
106
|
+
|
107
|
+
##
|
108
|
+
# Delete the SafelistInstance
|
109
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
110
|
+
def delete
|
111
|
+
@version.delete('DELETE', @uri)
|
112
|
+
end
|
113
|
+
|
114
|
+
##
|
115
|
+
# Provide a user friendly representation
|
116
|
+
def to_s
|
117
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
118
|
+
"#<Twilio.Verify.V2.SafelistContext #{context}>"
|
119
|
+
end
|
120
|
+
|
121
|
+
##
|
122
|
+
# Provide a detailed, user friendly representation
|
123
|
+
def inspect
|
124
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
125
|
+
"#<Twilio.Verify.V2.SafelistContext #{context}>"
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
##
|
130
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
131
|
+
class SafelistInstance < InstanceResource
|
132
|
+
##
|
133
|
+
# Initialize the SafelistInstance
|
134
|
+
# @param [Version] version Version that contains the resource
|
135
|
+
# @param [Hash] payload payload that contains response from Twilio
|
136
|
+
# @param [String] phone_number The phone number to be fetched from SafeList. Phone
|
137
|
+
# numbers must be in {E.164
|
138
|
+
# format}[https://www.twilio.com/docs/glossary/what-e164].
|
139
|
+
# @return [SafelistInstance] SafelistInstance
|
140
|
+
def initialize(version, payload, phone_number: nil)
|
141
|
+
super(version)
|
142
|
+
|
143
|
+
# Marshaled Properties
|
144
|
+
@properties = {
|
145
|
+
'sid' => payload['sid'],
|
146
|
+
'phone_number' => payload['phone_number'],
|
147
|
+
'url' => payload['url'],
|
148
|
+
}
|
149
|
+
|
150
|
+
# Context
|
151
|
+
@instance_context = nil
|
152
|
+
@params = {'phone_number' => phone_number || @properties['phone_number'], }
|
153
|
+
end
|
154
|
+
|
155
|
+
##
|
156
|
+
# Generate an instance context for the instance, the context is capable of
|
157
|
+
# performing various actions. All instance actions are proxied to the context
|
158
|
+
# @return [SafelistContext] SafelistContext for this SafelistInstance
|
159
|
+
def context
|
160
|
+
unless @instance_context
|
161
|
+
@instance_context = SafelistContext.new(@version, @params['phone_number'], )
|
162
|
+
end
|
163
|
+
@instance_context
|
164
|
+
end
|
165
|
+
|
166
|
+
##
|
167
|
+
# @return [String] The unique string that identifies the resource.
|
168
|
+
def sid
|
169
|
+
@properties['sid']
|
170
|
+
end
|
171
|
+
|
172
|
+
##
|
173
|
+
# @return [String] The phone number in SafeList.
|
174
|
+
def phone_number
|
175
|
+
@properties['phone_number']
|
176
|
+
end
|
177
|
+
|
178
|
+
##
|
179
|
+
# @return [String] The absolute URL of the SafeList resource.
|
180
|
+
def url
|
181
|
+
@properties['url']
|
182
|
+
end
|
183
|
+
|
184
|
+
##
|
185
|
+
# Fetch the SafelistInstance
|
186
|
+
# @return [SafelistInstance] Fetched SafelistInstance
|
187
|
+
def fetch
|
188
|
+
context.fetch
|
189
|
+
end
|
190
|
+
|
191
|
+
##
|
192
|
+
# Delete the SafelistInstance
|
193
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
194
|
+
def delete
|
195
|
+
context.delete
|
196
|
+
end
|
197
|
+
|
198
|
+
##
|
199
|
+
# Provide a user friendly representation
|
200
|
+
def to_s
|
201
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
202
|
+
"<Twilio.Verify.V2.SafelistInstance #{values}>"
|
203
|
+
end
|
204
|
+
|
205
|
+
##
|
206
|
+
# Provide a detailed, user friendly representation
|
207
|
+
def inspect
|
208
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
209
|
+
"<Twilio.Verify.V2.SafelistInstance #{values}>"
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
@@ -16,6 +16,7 @@ module Twilio
|
|
16
16
|
super
|
17
17
|
@version = 'v2'
|
18
18
|
@forms = nil
|
19
|
+
@safelist = nil
|
19
20
|
@services = nil
|
20
21
|
@verification_attempts = nil
|
21
22
|
@verification_attempts_summary = nil
|
@@ -38,6 +39,23 @@ module Twilio
|
|
38
39
|
end
|
39
40
|
end
|
40
41
|
|
42
|
+
##
|
43
|
+
# @param [String] phone_number The phone number to be fetched from SafeList. Phone
|
44
|
+
# numbers must be in {E.164
|
45
|
+
# format}[https://www.twilio.com/docs/glossary/what-e164].
|
46
|
+
# @return [Twilio::REST::Verify::V2::SafelistContext] if phone_number was passed.
|
47
|
+
# @return [Twilio::REST::Verify::V2::SafelistList]
|
48
|
+
def safelist(phone_number=:unset)
|
49
|
+
if phone_number.nil?
|
50
|
+
raise ArgumentError, 'phone_number cannot be nil'
|
51
|
+
end
|
52
|
+
if phone_number == :unset
|
53
|
+
@safelist ||= SafelistList.new self
|
54
|
+
else
|
55
|
+
SafelistContext.new(self, phone_number)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
41
59
|
##
|
42
60
|
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
43
61
|
# Verification Service resource to fetch.
|
@@ -37,6 +37,14 @@ module Twilio
|
|
37
37
|
self.v2.forms(form_type)
|
38
38
|
end
|
39
39
|
|
40
|
+
##
|
41
|
+
# @param [String] phone_number The phone number in SafeList.
|
42
|
+
# @return [Twilio::REST::Verify::V2::SafelistInstance] if phone_number was passed.
|
43
|
+
# @return [Twilio::REST::Verify::V2::SafelistList]
|
44
|
+
def safelist(phone_number=:unset)
|
45
|
+
self.v2.safelist(phone_number)
|
46
|
+
end
|
47
|
+
|
40
48
|
##
|
41
49
|
# @param [String] sid The unique string that we created to identify the Service
|
42
50
|
# resource.
|
@@ -0,0 +1,240 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
module Twilio
|
10
|
+
module REST
|
11
|
+
class Video < Domain
|
12
|
+
class V1 < Version
|
13
|
+
class RoomContext < InstanceContext
|
14
|
+
class ParticipantContext < InstanceContext
|
15
|
+
class AnonymizeList < ListResource
|
16
|
+
##
|
17
|
+
# Initialize the AnonymizeList
|
18
|
+
# @param [Version] version Version that contains the resource
|
19
|
+
# @param [String] room_sid The SID of the participant's room.
|
20
|
+
# @param [String] sid The unique string that we created to identify the
|
21
|
+
# RoomParticipant resource.
|
22
|
+
# @return [AnonymizeList] AnonymizeList
|
23
|
+
def initialize(version, room_sid: nil, sid: nil)
|
24
|
+
super(version)
|
25
|
+
|
26
|
+
# Path Solution
|
27
|
+
@solution = {room_sid: room_sid, sid: sid}
|
28
|
+
end
|
29
|
+
|
30
|
+
##
|
31
|
+
# Provide a user friendly representation
|
32
|
+
def to_s
|
33
|
+
'#<Twilio.Video.V1.AnonymizeList>'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
class AnonymizePage < Page
|
38
|
+
##
|
39
|
+
# Initialize the AnonymizePage
|
40
|
+
# @param [Version] version Version that contains the resource
|
41
|
+
# @param [Response] response Response from the API
|
42
|
+
# @param [Hash] solution Path solution for the resource
|
43
|
+
# @return [AnonymizePage] AnonymizePage
|
44
|
+
def initialize(version, response, solution)
|
45
|
+
super(version, response)
|
46
|
+
|
47
|
+
# Path Solution
|
48
|
+
@solution = solution
|
49
|
+
end
|
50
|
+
|
51
|
+
##
|
52
|
+
# Build an instance of AnonymizeInstance
|
53
|
+
# @param [Hash] payload Payload response from the API
|
54
|
+
# @return [AnonymizeInstance] AnonymizeInstance
|
55
|
+
def get_instance(payload)
|
56
|
+
AnonymizeInstance.new(@version, payload, room_sid: @solution[:room_sid], sid: @solution[:sid], )
|
57
|
+
end
|
58
|
+
|
59
|
+
##
|
60
|
+
# Provide a user friendly representation
|
61
|
+
def to_s
|
62
|
+
'<Twilio.Video.V1.AnonymizePage>'
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
class AnonymizeContext < InstanceContext
|
67
|
+
##
|
68
|
+
# Initialize the AnonymizeContext
|
69
|
+
# @param [Version] version Version that contains the resource
|
70
|
+
# @param [String] room_sid The SID of the room with the participant to update.
|
71
|
+
# @param [String] sid The SID of the RoomParticipant resource to update.
|
72
|
+
# @return [AnonymizeContext] AnonymizeContext
|
73
|
+
def initialize(version, room_sid, sid)
|
74
|
+
super(version)
|
75
|
+
|
76
|
+
# Path Solution
|
77
|
+
@solution = {room_sid: room_sid, sid: sid, }
|
78
|
+
@uri = "/Rooms/#{@solution[:room_sid]}/Participants/#{@solution[:sid]}/Anonymize"
|
79
|
+
end
|
80
|
+
|
81
|
+
##
|
82
|
+
# Update the AnonymizeInstance
|
83
|
+
# @return [AnonymizeInstance] Updated AnonymizeInstance
|
84
|
+
def update
|
85
|
+
payload = @version.update('POST', @uri)
|
86
|
+
|
87
|
+
AnonymizeInstance.new(@version, payload, room_sid: @solution[:room_sid], sid: @solution[:sid], )
|
88
|
+
end
|
89
|
+
|
90
|
+
##
|
91
|
+
# Provide a user friendly representation
|
92
|
+
def to_s
|
93
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
94
|
+
"#<Twilio.Video.V1.AnonymizeContext #{context}>"
|
95
|
+
end
|
96
|
+
|
97
|
+
##
|
98
|
+
# Provide a detailed, user friendly representation
|
99
|
+
def inspect
|
100
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
101
|
+
"#<Twilio.Video.V1.AnonymizeContext #{context}>"
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
class AnonymizeInstance < InstanceResource
|
106
|
+
##
|
107
|
+
# Initialize the AnonymizeInstance
|
108
|
+
# @param [Version] version Version that contains the resource
|
109
|
+
# @param [Hash] payload payload that contains response from Twilio
|
110
|
+
# @param [String] room_sid The SID of the participant's room.
|
111
|
+
# @param [String] sid The unique string that we created to identify the
|
112
|
+
# RoomParticipant resource.
|
113
|
+
# @return [AnonymizeInstance] AnonymizeInstance
|
114
|
+
def initialize(version, payload, room_sid: nil, sid: nil)
|
115
|
+
super(version)
|
116
|
+
|
117
|
+
# Marshaled Properties
|
118
|
+
@properties = {
|
119
|
+
'sid' => payload['sid'],
|
120
|
+
'room_sid' => payload['room_sid'],
|
121
|
+
'account_sid' => payload['account_sid'],
|
122
|
+
'status' => payload['status'],
|
123
|
+
'identity' => payload['identity'],
|
124
|
+
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
125
|
+
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
126
|
+
'start_time' => Twilio.deserialize_iso8601_datetime(payload['start_time']),
|
127
|
+
'end_time' => Twilio.deserialize_iso8601_datetime(payload['end_time']),
|
128
|
+
'duration' => payload['duration'] == nil ? payload['duration'] : payload['duration'].to_i,
|
129
|
+
'url' => payload['url'],
|
130
|
+
}
|
131
|
+
|
132
|
+
# Context
|
133
|
+
@instance_context = nil
|
134
|
+
@params = {'room_sid' => room_sid, 'sid' => sid, }
|
135
|
+
end
|
136
|
+
|
137
|
+
##
|
138
|
+
# Generate an instance context for the instance, the context is capable of
|
139
|
+
# performing various actions. All instance actions are proxied to the context
|
140
|
+
# @return [AnonymizeContext] AnonymizeContext for this AnonymizeInstance
|
141
|
+
def context
|
142
|
+
unless @instance_context
|
143
|
+
@instance_context = AnonymizeContext.new(@version, @params['room_sid'], @params['sid'], )
|
144
|
+
end
|
145
|
+
@instance_context
|
146
|
+
end
|
147
|
+
|
148
|
+
##
|
149
|
+
# @return [String] The unique string that identifies the resource
|
150
|
+
def sid
|
151
|
+
@properties['sid']
|
152
|
+
end
|
153
|
+
|
154
|
+
##
|
155
|
+
# @return [String] The SID of the participant's room
|
156
|
+
def room_sid
|
157
|
+
@properties['room_sid']
|
158
|
+
end
|
159
|
+
|
160
|
+
##
|
161
|
+
# @return [String] The SID of the Account that created the resource
|
162
|
+
def account_sid
|
163
|
+
@properties['account_sid']
|
164
|
+
end
|
165
|
+
|
166
|
+
##
|
167
|
+
# @return [anonymize.Status] The status of the Participant
|
168
|
+
def status
|
169
|
+
@properties['status']
|
170
|
+
end
|
171
|
+
|
172
|
+
##
|
173
|
+
# @return [String] The SID of the participant
|
174
|
+
def identity
|
175
|
+
@properties['identity']
|
176
|
+
end
|
177
|
+
|
178
|
+
##
|
179
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
180
|
+
def date_created
|
181
|
+
@properties['date_created']
|
182
|
+
end
|
183
|
+
|
184
|
+
##
|
185
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
186
|
+
def date_updated
|
187
|
+
@properties['date_updated']
|
188
|
+
end
|
189
|
+
|
190
|
+
##
|
191
|
+
# @return [Time] The time of participant connected to the room in ISO 8601 format
|
192
|
+
def start_time
|
193
|
+
@properties['start_time']
|
194
|
+
end
|
195
|
+
|
196
|
+
##
|
197
|
+
# @return [Time] The time when the participant disconnected from the room in ISO 8601 format
|
198
|
+
def end_time
|
199
|
+
@properties['end_time']
|
200
|
+
end
|
201
|
+
|
202
|
+
##
|
203
|
+
# @return [String] Duration of time in seconds the participant was connected
|
204
|
+
def duration
|
205
|
+
@properties['duration']
|
206
|
+
end
|
207
|
+
|
208
|
+
##
|
209
|
+
# @return [String] The absolute URL of the resource
|
210
|
+
def url
|
211
|
+
@properties['url']
|
212
|
+
end
|
213
|
+
|
214
|
+
##
|
215
|
+
# Update the AnonymizeInstance
|
216
|
+
# @return [AnonymizeInstance] Updated AnonymizeInstance
|
217
|
+
def update
|
218
|
+
context.update
|
219
|
+
end
|
220
|
+
|
221
|
+
##
|
222
|
+
# Provide a user friendly representation
|
223
|
+
def to_s
|
224
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
225
|
+
"<Twilio.Video.V1.AnonymizeInstance #{values}>"
|
226
|
+
end
|
227
|
+
|
228
|
+
##
|
229
|
+
# Provide a detailed, user friendly representation
|
230
|
+
def inspect
|
231
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
232
|
+
"<Twilio.Video.V1.AnonymizeInstance #{values}>"
|
233
|
+
end
|
234
|
+
end
|
235
|
+
end
|
236
|
+
end
|
237
|
+
end
|
238
|
+
end
|
239
|
+
end
|
240
|
+
end
|
@@ -207,6 +207,7 @@ module Twilio
|
|
207
207
|
@published_tracks = nil
|
208
208
|
@subscribed_tracks = nil
|
209
209
|
@subscribe_rules = nil
|
210
|
+
@anonymize = nil
|
210
211
|
end
|
211
212
|
|
212
213
|
##
|
@@ -293,6 +294,14 @@ module Twilio
|
|
293
294
|
@subscribe_rules
|
294
295
|
end
|
295
296
|
|
297
|
+
##
|
298
|
+
# Access the anonymize
|
299
|
+
# @return [AnonymizeList]
|
300
|
+
# @return [AnonymizeContext]
|
301
|
+
def anonymize
|
302
|
+
AnonymizeContext.new(@version, @solution[:room_sid], @solution[:sid], )
|
303
|
+
end
|
304
|
+
|
296
305
|
##
|
297
306
|
# Provide a user friendly representation
|
298
307
|
def to_s
|
@@ -462,6 +471,13 @@ module Twilio
|
|
462
471
|
context.subscribe_rules
|
463
472
|
end
|
464
473
|
|
474
|
+
##
|
475
|
+
# Access the anonymize
|
476
|
+
# @return [anonymize] anonymize
|
477
|
+
def anonymize
|
478
|
+
context.anonymize
|
479
|
+
end
|
480
|
+
|
465
481
|
##
|
466
482
|
# Provide a user friendly representation
|
467
483
|
def to_s
|
@@ -1571,9 +1571,16 @@ module Twilio
|
|
1571
1571
|
# status_callback:: Status callback URL
|
1572
1572
|
# status_callback_method:: Status callback URL method
|
1573
1573
|
# byoc:: BYOC trunk SID (Beta)
|
1574
|
+
# machine_detection:: Enable machine detection or end of greeting detection
|
1575
|
+
# amd_status_callback_method:: HTTP Method to use with amd_status_callback
|
1576
|
+
# amd_status_callback:: The URL we should call to send amd status information to your application
|
1577
|
+
# machine_detection_timeout:: Number of seconds to wait for machine detection
|
1578
|
+
# machine_detection_speech_threshold:: Number of milliseconds for measuring stick for the length of the speech activity
|
1579
|
+
# machine_detection_speech_end_threshold:: Number of milliseconds of silence after speech activity
|
1580
|
+
# machine_detection_silence_timeout:: Number of milliseconds of initial silence
|
1574
1581
|
# keyword_args:: additional attributes
|
1575
|
-
def number(phone_number, send_digits: nil, url: nil, method: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, byoc: nil, **keyword_args)
|
1576
|
-
append(Number.new(phone_number, send_digits: send_digits, url: url, method: method, status_callback_event: status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, byoc: byoc, **keyword_args))
|
1582
|
+
def number(phone_number, send_digits: nil, url: nil, method: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, byoc: nil, machine_detection: nil, amd_status_callback_method: nil, amd_status_callback: nil, machine_detection_timeout: nil, machine_detection_speech_threshold: nil, machine_detection_speech_end_threshold: nil, machine_detection_silence_timeout: nil, **keyword_args)
|
1583
|
+
append(Number.new(phone_number, send_digits: send_digits, url: url, method: method, status_callback_event: status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, byoc: byoc, machine_detection: machine_detection, amd_status_callback_method: amd_status_callback_method, amd_status_callback: amd_status_callback, machine_detection_timeout: machine_detection_timeout, machine_detection_speech_threshold: machine_detection_speech_threshold, machine_detection_speech_end_threshold: machine_detection_speech_end_threshold, machine_detection_silence_timeout: machine_detection_silence_timeout, **keyword_args))
|
1577
1584
|
end
|
1578
1585
|
|
1579
1586
|
##
|
@@ -1606,9 +1613,16 @@ module Twilio
|
|
1606
1613
|
# status_callback_event:: Status callback events
|
1607
1614
|
# status_callback:: Status callback URL
|
1608
1615
|
# status_callback_method:: Status callback URL method
|
1609
|
-
#
|
1610
|
-
|
1611
|
-
|
1616
|
+
# machine_detection:: Enable machine detection or end of greeting detection
|
1617
|
+
# amd_status_callback_method:: HTTP Method to use with amd_status_callback
|
1618
|
+
# amd_status_callback:: The URL we should call to send amd status information to your application
|
1619
|
+
# machine_detection_timeout:: Number of seconds to wait for machine detection
|
1620
|
+
# machine_detection_speech_threshold:: Number of milliseconds for measuring stick for the length of the speech activity
|
1621
|
+
# machine_detection_speech_end_threshold:: Number of milliseconds of silence after speech activity
|
1622
|
+
# machine_detection_silence_timeout:: Number of milliseconds of initial silence
|
1623
|
+
# keyword_args:: additional attributes
|
1624
|
+
def sip(sip_url, username: nil, password: nil, url: nil, method: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, machine_detection: nil, amd_status_callback_method: nil, amd_status_callback: nil, machine_detection_timeout: nil, machine_detection_speech_threshold: nil, machine_detection_speech_end_threshold: nil, machine_detection_silence_timeout: nil, **keyword_args)
|
1625
|
+
append(Sip.new(sip_url, username: username, password: password, url: url, method: method, status_callback_event: status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, machine_detection: machine_detection, amd_status_callback_method: amd_status_callback_method, amd_status_callback: amd_status_callback, machine_detection_timeout: machine_detection_timeout, machine_detection_speech_threshold: machine_detection_speech_threshold, machine_detection_speech_end_threshold: machine_detection_speech_end_threshold, machine_detection_silence_timeout: machine_detection_silence_timeout, **keyword_args))
|
1612
1626
|
end
|
1613
1627
|
end
|
1614
1628
|
|
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: 5.
|
4
|
+
version: 5.72.1
|
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: 2022-
|
11
|
+
date: 2022-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -491,6 +491,7 @@ files:
|
|
491
491
|
- lib/twilio-ruby/rest/messaging/v1/service/short_code.rb
|
492
492
|
- lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb
|
493
493
|
- lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb
|
494
|
+
- lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb
|
494
495
|
- lib/twilio-ruby/rest/messaging/v1/usecase.rb
|
495
496
|
- lib/twilio-ruby/rest/microvisor.rb
|
496
497
|
- lib/twilio-ruby/rest/microvisor/v1.rb
|
@@ -713,6 +714,7 @@ files:
|
|
713
714
|
- lib/twilio-ruby/rest/verify.rb
|
714
715
|
- lib/twilio-ruby/rest/verify/v2.rb
|
715
716
|
- lib/twilio-ruby/rest/verify/v2/form.rb
|
717
|
+
- lib/twilio-ruby/rest/verify/v2/safelist.rb
|
716
718
|
- lib/twilio-ruby/rest/verify/v2/service.rb
|
717
719
|
- lib/twilio-ruby/rest/verify/v2/service/access_token.rb
|
718
720
|
- lib/twilio-ruby/rest/verify/v2/service/entity.rb
|
@@ -739,6 +741,7 @@ files:
|
|
739
741
|
- lib/twilio-ruby/rest/video/v1/room.rb
|
740
742
|
- lib/twilio-ruby/rest/video/v1/room/recording.rb
|
741
743
|
- lib/twilio-ruby/rest/video/v1/room/room_participant.rb
|
744
|
+
- lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_anonymize.rb
|
742
745
|
- lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb
|
743
746
|
- lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb
|
744
747
|
- lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb
|