twilio-ruby 6.0.0.pre.rc.2 → 6.0.0.pre.rc.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +16 -0
- data/README.md +3 -3
- data/lib/twilio-ruby/jwt/access_token.rb +0 -59
- data/lib/twilio-ruby/rest/client.rb +16 -15
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +6 -6
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +6 -6
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +2 -21
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +14 -0
- data/lib/twilio-ruby/rest/numbers_base.rb +6 -1
- data/lib/twilio-ruby/rest/verify/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/verify/v2/template.rb +5 -5
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b50bcb41c0f25e83979ea7c86cd34be29192f84e
|
4
|
+
data.tar.gz: 03f7b80f2d0c3feede506fd95a8fa0adcf5772ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 468b2e3cbd98d1e945f567a6c9a6d2efe5638f7fb2c4ed6645369bfde36285cde24579ddbdc3a3579b4d13bee0f4028df854ef597603da465763a8e9fb1183e9
|
7
|
+
data.tar.gz: d0160a37b6db988eb7b06cc881e0b1894173835571ce1e870f8b48a4f4fc38d7bd0a55860a56213920594f536ceb3e4613f7a1eb1d73f070bad9814dfe0b5bac
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,22 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2023-04-19] Version 6.0.0-rc.3
|
5
|
+
-------------------------------
|
6
|
+
**Library - Fix**
|
7
|
+
- [PR #644](https://github.com/twilio/twilio-ruby/pull/644): remove deprecated access token grants. Thanks to [@kridai](https://github.com/kridai)!
|
8
|
+
|
9
|
+
**Library - Chore**
|
10
|
+
- [PR #647](https://github.com/twilio/twilio-ruby/pull/647): update client.rb. Thanks to [@shrutiburman](https://github.com/shrutiburman)!
|
11
|
+
|
12
|
+
**Messaging**
|
13
|
+
- Remove `messaging_service_sids` and `messaging_service_sid_action` from domain config endpoint **(breaking change)**
|
14
|
+
- Add error_code and rejection_reason properties to tollfree verification API response
|
15
|
+
|
16
|
+
**Numbers**
|
17
|
+
- Added the new Eligibility API under version `/v1`.
|
18
|
+
|
19
|
+
|
4
20
|
[2023-04-05] Version 6.0.0-rc.2
|
5
21
|
-------------------------------
|
6
22
|
**Library - Fix**
|
data/README.md
CHANGED
@@ -39,19 +39,19 @@ This library supports the following Ruby implementations:
|
|
39
39
|
To install using [Bundler][bundler] grab the latest stable version:
|
40
40
|
|
41
41
|
```ruby
|
42
|
-
gem 'twilio-ruby', '~> 6.0.0-rc.
|
42
|
+
gem 'twilio-ruby', '~> 6.0.0-rc.3'
|
43
43
|
```
|
44
44
|
|
45
45
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
46
46
|
|
47
47
|
```bash
|
48
|
-
gem install twilio-ruby -v 6.0.0-rc.
|
48
|
+
gem install twilio-ruby -v 6.0.0-rc.3
|
49
49
|
```
|
50
50
|
|
51
51
|
To install `twilio-ruby` release candidate via [Rubygems][rubygems] simply gem install:
|
52
52
|
|
53
53
|
```bash
|
54
|
-
gem install twilio-ruby -v 6.0.0-rc.
|
54
|
+
gem install twilio-ruby -v 6.0.0-rc.3
|
55
55
|
```
|
56
56
|
|
57
57
|
To build and install the development branch yourself from the latest source:
|
@@ -114,41 +114,6 @@ module Twilio
|
|
114
114
|
end
|
115
115
|
end
|
116
116
|
|
117
|
-
class IpMessagingGrant
|
118
|
-
include AccessTokenGrant
|
119
|
-
attr_accessor :service_sid,
|
120
|
-
:endpoint_id,
|
121
|
-
:deployment_role_sid,
|
122
|
-
:push_credential_sid
|
123
|
-
|
124
|
-
def _key
|
125
|
-
'ip_messaging'
|
126
|
-
end
|
127
|
-
|
128
|
-
def _generate_payload
|
129
|
-
payload = {}
|
130
|
-
|
131
|
-
payload[:service_sid] = service_sid if service_sid
|
132
|
-
|
133
|
-
payload[:endpoint_id] = endpoint_id if endpoint_id
|
134
|
-
|
135
|
-
if deployment_role_sid
|
136
|
-
payload[:deployment_role_sid] = deployment_role_sid
|
137
|
-
end
|
138
|
-
|
139
|
-
if push_credential_sid
|
140
|
-
payload[:push_credential_sid] = push_credential_sid
|
141
|
-
end
|
142
|
-
|
143
|
-
payload
|
144
|
-
end
|
145
|
-
|
146
|
-
class << self
|
147
|
-
extend Gem::Deprecate
|
148
|
-
deprecate :new, 'Chat.new', 2017, 7
|
149
|
-
end
|
150
|
-
end
|
151
|
-
|
152
117
|
class VoiceGrant
|
153
118
|
include AccessTokenGrant
|
154
119
|
attr_accessor :incoming_allow,
|
@@ -204,30 +169,6 @@ module Twilio
|
|
204
169
|
end
|
205
170
|
end
|
206
171
|
|
207
|
-
class ConversationsGrant
|
208
|
-
include AccessTokenGrant
|
209
|
-
attr_accessor :configuration_profile_sid
|
210
|
-
|
211
|
-
def _key
|
212
|
-
'rtc'
|
213
|
-
end
|
214
|
-
|
215
|
-
def _generate_payload
|
216
|
-
payload = {}
|
217
|
-
|
218
|
-
if configuration_profile_sid
|
219
|
-
payload[:configuration_profile_sid] = configuration_profile_sid
|
220
|
-
end
|
221
|
-
|
222
|
-
payload
|
223
|
-
end
|
224
|
-
|
225
|
-
class << self
|
226
|
-
extend Gem::Deprecate
|
227
|
-
deprecate :new, 'VideoGrant.new', 2017, 5
|
228
|
-
end
|
229
|
-
end
|
230
|
-
|
231
172
|
class VideoGrant
|
232
173
|
include AccessTokenGrant
|
233
174
|
attr_accessor :room
|
@@ -1,12 +1,12 @@
|
|
1
1
|
##
|
2
|
-
# This code was generated by
|
3
|
-
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
-
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
-
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
-
#
|
7
|
-
# NOTE: This class is auto generated by OpenAPI Generator.
|
8
|
-
# https://openapi-generator.tech
|
9
|
-
# Do not edit the class manually.
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
8
|
+
# https://openapi-generator.tech
|
9
|
+
# Do not edit the class manually.
|
10
10
|
|
11
11
|
require 'twilio-ruby/base/client_base'
|
12
12
|
|
@@ -224,7 +224,7 @@ module Twilio
|
|
224
224
|
def available_phone_numbers(countryCode=:unset)
|
225
225
|
self.api.v2010.account.available_phone_numbers(countryCode)
|
226
226
|
end
|
227
|
-
|
227
|
+
|
228
228
|
##
|
229
229
|
# @param [string] sid The SID of the Call resource to fetch.
|
230
230
|
|
@@ -273,8 +273,8 @@ module Twilio
|
|
273
273
|
def messages(sid=:unset)
|
274
274
|
self.api.v2010.account.messages(sid)
|
275
275
|
end
|
276
|
-
|
277
|
-
|
276
|
+
|
277
|
+
|
278
278
|
##
|
279
279
|
# @param [string] sid The Twilio-provided string that uniquely identifies the Notification resource to fetch.
|
280
280
|
|
@@ -322,8 +322,8 @@ module Twilio
|
|
322
322
|
def signing_keys(sid=:unset)
|
323
323
|
self.api.v2010.account.signing_keys(sid)
|
324
324
|
end
|
325
|
-
|
326
|
-
|
325
|
+
|
326
|
+
|
327
327
|
##
|
328
328
|
# @param [string] sid The Twilio-provided string that uniquely identifies the Transcription resource to fetch.
|
329
329
|
|
@@ -332,8 +332,8 @@ module Twilio
|
|
332
332
|
def transcriptions(sid=:unset)
|
333
333
|
self.api.v2010.account.transcriptions(sid)
|
334
334
|
end
|
335
|
-
|
336
|
-
|
335
|
+
|
336
|
+
|
337
337
|
|
338
338
|
##
|
339
339
|
# Provide a user friendly representation
|
@@ -343,3 +343,4 @@ module Twilio
|
|
343
343
|
end
|
344
344
|
end
|
345
345
|
end
|
346
|
+
|
@@ -80,8 +80,8 @@ module Twilio
|
|
80
80
|
# Lists ConversationInstance records from the API as a list.
|
81
81
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
82
82
|
# memory before returning.
|
83
|
-
# @param [String] start_date Start date in ISO8601 format for
|
84
|
-
# @param [String] end_date End date in ISO8601 format for
|
83
|
+
# @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
|
84
|
+
# @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
|
85
85
|
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
|
86
86
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
87
87
|
# guarantees to never return more than limit. Default is no limit
|
@@ -104,8 +104,8 @@ module Twilio
|
|
104
104
|
# Streams Instance records from the API as an Enumerable.
|
105
105
|
# This operation lazily loads records as efficiently as possible until the limit
|
106
106
|
# is reached.
|
107
|
-
# @param [String] start_date Start date in ISO8601 format for
|
108
|
-
# @param [String] end_date End date in ISO8601 format for
|
107
|
+
# @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
|
108
|
+
# @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
|
109
109
|
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
|
110
110
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
111
111
|
# guarantees to never return more than limit. Default is no limit
|
@@ -143,8 +143,8 @@ module Twilio
|
|
143
143
|
##
|
144
144
|
# Retrieve a single page of ConversationInstance records from the API.
|
145
145
|
# Request is executed immediately.
|
146
|
-
# @param [String] start_date Start date in ISO8601 format for
|
147
|
-
# @param [String] end_date End date in ISO8601 format for
|
146
|
+
# @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
|
147
|
+
# @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
|
148
148
|
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
|
149
149
|
# @param [String] page_token PageToken provided by the API
|
150
150
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
@@ -83,8 +83,8 @@ module Twilio
|
|
83
83
|
# Lists ConversationInstance records from the API as a list.
|
84
84
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
85
85
|
# memory before returning.
|
86
|
-
# @param [String] start_date Start date in ISO8601 format for
|
87
|
-
# @param [String] end_date End date in ISO8601 format for
|
86
|
+
# @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
|
87
|
+
# @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
|
88
88
|
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
|
89
89
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
90
90
|
# guarantees to never return more than limit. Default is no limit
|
@@ -107,8 +107,8 @@ module Twilio
|
|
107
107
|
# Streams Instance records from the API as an Enumerable.
|
108
108
|
# This operation lazily loads records as efficiently as possible until the limit
|
109
109
|
# is reached.
|
110
|
-
# @param [String] start_date Start date in ISO8601 format for
|
111
|
-
# @param [String] end_date End date in ISO8601 format for
|
110
|
+
# @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
|
111
|
+
# @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
|
112
112
|
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
|
113
113
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
114
114
|
# guarantees to never return more than limit. Default is no limit
|
@@ -146,8 +146,8 @@ module Twilio
|
|
146
146
|
##
|
147
147
|
# Retrieve a single page of ConversationInstance records from the API.
|
148
148
|
# Request is executed immediately.
|
149
|
-
# @param [String] start_date Start date in ISO8601 format for
|
150
|
-
# @param [String] end_date End date in ISO8601 format for
|
149
|
+
# @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
|
150
|
+
# @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
|
151
151
|
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
|
152
152
|
# @param [String] page_token PageToken provided by the API
|
153
153
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
@@ -71,23 +71,17 @@ module Twilio
|
|
71
71
|
|
72
72
|
##
|
73
73
|
# Update the DomainConfigInstance
|
74
|
-
# @param [Array[String]] messaging_service_sids A list of messagingServiceSids (with prefix MG)
|
75
74
|
# @param [String] fallback_url Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.
|
76
75
|
# @param [String] callback_url URL to receive click events to your webhook whenever the recipients click on the shortened links
|
77
|
-
# @param [String] messaging_service_sids_action An action type for messaging_service_sids operation (ADD, DELETE, REPLACE)
|
78
76
|
# @return [DomainConfigInstance] Updated DomainConfigInstance
|
79
77
|
def update(
|
80
|
-
messaging_service_sids: nil,
|
81
78
|
fallback_url: :unset,
|
82
|
-
callback_url: :unset
|
83
|
-
messaging_service_sids_action: :unset
|
79
|
+
callback_url: :unset
|
84
80
|
)
|
85
81
|
|
86
82
|
data = Twilio::Values.of({
|
87
|
-
'MessagingServiceSids' => Twilio.serialize_list(messaging_service_sids) { |e| e },
|
88
83
|
'FallbackUrl' => fallback_url,
|
89
84
|
'CallbackUrl' => callback_url,
|
90
|
-
'MessagingServiceSidsAction' => messaging_service_sids_action,
|
91
85
|
})
|
92
86
|
|
93
87
|
payload = @version.update('POST', @uri, data: data)
|
@@ -159,7 +153,6 @@ module Twilio
|
|
159
153
|
@properties = {
|
160
154
|
'domain_sid' => payload['domain_sid'],
|
161
155
|
'config_sid' => payload['config_sid'],
|
162
|
-
'messaging_service_sids' => payload['messaging_service_sids'],
|
163
156
|
'fallback_url' => payload['fallback_url'],
|
164
157
|
'callback_url' => payload['callback_url'],
|
165
158
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
@@ -195,12 +188,6 @@ module Twilio
|
|
195
188
|
@properties['config_sid']
|
196
189
|
end
|
197
190
|
|
198
|
-
##
|
199
|
-
# @return [Array<String>] A list of messagingServiceSids (with prefix MG).
|
200
|
-
def messaging_service_sids
|
201
|
-
@properties['messaging_service_sids']
|
202
|
-
end
|
203
|
-
|
204
191
|
##
|
205
192
|
# @return [String] Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.
|
206
193
|
def fallback_url
|
@@ -241,23 +228,17 @@ module Twilio
|
|
241
228
|
|
242
229
|
##
|
243
230
|
# Update the DomainConfigInstance
|
244
|
-
# @param [Array[String]] messaging_service_sids A list of messagingServiceSids (with prefix MG)
|
245
231
|
# @param [String] fallback_url Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.
|
246
232
|
# @param [String] callback_url URL to receive click events to your webhook whenever the recipients click on the shortened links
|
247
|
-
# @param [String] messaging_service_sids_action An action type for messaging_service_sids operation (ADD, DELETE, REPLACE)
|
248
233
|
# @return [DomainConfigInstance] Updated DomainConfigInstance
|
249
234
|
def update(
|
250
|
-
messaging_service_sids: nil,
|
251
235
|
fallback_url: :unset,
|
252
|
-
callback_url: :unset
|
253
|
-
messaging_service_sids_action: :unset
|
236
|
+
callback_url: :unset
|
254
237
|
)
|
255
238
|
|
256
239
|
context.update(
|
257
|
-
messaging_service_sids: messaging_service_sids,
|
258
240
|
fallback_url: fallback_url,
|
259
241
|
callback_url: callback_url,
|
260
|
-
messaging_service_sids_action: messaging_service_sids_action,
|
261
242
|
)
|
262
243
|
end
|
263
244
|
|
@@ -419,6 +419,8 @@ module Twilio
|
|
419
419
|
'tollfree_phone_number_sid' => payload['tollfree_phone_number_sid'],
|
420
420
|
'status' => payload['status'],
|
421
421
|
'url' => payload['url'],
|
422
|
+
'rejection_reason' => payload['rejection_reason'],
|
423
|
+
'error_code' => payload['error_code'] == nil ? payload['error_code'] : payload['error_code'].to_i,
|
422
424
|
'resource_links' => payload['resource_links'],
|
423
425
|
'external_reference_id' => payload['external_reference_id'],
|
424
426
|
}
|
@@ -619,6 +621,18 @@ module Twilio
|
|
619
621
|
@properties['url']
|
620
622
|
end
|
621
623
|
|
624
|
+
##
|
625
|
+
# @return [String] The rejection reason given when a Tollfree Verification has been rejected.
|
626
|
+
def rejection_reason
|
627
|
+
@properties['rejection_reason']
|
628
|
+
end
|
629
|
+
|
630
|
+
##
|
631
|
+
# @return [String] The error code given when a Tollfree Verification has been rejected.
|
632
|
+
def error_code
|
633
|
+
@properties['error_code']
|
634
|
+
end
|
635
|
+
|
622
636
|
##
|
623
637
|
# @return [Hash] The URLs of the documents associated with the Tollfree Verification resource.
|
624
638
|
def resource_links
|
@@ -21,9 +21,14 @@ module Twilio
|
|
21
21
|
@base_url = "https://numbers.twilio.com"
|
22
22
|
@host = "numbers.twilio.com"
|
23
23
|
@port = 443
|
24
|
+
@v1 = nil
|
24
25
|
@v2 = nil
|
25
26
|
end
|
26
27
|
|
28
|
+
def v1
|
29
|
+
@v1 ||= Numbers::V1.new self
|
30
|
+
end
|
31
|
+
|
27
32
|
def v2
|
28
33
|
@v2 ||= Numbers::V2.new self
|
29
34
|
end
|
@@ -31,7 +36,7 @@ module Twilio
|
|
31
36
|
##
|
32
37
|
# Provide a user friendly representation
|
33
38
|
def to_s
|
34
|
-
'<Twilio::REST::Numbers
|
39
|
+
'<Twilio::REST::Numbers>';
|
35
40
|
end
|
36
41
|
end
|
37
42
|
end
|
@@ -31,7 +31,7 @@ module Twilio
|
|
31
31
|
end
|
32
32
|
##
|
33
33
|
# Create the ServiceInstance
|
34
|
-
# @param [String] friendly_name A descriptive string that you create to describe the verification service. It can be up to
|
34
|
+
# @param [String] friendly_name A descriptive string that you create to describe the verification service. It can be up to 32 characters long. **This value should not contain PII.**
|
35
35
|
# @param [String] code_length The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive.
|
36
36
|
# @param [Boolean] lookup_enabled Whether to perform a lookup with each verification started and return info about the phone number.
|
37
37
|
# @param [Boolean] skip_sms_to_landlines Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`.
|
@@ -236,7 +236,7 @@ module Twilio
|
|
236
236
|
|
237
237
|
##
|
238
238
|
# Update the ServiceInstance
|
239
|
-
# @param [String] friendly_name A descriptive string that you create to describe the verification service. It can be up to
|
239
|
+
# @param [String] friendly_name A descriptive string that you create to describe the verification service. It can be up to 32 characters long. **This value should not contain PII.**
|
240
240
|
# @param [String] code_length The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive.
|
241
241
|
# @param [Boolean] lookup_enabled Whether to perform a lookup with each verification started and return info about the phone number.
|
242
242
|
# @param [Boolean] skip_sms_to_landlines Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`.
|
@@ -557,7 +557,7 @@ module Twilio
|
|
557
557
|
end
|
558
558
|
|
559
559
|
##
|
560
|
-
# @return [String] The string that you assigned to describe the verification service. **This value should not contain PII.**
|
560
|
+
# @return [String] The string that you assigned to describe the verification service. It can be up to 32 characters long. **This value should not contain PII.**
|
561
561
|
def friendly_name
|
562
562
|
@properties['friendly_name']
|
563
563
|
end
|
@@ -670,7 +670,7 @@ module Twilio
|
|
670
670
|
|
671
671
|
##
|
672
672
|
# Update the ServiceInstance
|
673
|
-
# @param [String] friendly_name A descriptive string that you create to describe the verification service. It can be up to
|
673
|
+
# @param [String] friendly_name A descriptive string that you create to describe the verification service. It can be up to 32 characters long. **This value should not contain PII.**
|
674
674
|
# @param [String] code_length The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive.
|
675
675
|
# @param [Boolean] lookup_enabled Whether to perform a lookup with each verification started and return info about the phone number.
|
676
676
|
# @param [Boolean] skip_sms_to_landlines Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`.
|
@@ -34,7 +34,7 @@ module Twilio
|
|
34
34
|
# Lists TemplateInstance records from the API as a list.
|
35
35
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
36
36
|
# memory before returning.
|
37
|
-
# @param [String] friendly_name String filter used to query templates with a given friendly name
|
37
|
+
# @param [String] friendly_name String filter used to query templates with a given friendly name.
|
38
38
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
39
39
|
# guarantees to never return more than limit. Default is no limit
|
40
40
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -54,7 +54,7 @@ module Twilio
|
|
54
54
|
# Streams Instance records from the API as an Enumerable.
|
55
55
|
# This operation lazily loads records as efficiently as possible until the limit
|
56
56
|
# is reached.
|
57
|
-
# @param [String] friendly_name String filter used to query templates with a given friendly name
|
57
|
+
# @param [String] friendly_name String filter used to query templates with a given friendly name.
|
58
58
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
59
59
|
# guarantees to never return more than limit. Default is no limit
|
60
60
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -89,7 +89,7 @@ module Twilio
|
|
89
89
|
##
|
90
90
|
# Retrieve a single page of TemplateInstance records from the API.
|
91
91
|
# Request is executed immediately.
|
92
|
-
# @param [String] friendly_name String filter used to query templates with a given friendly name
|
92
|
+
# @param [String] friendly_name String filter used to query templates with a given friendly name.
|
93
93
|
# @param [String] page_token PageToken provided by the API
|
94
94
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
95
95
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -195,13 +195,13 @@ module Twilio
|
|
195
195
|
end
|
196
196
|
|
197
197
|
##
|
198
|
-
# @return [String] A descriptive string that you create to describe a Template.
|
198
|
+
# @return [String] A descriptive string that you create to describe a Template. It can be up to 32 characters long.
|
199
199
|
def friendly_name
|
200
200
|
@properties['friendly_name']
|
201
201
|
end
|
202
202
|
|
203
203
|
##
|
204
|
-
# @return [Array<String>] A list of channels that support the Template. Can include: sms, voice
|
204
|
+
# @return [Array<String>] A list of channels that support the Template. Can include: sms, voice.
|
205
205
|
def channels
|
206
206
|
@properties['channels']
|
207
207
|
end
|
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.0.0.pre.rc.
|
4
|
+
version: 6.0.0.pre.rc.3
|
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-04-
|
11
|
+
date: 2023-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|