twilio-ruby 5.63.1 → 5.64.0
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/.github/workflows/test-and-deploy.yml +2 -2
- data/CHANGES.md +31 -0
- data/README.md +3 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +667 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +26 -0
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +435 -0
- data/lib/twilio-ruby/rest/conversations/v1.rb +17 -0
- data/lib/twilio-ruby/rest/conversations.rb +9 -0
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +0 -77
- data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +56 -65
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +82 -54
- data/lib/twilio-ruby/rest/insights/v1.rb +1 -1
- data/lib/twilio-ruby/rest/insights.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +75 -18
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +71 -30
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/template.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +89 -21
- data/lib/twilio-ruby/rest/verify.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/room.rb +7 -4
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +4 -2
@@ -64,15 +64,28 @@ module Twilio
|
|
64
64
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
65
65
|
# memory before returning.
|
66
66
|
# @param [bundle.Status] status The verification status of the Bundle resource.
|
67
|
+
# Please refer to {Bundle
|
68
|
+
# Statuses}[https://www.twilio.com/docs/phone-numbers/regulatory/api/bundles#bundle-statuses]
|
69
|
+
# for more details.
|
67
70
|
# @param [String] friendly_name The string that you assigned to describe the
|
68
|
-
# resource.
|
69
|
-
# @param [String] regulation_sid The unique string of a
|
70
|
-
#
|
71
|
-
#
|
71
|
+
# resource. The column can contain 255 variable characters.
|
72
|
+
# @param [String] regulation_sid The unique string of a {Regulation
|
73
|
+
# resource}[https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations]
|
74
|
+
# that is associated to the Bundle resource.
|
75
|
+
# @param [String] iso_country The 2-digit {ISO country
|
72
76
|
# code}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2] of the Bundle's phone
|
73
77
|
# number country ownership request.
|
74
78
|
# @param [String] number_type The type of phone number of the Bundle's ownership
|
75
|
-
# request. Can be `local`, `mobile`, `national`, or `
|
79
|
+
# request. Can be `local`, `mobile`, `national`, or `tollfree`.
|
80
|
+
# @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid
|
81
|
+
# Bundle until a specified expiration date.
|
82
|
+
# @param [bundle.SortBy] sort_by Can be `ValidUntilDate` or `DateUpdated`.
|
83
|
+
# Defaults to `DateCreated`
|
84
|
+
# @param [bundle.SortDirection] sort_direction Default is `DESC`. Can be `ASC` or
|
85
|
+
# `DESC`.
|
86
|
+
# @param [Time] valid_until_date_before Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well.
|
87
|
+
# @param [Time] valid_until_date Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well.
|
88
|
+
# @param [Time] valid_until_date_after Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well.
|
76
89
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
77
90
|
# guarantees to never return more than limit. Default is no limit
|
78
91
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -80,13 +93,19 @@ module Twilio
|
|
80
93
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
81
94
|
# efficient page size, i.e. min(limit, 1000)
|
82
95
|
# @return [Array] Array of up to limit results
|
83
|
-
def list(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, limit: nil, page_size: nil)
|
96
|
+
def list(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date_before: :unset, valid_until_date: :unset, valid_until_date_after: :unset, limit: nil, page_size: nil)
|
84
97
|
self.stream(
|
85
98
|
status: status,
|
86
99
|
friendly_name: friendly_name,
|
87
100
|
regulation_sid: regulation_sid,
|
88
101
|
iso_country: iso_country,
|
89
102
|
number_type: number_type,
|
103
|
+
has_valid_until_date: has_valid_until_date,
|
104
|
+
sort_by: sort_by,
|
105
|
+
sort_direction: sort_direction,
|
106
|
+
valid_until_date_before: valid_until_date_before,
|
107
|
+
valid_until_date: valid_until_date,
|
108
|
+
valid_until_date_after: valid_until_date_after,
|
90
109
|
limit: limit,
|
91
110
|
page_size: page_size
|
92
111
|
).entries
|
@@ -97,15 +116,28 @@ module Twilio
|
|
97
116
|
# This operation lazily loads records as efficiently as possible until the limit
|
98
117
|
# is reached.
|
99
118
|
# @param [bundle.Status] status The verification status of the Bundle resource.
|
119
|
+
# Please refer to {Bundle
|
120
|
+
# Statuses}[https://www.twilio.com/docs/phone-numbers/regulatory/api/bundles#bundle-statuses]
|
121
|
+
# for more details.
|
100
122
|
# @param [String] friendly_name The string that you assigned to describe the
|
101
|
-
# resource.
|
102
|
-
# @param [String] regulation_sid The unique string of a
|
103
|
-
#
|
104
|
-
#
|
123
|
+
# resource. The column can contain 255 variable characters.
|
124
|
+
# @param [String] regulation_sid The unique string of a {Regulation
|
125
|
+
# resource}[https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations]
|
126
|
+
# that is associated to the Bundle resource.
|
127
|
+
# @param [String] iso_country The 2-digit {ISO country
|
105
128
|
# code}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2] of the Bundle's phone
|
106
129
|
# number country ownership request.
|
107
130
|
# @param [String] number_type The type of phone number of the Bundle's ownership
|
108
|
-
# request. Can be `local`, `mobile`, `national`, or `
|
131
|
+
# request. Can be `local`, `mobile`, `national`, or `tollfree`.
|
132
|
+
# @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid
|
133
|
+
# Bundle until a specified expiration date.
|
134
|
+
# @param [bundle.SortBy] sort_by Can be `ValidUntilDate` or `DateUpdated`.
|
135
|
+
# Defaults to `DateCreated`
|
136
|
+
# @param [bundle.SortDirection] sort_direction Default is `DESC`. Can be `ASC` or
|
137
|
+
# `DESC`.
|
138
|
+
# @param [Time] valid_until_date_before Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well.
|
139
|
+
# @param [Time] valid_until_date Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well.
|
140
|
+
# @param [Time] valid_until_date_after Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well.
|
109
141
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
110
142
|
# guarantees to never return more than limit. Default is no limit.
|
111
143
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -113,7 +145,7 @@ module Twilio
|
|
113
145
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
114
146
|
# efficient page size, i.e. min(limit, 1000)
|
115
147
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
116
|
-
def stream(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, limit: nil, page_size: nil)
|
148
|
+
def stream(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date_before: :unset, valid_until_date: :unset, valid_until_date_after: :unset, limit: nil, page_size: nil)
|
117
149
|
limits = @version.read_limits(limit, page_size)
|
118
150
|
|
119
151
|
page = self.page(
|
@@ -122,6 +154,12 @@ module Twilio
|
|
122
154
|
regulation_sid: regulation_sid,
|
123
155
|
iso_country: iso_country,
|
124
156
|
number_type: number_type,
|
157
|
+
has_valid_until_date: has_valid_until_date,
|
158
|
+
sort_by: sort_by,
|
159
|
+
sort_direction: sort_direction,
|
160
|
+
valid_until_date_before: valid_until_date_before,
|
161
|
+
valid_until_date: valid_until_date,
|
162
|
+
valid_until_date_after: valid_until_date_after,
|
125
163
|
page_size: limits[:page_size],
|
126
164
|
)
|
127
165
|
|
@@ -146,26 +184,45 @@ module Twilio
|
|
146
184
|
# Retrieve a single page of BundleInstance records from the API.
|
147
185
|
# Request is executed immediately.
|
148
186
|
# @param [bundle.Status] status The verification status of the Bundle resource.
|
187
|
+
# Please refer to {Bundle
|
188
|
+
# Statuses}[https://www.twilio.com/docs/phone-numbers/regulatory/api/bundles#bundle-statuses]
|
189
|
+
# for more details.
|
149
190
|
# @param [String] friendly_name The string that you assigned to describe the
|
150
|
-
# resource.
|
151
|
-
# @param [String] regulation_sid The unique string of a
|
152
|
-
#
|
153
|
-
#
|
191
|
+
# resource. The column can contain 255 variable characters.
|
192
|
+
# @param [String] regulation_sid The unique string of a {Regulation
|
193
|
+
# resource}[https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations]
|
194
|
+
# that is associated to the Bundle resource.
|
195
|
+
# @param [String] iso_country The 2-digit {ISO country
|
154
196
|
# code}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2] of the Bundle's phone
|
155
197
|
# number country ownership request.
|
156
198
|
# @param [String] number_type The type of phone number of the Bundle's ownership
|
157
|
-
# request. Can be `local`, `mobile`, `national`, or `
|
199
|
+
# request. Can be `local`, `mobile`, `national`, or `tollfree`.
|
200
|
+
# @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid
|
201
|
+
# Bundle until a specified expiration date.
|
202
|
+
# @param [bundle.SortBy] sort_by Can be `ValidUntilDate` or `DateUpdated`.
|
203
|
+
# Defaults to `DateCreated`
|
204
|
+
# @param [bundle.SortDirection] sort_direction Default is `DESC`. Can be `ASC` or
|
205
|
+
# `DESC`.
|
206
|
+
# @param [Time] valid_until_date_before Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well.
|
207
|
+
# @param [Time] valid_until_date Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well.
|
208
|
+
# @param [Time] valid_until_date_after Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well.
|
158
209
|
# @param [String] page_token PageToken provided by the API
|
159
210
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
160
211
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
161
212
|
# @return [Page] Page of BundleInstance
|
162
|
-
def page(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
213
|
+
def page(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date_before: :unset, valid_until_date: :unset, valid_until_date_after: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
163
214
|
params = Twilio::Values.of({
|
164
215
|
'Status' => status,
|
165
216
|
'FriendlyName' => friendly_name,
|
166
217
|
'RegulationSid' => regulation_sid,
|
167
218
|
'IsoCountry' => iso_country,
|
168
219
|
'NumberType' => number_type,
|
220
|
+
'HasValidUntilDate' => has_valid_until_date,
|
221
|
+
'SortBy' => sort_by,
|
222
|
+
'SortDirection' => sort_direction,
|
223
|
+
'ValidUntilDate<' => Twilio.serialize_iso8601_datetime(valid_until_date_before),
|
224
|
+
'ValidUntilDate' => Twilio.serialize_iso8601_datetime(valid_until_date),
|
225
|
+
'ValidUntilDate>' => Twilio.serialize_iso8601_datetime(valid_until_date_after),
|
169
226
|
'PageToken' => page_token,
|
170
227
|
'Page' => page_number,
|
171
228
|
'PageSize' => page_size,
|
@@ -39,16 +39,23 @@ module Twilio
|
|
39
39
|
# in Megabytes that each Sim resource assigned to the Fleet resource can consume
|
40
40
|
# during a billing period (normally one month). Value must be between 1MB (1) and
|
41
41
|
# 2TB (2,000,000). Defaults to 1GB (1,000).
|
42
|
-
# @param [Boolean] commands_enabled
|
43
|
-
#
|
44
|
-
# `true`.
|
45
|
-
# @param [String] commands_url
|
46
|
-
# SIM in the Fleet is used to send an SMS
|
47
|
-
# Your server should respond with an HTTP
|
48
|
-
# response body will be ignored.
|
49
|
-
# @param [String] commands_method
|
50
|
-
#
|
51
|
-
# to `POST`.
|
42
|
+
# @param [Boolean] commands_enabled Deprecated. Use `sms_commands_enabled`
|
43
|
+
# instead. Defines whether SIMs in the Fleet are capable of sending and receiving
|
44
|
+
# machine-to-machine SMS via Commands. Defaults to `true`.
|
45
|
+
# @param [String] commands_url Deprecated. Use `sms_commands_url` instead. The URL
|
46
|
+
# that will receive a webhook when a Super SIM in the Fleet is used to send an SMS
|
47
|
+
# from your device to the Commands number. Your server should respond with an HTTP
|
48
|
+
# status code in the 200 range; any response body will be ignored.
|
49
|
+
# @param [String] commands_method Deprecated. Use `sms_commands_method` instead. A
|
50
|
+
# string representing the HTTP method to use when making a request to
|
51
|
+
# `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`.
|
52
|
+
# @param [String] ip_commands_url The URL that will receive a webhook when a Super
|
53
|
+
# SIM in the Fleet is used to send an IP Command from your device to a special IP
|
54
|
+
# address. Your server should respond with an HTTP status code in the 200 range;
|
55
|
+
# any response body will be ignored.
|
56
|
+
# @param [String] ip_commands_method A string representing the HTTP method to use
|
57
|
+
# when making a request to `ip_commands_url`. Can be one of `POST` or `GET`.
|
58
|
+
# Defaults to `POST`.
|
52
59
|
# @param [Boolean] sms_commands_enabled Defines whether SIMs in the Fleet are
|
53
60
|
# capable of sending and receiving machine-to-machine SMS via Commands. Defaults
|
54
61
|
# to `true`.
|
@@ -60,7 +67,7 @@ module Twilio
|
|
60
67
|
# when making a request to `sms_commands_url`. Can be one of `POST` or `GET`.
|
61
68
|
# Defaults to `POST`.
|
62
69
|
# @return [FleetInstance] Created FleetInstance
|
63
|
-
def create(network_access_profile: nil, unique_name: :unset, data_enabled: :unset, data_limit: :unset, commands_enabled: :unset, commands_url: :unset, commands_method: :unset, sms_commands_enabled: :unset, sms_commands_url: :unset, sms_commands_method: :unset)
|
70
|
+
def create(network_access_profile: nil, unique_name: :unset, data_enabled: :unset, data_limit: :unset, commands_enabled: :unset, commands_url: :unset, commands_method: :unset, ip_commands_url: :unset, ip_commands_method: :unset, sms_commands_enabled: :unset, sms_commands_url: :unset, sms_commands_method: :unset)
|
64
71
|
data = Twilio::Values.of({
|
65
72
|
'NetworkAccessProfile' => network_access_profile,
|
66
73
|
'UniqueName' => unique_name,
|
@@ -69,6 +76,8 @@ module Twilio
|
|
69
76
|
'CommandsEnabled' => commands_enabled,
|
70
77
|
'CommandsUrl' => commands_url,
|
71
78
|
'CommandsMethod' => commands_method,
|
79
|
+
'IpCommandsUrl' => ip_commands_url,
|
80
|
+
'IpCommandsMethod' => ip_commands_method,
|
72
81
|
'SmsCommandsEnabled' => sms_commands_enabled,
|
73
82
|
'SmsCommandsUrl' => sms_commands_url,
|
74
83
|
'SmsCommandsMethod' => sms_commands_method,
|
@@ -244,13 +253,20 @@ module Twilio
|
|
244
253
|
# @param [String] network_access_profile The SID or unique name of the Network
|
245
254
|
# Access Profile that will control which cellular networks the Fleet's SIMs can
|
246
255
|
# connect to.
|
247
|
-
# @param [String] commands_url
|
248
|
-
# SIM in the Fleet is used to send an SMS
|
249
|
-
# Your server should respond with an HTTP
|
250
|
-
# response body will be ignored.
|
251
|
-
# @param [String] commands_method
|
252
|
-
#
|
253
|
-
# to `POST`.
|
256
|
+
# @param [String] commands_url Deprecated. Use `sms_commands_url` instead. The URL
|
257
|
+
# that will receive a webhook when a Super SIM in the Fleet is used to send an SMS
|
258
|
+
# from your device to the Commands number. Your server should respond with an HTTP
|
259
|
+
# status code in the 200 range; any response body will be ignored.
|
260
|
+
# @param [String] commands_method Deprecated. Use `sms_commands_method` instead. A
|
261
|
+
# string representing the HTTP method to use when making a request to
|
262
|
+
# `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`.
|
263
|
+
# @param [String] ip_commands_url The URL that will receive a webhook when a Super
|
264
|
+
# SIM in the Fleet is used to send an IP Command from your device to a special IP
|
265
|
+
# address. Your server should respond with an HTTP status code in the 200 range;
|
266
|
+
# any response body will be ignored.
|
267
|
+
# @param [String] ip_commands_method A string representing the HTTP method to use
|
268
|
+
# when making a request to `ip_commands_url`. Can be one of `POST` or `GET`.
|
269
|
+
# Defaults to `POST`.
|
254
270
|
# @param [String] sms_commands_url The URL that will receive a webhook when a
|
255
271
|
# Super SIM in the Fleet is used to send an SMS from your device to the SMS
|
256
272
|
# Commands number. Your server should respond with an HTTP status code in the 200
|
@@ -259,12 +275,14 @@ module Twilio
|
|
259
275
|
# when making a request to `sms_commands_url`. Can be one of `POST` or `GET`.
|
260
276
|
# Defaults to `POST`.
|
261
277
|
# @return [FleetInstance] Updated FleetInstance
|
262
|
-
def update(unique_name: :unset, network_access_profile: :unset, commands_url: :unset, commands_method: :unset, sms_commands_url: :unset, sms_commands_method: :unset)
|
278
|
+
def update(unique_name: :unset, network_access_profile: :unset, commands_url: :unset, commands_method: :unset, ip_commands_url: :unset, ip_commands_method: :unset, sms_commands_url: :unset, sms_commands_method: :unset)
|
263
279
|
data = Twilio::Values.of({
|
264
280
|
'UniqueName' => unique_name,
|
265
281
|
'NetworkAccessProfile' => network_access_profile,
|
266
282
|
'CommandsUrl' => commands_url,
|
267
283
|
'CommandsMethod' => commands_method,
|
284
|
+
'IpCommandsUrl' => ip_commands_url,
|
285
|
+
'IpCommandsMethod' => ip_commands_method,
|
268
286
|
'SmsCommandsUrl' => sms_commands_url,
|
269
287
|
'SmsCommandsMethod' => sms_commands_method,
|
270
288
|
})
|
@@ -319,6 +337,8 @@ module Twilio
|
|
319
337
|
'sms_commands_url' => payload['sms_commands_url'],
|
320
338
|
'sms_commands_method' => payload['sms_commands_method'],
|
321
339
|
'network_access_profile_sid' => payload['network_access_profile_sid'],
|
340
|
+
'ip_commands_url' => payload['ip_commands_url'],
|
341
|
+
'ip_commands_method' => payload['ip_commands_method'],
|
322
342
|
}
|
323
343
|
|
324
344
|
# Context
|
@@ -392,19 +412,19 @@ module Twilio
|
|
392
412
|
end
|
393
413
|
|
394
414
|
##
|
395
|
-
# @return [Boolean]
|
415
|
+
# @return [Boolean] Deprecated
|
396
416
|
def commands_enabled
|
397
417
|
@properties['commands_enabled']
|
398
418
|
end
|
399
419
|
|
400
420
|
##
|
401
|
-
# @return [String]
|
421
|
+
# @return [String] Deprecated
|
402
422
|
def commands_url
|
403
423
|
@properties['commands_url']
|
404
424
|
end
|
405
425
|
|
406
426
|
##
|
407
|
-
# @return [String]
|
427
|
+
# @return [String] Deprecated
|
408
428
|
def commands_method
|
409
429
|
@properties['commands_method']
|
410
430
|
end
|
@@ -433,6 +453,18 @@ module Twilio
|
|
433
453
|
@properties['network_access_profile_sid']
|
434
454
|
end
|
435
455
|
|
456
|
+
##
|
457
|
+
# @return [String] The URL that will receive a webhook when a Super SIM in the Fleet is used to send an IP Command from your device
|
458
|
+
def ip_commands_url
|
459
|
+
@properties['ip_commands_url']
|
460
|
+
end
|
461
|
+
|
462
|
+
##
|
463
|
+
# @return [String] A string representing the HTTP method to use when making a request to `ip_commands_url`
|
464
|
+
def ip_commands_method
|
465
|
+
@properties['ip_commands_method']
|
466
|
+
end
|
467
|
+
|
436
468
|
##
|
437
469
|
# Fetch the FleetInstance
|
438
470
|
# @return [FleetInstance] Fetched FleetInstance
|
@@ -448,13 +480,20 @@ module Twilio
|
|
448
480
|
# @param [String] network_access_profile The SID or unique name of the Network
|
449
481
|
# Access Profile that will control which cellular networks the Fleet's SIMs can
|
450
482
|
# connect to.
|
451
|
-
# @param [String] commands_url
|
452
|
-
# SIM in the Fleet is used to send an SMS
|
453
|
-
# Your server should respond with an HTTP
|
454
|
-
# response body will be ignored.
|
455
|
-
# @param [String] commands_method
|
456
|
-
#
|
457
|
-
# to `POST`.
|
483
|
+
# @param [String] commands_url Deprecated. Use `sms_commands_url` instead. The URL
|
484
|
+
# that will receive a webhook when a Super SIM in the Fleet is used to send an SMS
|
485
|
+
# from your device to the Commands number. Your server should respond with an HTTP
|
486
|
+
# status code in the 200 range; any response body will be ignored.
|
487
|
+
# @param [String] commands_method Deprecated. Use `sms_commands_method` instead. A
|
488
|
+
# string representing the HTTP method to use when making a request to
|
489
|
+
# `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`.
|
490
|
+
# @param [String] ip_commands_url The URL that will receive a webhook when a Super
|
491
|
+
# SIM in the Fleet is used to send an IP Command from your device to a special IP
|
492
|
+
# address. Your server should respond with an HTTP status code in the 200 range;
|
493
|
+
# any response body will be ignored.
|
494
|
+
# @param [String] ip_commands_method A string representing the HTTP method to use
|
495
|
+
# when making a request to `ip_commands_url`. Can be one of `POST` or `GET`.
|
496
|
+
# Defaults to `POST`.
|
458
497
|
# @param [String] sms_commands_url The URL that will receive a webhook when a
|
459
498
|
# Super SIM in the Fleet is used to send an SMS from your device to the SMS
|
460
499
|
# Commands number. Your server should respond with an HTTP status code in the 200
|
@@ -463,12 +502,14 @@ module Twilio
|
|
463
502
|
# when making a request to `sms_commands_url`. Can be one of `POST` or `GET`.
|
464
503
|
# Defaults to `POST`.
|
465
504
|
# @return [FleetInstance] Updated FleetInstance
|
466
|
-
def update(unique_name: :unset, network_access_profile: :unset, commands_url: :unset, commands_method: :unset, sms_commands_url: :unset, sms_commands_method: :unset)
|
505
|
+
def update(unique_name: :unset, network_access_profile: :unset, commands_url: :unset, commands_method: :unset, ip_commands_url: :unset, ip_commands_method: :unset, sms_commands_url: :unset, sms_commands_method: :unset)
|
467
506
|
context.update(
|
468
507
|
unique_name: unique_name,
|
469
508
|
network_access_profile: network_access_profile,
|
470
509
|
commands_url: commands_url,
|
471
510
|
commands_method: commands_method,
|
511
|
+
ip_commands_url: ip_commands_url,
|
512
|
+
ip_commands_method: ip_commands_method,
|
472
513
|
sms_commands_url: sms_commands_url,
|
473
514
|
sms_commands_method: sms_commands_method,
|
474
515
|
)
|
@@ -28,7 +28,7 @@ module Twilio
|
|
28
28
|
##
|
29
29
|
# Create the SmsCommandInstance
|
30
30
|
# @param [String] sim The `sid` or `unique_name` of the
|
31
|
-
# {SIM}[https://www.twilio.com/docs/
|
31
|
+
# {SIM}[https://www.twilio.com/docs/iot/supersim/api/sim-resource] to send the SMS
|
32
32
|
# Command to.
|
33
33
|
# @param [String] payload The message body of the SMS Command.
|
34
34
|
# @param [String] callback_method The HTTP method we should use to call
|
@@ -28,11 +28,24 @@ module Twilio
|
|
28
28
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
29
29
|
# memory before returning.
|
30
30
|
# @param [Time] date_created_after Datetime filter used to query Verification
|
31
|
-
# Attempts created after this datetime.
|
31
|
+
# Attempts created after this datetime. Given as GMT in RFC 2822 format.
|
32
32
|
# @param [Time] date_created_before Datetime filter used to query Verification
|
33
|
-
# Attempts created before this datetime.
|
34
|
-
# @param [String] channel_data_to Destination of a verification.
|
35
|
-
#
|
33
|
+
# Attempts created before this datetime. Given as GMT in RFC 2822 format.
|
34
|
+
# @param [String] channel_data_to Destination of a verification. It is phone
|
35
|
+
# number in E.164 format.
|
36
|
+
# @param [String] country Filter used to query Verification Attempts sent to the
|
37
|
+
# specified destination country.
|
38
|
+
# @param [verification_attempt.Channels] channel Filter used to query Verification
|
39
|
+
# Attempts by communication channel. Valid values are `SMS` and `CALL`
|
40
|
+
# @param [String] verify_service_sid Filter used to query Verification Attempts by
|
41
|
+
# verify service. Only attempts of the provided SID will be returned.
|
42
|
+
# @param [String] verification_sid Filter used to return all the Verification
|
43
|
+
# Attempts of a single verification. Only attempts of the provided verification
|
44
|
+
# SID will be returned.
|
45
|
+
# @param [verification_attempt.ConversionStatus] status Filter used to query
|
46
|
+
# Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for
|
47
|
+
# attempts that were not converted, and `CONVERTED`, for attempts that were
|
48
|
+
# confirmed.
|
36
49
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
37
50
|
# guarantees to never return more than limit. Default is no limit
|
38
51
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -40,11 +53,16 @@ module Twilio
|
|
40
53
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
41
54
|
# efficient page size, i.e. min(limit, 1000)
|
42
55
|
# @return [Array] Array of up to limit results
|
43
|
-
def list(date_created_after: :unset, date_created_before: :unset, channel_data_to: :unset, limit: nil, page_size: nil)
|
56
|
+
def list(date_created_after: :unset, date_created_before: :unset, channel_data_to: :unset, country: :unset, channel: :unset, verify_service_sid: :unset, verification_sid: :unset, status: :unset, limit: nil, page_size: nil)
|
44
57
|
self.stream(
|
45
58
|
date_created_after: date_created_after,
|
46
59
|
date_created_before: date_created_before,
|
47
60
|
channel_data_to: channel_data_to,
|
61
|
+
country: country,
|
62
|
+
channel: channel,
|
63
|
+
verify_service_sid: verify_service_sid,
|
64
|
+
verification_sid: verification_sid,
|
65
|
+
status: status,
|
48
66
|
limit: limit,
|
49
67
|
page_size: page_size
|
50
68
|
).entries
|
@@ -55,11 +73,24 @@ module Twilio
|
|
55
73
|
# This operation lazily loads records as efficiently as possible until the limit
|
56
74
|
# is reached.
|
57
75
|
# @param [Time] date_created_after Datetime filter used to query Verification
|
58
|
-
# Attempts created after this datetime.
|
76
|
+
# Attempts created after this datetime. Given as GMT in RFC 2822 format.
|
59
77
|
# @param [Time] date_created_before Datetime filter used to query Verification
|
60
|
-
# Attempts created before this datetime.
|
61
|
-
# @param [String] channel_data_to Destination of a verification.
|
62
|
-
#
|
78
|
+
# Attempts created before this datetime. Given as GMT in RFC 2822 format.
|
79
|
+
# @param [String] channel_data_to Destination of a verification. It is phone
|
80
|
+
# number in E.164 format.
|
81
|
+
# @param [String] country Filter used to query Verification Attempts sent to the
|
82
|
+
# specified destination country.
|
83
|
+
# @param [verification_attempt.Channels] channel Filter used to query Verification
|
84
|
+
# Attempts by communication channel. Valid values are `SMS` and `CALL`
|
85
|
+
# @param [String] verify_service_sid Filter used to query Verification Attempts by
|
86
|
+
# verify service. Only attempts of the provided SID will be returned.
|
87
|
+
# @param [String] verification_sid Filter used to return all the Verification
|
88
|
+
# Attempts of a single verification. Only attempts of the provided verification
|
89
|
+
# SID will be returned.
|
90
|
+
# @param [verification_attempt.ConversionStatus] status Filter used to query
|
91
|
+
# Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for
|
92
|
+
# attempts that were not converted, and `CONVERTED`, for attempts that were
|
93
|
+
# confirmed.
|
63
94
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
64
95
|
# guarantees to never return more than limit. Default is no limit.
|
65
96
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -67,13 +98,18 @@ module Twilio
|
|
67
98
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
68
99
|
# efficient page size, i.e. min(limit, 1000)
|
69
100
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
70
|
-
def stream(date_created_after: :unset, date_created_before: :unset, channel_data_to: :unset, limit: nil, page_size: nil)
|
101
|
+
def stream(date_created_after: :unset, date_created_before: :unset, channel_data_to: :unset, country: :unset, channel: :unset, verify_service_sid: :unset, verification_sid: :unset, status: :unset, limit: nil, page_size: nil)
|
71
102
|
limits = @version.read_limits(limit, page_size)
|
72
103
|
|
73
104
|
page = self.page(
|
74
105
|
date_created_after: date_created_after,
|
75
106
|
date_created_before: date_created_before,
|
76
107
|
channel_data_to: channel_data_to,
|
108
|
+
country: country,
|
109
|
+
channel: channel,
|
110
|
+
verify_service_sid: verify_service_sid,
|
111
|
+
verification_sid: verification_sid,
|
112
|
+
status: status,
|
77
113
|
page_size: limits[:page_size],
|
78
114
|
)
|
79
115
|
|
@@ -98,20 +134,38 @@ module Twilio
|
|
98
134
|
# Retrieve a single page of VerificationAttemptInstance records from the API.
|
99
135
|
# Request is executed immediately.
|
100
136
|
# @param [Time] date_created_after Datetime filter used to query Verification
|
101
|
-
# Attempts created after this datetime.
|
137
|
+
# Attempts created after this datetime. Given as GMT in RFC 2822 format.
|
102
138
|
# @param [Time] date_created_before Datetime filter used to query Verification
|
103
|
-
# Attempts created before this datetime.
|
104
|
-
# @param [String] channel_data_to Destination of a verification.
|
105
|
-
#
|
139
|
+
# Attempts created before this datetime. Given as GMT in RFC 2822 format.
|
140
|
+
# @param [String] channel_data_to Destination of a verification. It is phone
|
141
|
+
# number in E.164 format.
|
142
|
+
# @param [String] country Filter used to query Verification Attempts sent to the
|
143
|
+
# specified destination country.
|
144
|
+
# @param [verification_attempt.Channels] channel Filter used to query Verification
|
145
|
+
# Attempts by communication channel. Valid values are `SMS` and `CALL`
|
146
|
+
# @param [String] verify_service_sid Filter used to query Verification Attempts by
|
147
|
+
# verify service. Only attempts of the provided SID will be returned.
|
148
|
+
# @param [String] verification_sid Filter used to return all the Verification
|
149
|
+
# Attempts of a single verification. Only attempts of the provided verification
|
150
|
+
# SID will be returned.
|
151
|
+
# @param [verification_attempt.ConversionStatus] status Filter used to query
|
152
|
+
# Verification Attempts by conversion status. Valid values are `UNCONVERTED`, for
|
153
|
+
# attempts that were not converted, and `CONVERTED`, for attempts that were
|
154
|
+
# confirmed.
|
106
155
|
# @param [String] page_token PageToken provided by the API
|
107
156
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
108
157
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
109
158
|
# @return [Page] Page of VerificationAttemptInstance
|
110
|
-
def page(date_created_after: :unset, date_created_before: :unset, channel_data_to: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
159
|
+
def page(date_created_after: :unset, date_created_before: :unset, channel_data_to: :unset, country: :unset, channel: :unset, verify_service_sid: :unset, verification_sid: :unset, status: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
111
160
|
params = Twilio::Values.of({
|
112
161
|
'DateCreatedAfter' => Twilio.serialize_iso8601_datetime(date_created_after),
|
113
162
|
'DateCreatedBefore' => Twilio.serialize_iso8601_datetime(date_created_before),
|
114
163
|
'ChannelData.To' => channel_data_to,
|
164
|
+
'Country' => country,
|
165
|
+
'Channel' => channel,
|
166
|
+
'VerifyServiceSid' => verify_service_sid,
|
167
|
+
'VerificationSid' => verification_sid,
|
168
|
+
'Status' => status,
|
115
169
|
'PageToken' => page_token,
|
116
170
|
'Page' => page_number,
|
117
171
|
'PageSize' => page_size,
|
@@ -224,10 +278,12 @@ module Twilio
|
|
224
278
|
'sid' => payload['sid'],
|
225
279
|
'account_sid' => payload['account_sid'],
|
226
280
|
'service_sid' => payload['service_sid'],
|
281
|
+
'verification_sid' => payload['verification_sid'],
|
227
282
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
228
283
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
229
284
|
'conversion_status' => payload['conversion_status'],
|
230
285
|
'channel' => payload['channel'],
|
286
|
+
'price' => payload['price'],
|
231
287
|
'channel_data' => payload['channel_data'],
|
232
288
|
'url' => payload['url'],
|
233
289
|
}
|
@@ -249,23 +305,29 @@ module Twilio
|
|
249
305
|
end
|
250
306
|
|
251
307
|
##
|
252
|
-
# @return [String]
|
308
|
+
# @return [String] The SID that uniquely identifies the verification attempt.
|
253
309
|
def sid
|
254
310
|
@properties['sid']
|
255
311
|
end
|
256
312
|
|
257
313
|
##
|
258
|
-
# @return [String] Account
|
314
|
+
# @return [String] The SID of the Account that created the verification.
|
259
315
|
def account_sid
|
260
316
|
@properties['account_sid']
|
261
317
|
end
|
262
318
|
|
263
319
|
##
|
264
|
-
# @return [String] The
|
320
|
+
# @return [String] The SID of the verify service that generated this attempt.
|
265
321
|
def service_sid
|
266
322
|
@properties['service_sid']
|
267
323
|
end
|
268
324
|
|
325
|
+
##
|
326
|
+
# @return [String] The SID of the verification that generated this attempt.
|
327
|
+
def verification_sid
|
328
|
+
@properties['verification_sid']
|
329
|
+
end
|
330
|
+
|
269
331
|
##
|
270
332
|
# @return [Time] The date this Attempt was created
|
271
333
|
def date_created
|
@@ -279,19 +341,25 @@ module Twilio
|
|
279
341
|
end
|
280
342
|
|
281
343
|
##
|
282
|
-
# @return [verification_attempt.ConversionStatus] Status of
|
344
|
+
# @return [verification_attempt.ConversionStatus] Status of the conversion for the verification.
|
283
345
|
def conversion_status
|
284
346
|
@properties['conversion_status']
|
285
347
|
end
|
286
348
|
|
287
349
|
##
|
288
|
-
# @return [verification_attempt.Channels]
|
350
|
+
# @return [verification_attempt.Channels] Communication channel used for the attempt.
|
289
351
|
def channel
|
290
352
|
@properties['channel']
|
291
353
|
end
|
292
354
|
|
293
355
|
##
|
294
|
-
# @return [Hash]
|
356
|
+
# @return [Hash] An object containing the charge for this verification attempt.
|
357
|
+
def price
|
358
|
+
@properties['price']
|
359
|
+
end
|
360
|
+
|
361
|
+
##
|
362
|
+
# @return [Hash] An object containing the channel specific information for an attempt.
|
295
363
|
def channel_data
|
296
364
|
@properties['channel_data']
|
297
365
|
end
|
@@ -47,8 +47,8 @@ module Twilio
|
|
47
47
|
end
|
48
48
|
|
49
49
|
##
|
50
|
-
# @param [String] sid
|
51
|
-
#
|
50
|
+
# @param [String] sid The SID that uniquely identifies the verification attempt
|
51
|
+
# resource.
|
52
52
|
# @return [Twilio::REST::Verify::V2::VerificationAttemptInstance] if sid was passed.
|
53
53
|
# @return [Twilio::REST::Verify::V2::VerificationAttemptList]
|
54
54
|
def verification_attempts(sid=:unset)
|
@@ -30,10 +30,13 @@ module Twilio
|
|
30
30
|
# `group-small`, or `group`. The default value is `group`.
|
31
31
|
# @param [String] unique_name An application-defined string that uniquely
|
32
32
|
# identifies the resource. It can be used as a `room_sid` in place of the
|
33
|
-
# resource's `sid` in the URL to address the resource
|
34
|
-
#
|
35
|
-
#
|
36
|
-
#
|
33
|
+
# resource's `sid` in the URL to address the resource, assuming it does not
|
34
|
+
# contain any {reserved
|
35
|
+
# characters}[https://tools.ietf.org/html/rfc3986#section-2.2] that would need to
|
36
|
+
# be URL encoded. This value is unique for `in-progress` rooms. SDK clients can
|
37
|
+
# use this name to connect to the room. REST API clients can use this name in
|
38
|
+
# place of the Room SID to interact with the room as long as the room is
|
39
|
+
# `in-progress`.
|
37
40
|
# @param [String] status_callback The URL we should call using the
|
38
41
|
# `status_callback_method` to send status information to your application on every
|
39
42
|
# room event. See {Status
|
data/lib/twilio-ruby/version.rb
CHANGED