twilio-ruby 7.6.1 → 7.6.3
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 +36 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/http/client_token_manager.rb +2 -2
- data/lib/twilio-ruby/http/org_token_manager.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +1 -1
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +9 -3
- data/lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb +9 -3
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +0 -64
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service.rb +1 -1
- 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: 5f9a15f3ffb8009e8d41e00eb374886854d606e6
|
4
|
+
data.tar.gz: 4a303a0e54deddb804ae81a2fbe14e563a1f5953
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4f9f3d4879d438408e7d9adcddbc87455c1d6146a60dc09c3f5d7a7c51e1437cc78a4fb7992a700858ad8c14934a0a9b713cbbad8575840c5eaef2fcd2a6013
|
7
|
+
data.tar.gz: a61075ddb751966e67487edac65d0e6cb0f04614fd3a15512038f5df87cdf9315512d1ee199c4a8b4188ad465e403ad3f150ce84e3c8a228782a35dafd1c5b18
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,42 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2025-06-12] Version 7.6.3
|
5
|
+
--------------------------
|
6
|
+
**Library - Chore**
|
7
|
+
- [PR #751](https://github.com/twilio/twilio-ruby/pull/751): Delete knowledge related files. Thanks to [@krishnakalluri](https://github.com/krishnakalluri)!
|
8
|
+
|
9
|
+
**Api**
|
10
|
+
- Change DependentPhoneNumber `capabilities` type `object` and `date_created`, `date_updated` to `date_time<rfc2822>`
|
11
|
+
- Updated the `Default` value from 0 to 1 in the Recordings Resource `channels` property
|
12
|
+
|
13
|
+
**Serverless**
|
14
|
+
- Update `ienum` type level in Logs api
|
15
|
+
|
16
|
+
**Verify**
|
17
|
+
- Update Channel list in Verify Attempst API
|
18
|
+
- Update `ienum` type for Conversion_Status in Verify Attempts API
|
19
|
+
|
20
|
+
**Twiml**
|
21
|
+
- Add `us2` to the list of supported values for the region attribute in the `<Conference>` TwiML noun.
|
22
|
+
|
23
|
+
|
24
|
+
[2025-05-29] Version 7.6.2
|
25
|
+
--------------------------
|
26
|
+
**Library - Chore**
|
27
|
+
- [PR #749](https://github.com/twilio/twilio-ruby/pull/749): move from preview_iam to iam token endpoint. Thanks to [@manisha1997](https://github.com/manisha1997)!
|
28
|
+
- [PR #748](https://github.com/twilio/twilio-ruby/pull/748): removing ruby-head from CI. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
|
29
|
+
|
30
|
+
**Api**
|
31
|
+
- Added several usage category enums to `usage_record` API
|
32
|
+
|
33
|
+
**Numbers**
|
34
|
+
- Update the porting documentation
|
35
|
+
|
36
|
+
**Verify**
|
37
|
+
- Update `ienum` type for Channels in Verify Attempts API
|
38
|
+
|
39
|
+
|
4
40
|
[2025-05-13] Version 7.6.1
|
5
41
|
--------------------------
|
6
42
|
**Accounts**
|
data/README.md
CHANGED
@@ -39,13 +39,13 @@ 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', '~> 7.6.
|
42
|
+
gem 'twilio-ruby', '~> 7.6.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 7.6.
|
48
|
+
gem install twilio-ruby -v 7.6.3
|
49
49
|
```
|
50
50
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
@@ -19,8 +19,8 @@ module Twilio
|
|
19
19
|
|
20
20
|
def fetch_access_token
|
21
21
|
client = Twilio::REST::Client.new
|
22
|
-
token_instance = client.
|
23
|
-
|
22
|
+
token_instance = client.iam.v1.token.create(grant_type: @grant_type,
|
23
|
+
client_id: @client_id, client_secret: @client_secret)
|
24
24
|
token_instance.access_token
|
25
25
|
end
|
26
26
|
end
|
@@ -19,8 +19,8 @@ module Twilio
|
|
19
19
|
|
20
20
|
def fetch_access_token
|
21
21
|
client = Twilio::REST::Client.new
|
22
|
-
token_instance = client.
|
23
|
-
|
22
|
+
token_instance = client.iam.v1.token.create(grant_type: @grant_type,
|
23
|
+
client_id: @client_id, client_secret: @client_secret)
|
24
24
|
token_instance.access_token
|
25
25
|
end
|
26
26
|
end
|
@@ -181,8 +181,8 @@ module Twilio
|
|
181
181
|
'voice_fallback_method' => payload['voice_fallback_method'],
|
182
182
|
'voice_fallback_url' => payload['voice_fallback_url'],
|
183
183
|
'voice_caller_id_lookup' => payload['voice_caller_id_lookup'],
|
184
|
-
'date_created' => payload['date_created'],
|
185
|
-
'date_updated' => payload['date_updated'],
|
184
|
+
'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
|
185
|
+
'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
|
186
186
|
'sms_fallback_method' => payload['sms_fallback_method'],
|
187
187
|
'sms_fallback_url' => payload['sms_fallback_url'],
|
188
188
|
'sms_method' => payload['sms_method'],
|
@@ -257,13 +257,13 @@ module Twilio
|
|
257
257
|
end
|
258
258
|
|
259
259
|
##
|
260
|
-
# @return [
|
260
|
+
# @return [Time] The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
261
261
|
def date_created
|
262
262
|
@properties['date_created']
|
263
263
|
end
|
264
264
|
|
265
265
|
##
|
266
|
-
# @return [
|
266
|
+
# @return [Time] The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
267
267
|
def date_updated
|
268
268
|
@properties['date_updated']
|
269
269
|
end
|
@@ -299,7 +299,7 @@ module Twilio
|
|
299
299
|
end
|
300
300
|
|
301
301
|
##
|
302
|
-
# @return [
|
302
|
+
# @return [Hash] The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`.
|
303
303
|
def capabilities
|
304
304
|
@properties['capabilities']
|
305
305
|
end
|
@@ -428,7 +428,7 @@ module Twilio
|
|
428
428
|
end
|
429
429
|
|
430
430
|
##
|
431
|
-
# @return [String] The number of channels in the final recording file. Can be: `1` or `2`.
|
431
|
+
# @return [String] The number of channels in the final recording file. Can be: `1` or `2`. Default: `1`.
|
432
432
|
def channels
|
433
433
|
@properties['channels']
|
434
434
|
end
|
@@ -219,6 +219,7 @@ module Twilio
|
|
219
219
|
# Lists KnowledgeInstance records from the API as a list.
|
220
220
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
221
221
|
# memory before returning.
|
222
|
+
# @param [String] tags Json array of tag and value pairs for tag filtering.
|
222
223
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
223
224
|
# guarantees to never return more than limit. Default is no limit
|
224
225
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -226,8 +227,9 @@ module Twilio
|
|
226
227
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
227
228
|
# efficient page size, i.e. min(limit, 1000)
|
228
229
|
# @return [Array] Array of up to limit results
|
229
|
-
def list(limit: nil, page_size: nil)
|
230
|
+
def list(tags: :unset, limit: nil, page_size: nil)
|
230
231
|
self.stream(
|
232
|
+
tags: tags,
|
231
233
|
limit: limit,
|
232
234
|
page_size: page_size
|
233
235
|
).entries
|
@@ -237,6 +239,7 @@ module Twilio
|
|
237
239
|
# Streams Instance records from the API as an Enumerable.
|
238
240
|
# This operation lazily loads records as efficiently as possible until the limit
|
239
241
|
# is reached.
|
242
|
+
# @param [String] tags Json array of tag and value pairs for tag filtering.
|
240
243
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
241
244
|
# guarantees to never return more than limit. Default is no limit
|
242
245
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -244,10 +247,11 @@ module Twilio
|
|
244
247
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
245
248
|
# efficient page size, i.e. min(limit, 1000)
|
246
249
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
247
|
-
def stream(limit: nil, page_size: nil)
|
250
|
+
def stream(tags: :unset, limit: nil, page_size: nil)
|
248
251
|
limits = @version.read_limits(limit, page_size)
|
249
252
|
|
250
253
|
page = self.page(
|
254
|
+
tags: tags,
|
251
255
|
page_size: limits[:page_size], )
|
252
256
|
|
253
257
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
@@ -270,12 +274,14 @@ module Twilio
|
|
270
274
|
##
|
271
275
|
# Retrieve a single page of KnowledgeInstance records from the API.
|
272
276
|
# Request is executed immediately.
|
277
|
+
# @param [String] tags Json array of tag and value pairs for tag filtering.
|
273
278
|
# @param [String] page_token PageToken provided by the API
|
274
279
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
275
280
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
276
281
|
# @return [Page] Page of KnowledgeInstance
|
277
|
-
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
282
|
+
def page(tags: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
278
283
|
params = Twilio::Values.of({
|
284
|
+
'Tags' => tags,
|
279
285
|
'PageToken' => page_token,
|
280
286
|
'Page' => page_number,
|
281
287
|
'PageSize' => page_size,
|
@@ -66,6 +66,7 @@ module Twilio
|
|
66
66
|
# Lists DestinationAlphaSenderInstance records from the API as a list.
|
67
67
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
68
68
|
# memory before returning.
|
69
|
+
# @param [String] iso_country_code Optional filter to return only alphanumeric sender IDs associated with the specified two-character ISO country code.
|
69
70
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
70
71
|
# guarantees to never return more than limit. Default is no limit
|
71
72
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -73,8 +74,9 @@ module Twilio
|
|
73
74
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
74
75
|
# efficient page size, i.e. min(limit, 1000)
|
75
76
|
# @return [Array] Array of up to limit results
|
76
|
-
def list(limit: nil, page_size: nil)
|
77
|
+
def list(iso_country_code: :unset, limit: nil, page_size: nil)
|
77
78
|
self.stream(
|
79
|
+
iso_country_code: iso_country_code,
|
78
80
|
limit: limit,
|
79
81
|
page_size: page_size
|
80
82
|
).entries
|
@@ -84,6 +86,7 @@ module Twilio
|
|
84
86
|
# Streams Instance records from the API as an Enumerable.
|
85
87
|
# This operation lazily loads records as efficiently as possible until the limit
|
86
88
|
# is reached.
|
89
|
+
# @param [String] iso_country_code Optional filter to return only alphanumeric sender IDs associated with the specified two-character ISO country code.
|
87
90
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
88
91
|
# guarantees to never return more than limit. Default is no limit
|
89
92
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -91,10 +94,11 @@ module Twilio
|
|
91
94
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
92
95
|
# efficient page size, i.e. min(limit, 1000)
|
93
96
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
94
|
-
def stream(limit: nil, page_size: nil)
|
97
|
+
def stream(iso_country_code: :unset, limit: nil, page_size: nil)
|
95
98
|
limits = @version.read_limits(limit, page_size)
|
96
99
|
|
97
100
|
page = self.page(
|
101
|
+
iso_country_code: iso_country_code,
|
98
102
|
page_size: limits[:page_size], )
|
99
103
|
|
100
104
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
@@ -117,12 +121,14 @@ module Twilio
|
|
117
121
|
##
|
118
122
|
# Retrieve a single page of DestinationAlphaSenderInstance records from the API.
|
119
123
|
# Request is executed immediately.
|
124
|
+
# @param [String] iso_country_code Optional filter to return only alphanumeric sender IDs associated with the specified two-character ISO country code.
|
120
125
|
# @param [String] page_token PageToken provided by the API
|
121
126
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
122
127
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
123
128
|
# @return [Page] Page of DestinationAlphaSenderInstance
|
124
|
-
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
129
|
+
def page(iso_country_code: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
125
130
|
params = Twilio::Values.of({
|
131
|
+
'IsoCountryCode' => iso_country_code,
|
126
132
|
'PageToken' => page_token,
|
127
133
|
'Page' => page_number,
|
128
134
|
'PageSize' => page_size,
|
@@ -19,38 +19,6 @@ module Twilio
|
|
19
19
|
class V2 < Version
|
20
20
|
class ChannelsSenderList < ListResource
|
21
21
|
|
22
|
-
class MessagingV2ChannelsSenderProfileEmails
|
23
|
-
# @param [email]: [String] The email of the sender.
|
24
|
-
# @param [label]: [String] The label of the sender.
|
25
|
-
attr_accessor :email, :label
|
26
|
-
def initialize(payload)
|
27
|
-
@email = payload["email"]
|
28
|
-
@label = payload["label"]
|
29
|
-
end
|
30
|
-
def to_json(options = {})
|
31
|
-
{
|
32
|
-
"email": @email,
|
33
|
-
"label": @label,
|
34
|
-
}.to_json(options)
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
class MessagingV2ChannelsSenderProfileWebsites
|
39
|
-
# @param [label]: [String] The label of the sender.
|
40
|
-
# @param [website]: [String] The website of the sender.
|
41
|
-
attr_accessor :label, :website
|
42
|
-
def initialize(payload)
|
43
|
-
@label = payload["label"]
|
44
|
-
@website = payload["website"]
|
45
|
-
end
|
46
|
-
def to_json(options = {})
|
47
|
-
{
|
48
|
-
"label": @label,
|
49
|
-
"website": @website,
|
50
|
-
}.to_json(options)
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
22
|
class MessagingV2ChannelsSenderRequestsCreate
|
55
23
|
# @param [sender_id]: [String] The ID of this Sender prefixed with the channel, e.g., `whatsapp:E.164`
|
56
24
|
# @param [configuration]: [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration]
|
@@ -93,38 +61,6 @@ module Twilio
|
|
93
61
|
end
|
94
62
|
|
95
63
|
|
96
|
-
class MessagingV2ChannelsSenderProfileEmails
|
97
|
-
# @param [email]: [String] The email of the sender.
|
98
|
-
# @param [label]: [String] The label of the sender.
|
99
|
-
attr_accessor :email, :label
|
100
|
-
def initialize(payload)
|
101
|
-
@email = payload["email"]
|
102
|
-
@label = payload["label"]
|
103
|
-
end
|
104
|
-
def to_json(options = {})
|
105
|
-
{
|
106
|
-
"email": @email,
|
107
|
-
"label": @label,
|
108
|
-
}.to_json(options)
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
class MessagingV2ChannelsSenderProfileWebsites
|
113
|
-
# @param [label]: [String] The label of the sender.
|
114
|
-
# @param [website]: [String] The website of the sender.
|
115
|
-
attr_accessor :label, :website
|
116
|
-
def initialize(payload)
|
117
|
-
@label = payload["label"]
|
118
|
-
@website = payload["website"]
|
119
|
-
end
|
120
|
-
def to_json(options = {})
|
121
|
-
{
|
122
|
-
"label": @label,
|
123
|
-
"website": @website,
|
124
|
-
}.to_json(options)
|
125
|
-
end
|
126
|
-
end
|
127
|
-
|
128
64
|
class MessagingV2ChannelsSenderRequestsCreate
|
129
65
|
# @param [sender_id]: [String] The ID of this Sender prefixed with the channel, e.g., `whatsapp:E.164`
|
130
66
|
# @param [configuration]: [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration]
|
@@ -220,19 +220,19 @@ module Twilio
|
|
220
220
|
end
|
221
221
|
|
222
222
|
##
|
223
|
-
# @return [Date] Target date to port the number. We cannot guarantee that this date will be honored by the other carriers, please work with Ops to get a confirmation of the firm order commitment (FOC) date. Expected format is ISO Local Date, example: ‘2011-12-03`. This date must be at least 7 days in the future for US ports and 10 days in the future for Japanese ports.
|
223
|
+
# @return [Date] Target date to port the number. We cannot guarantee that this date will be honored by the other carriers, please work with Ops to get a confirmation of the firm order commitment (FOC) date. Expected format is ISO Local Date, example: ‘2011-12-03`. This date must be at least 7 days in the future for US ports and 10 days in the future for Japanese ports. We can't guarantee the exact date and time, as this depends on the losing carrier
|
224
224
|
def target_port_in_date
|
225
225
|
@properties['target_port_in_date']
|
226
226
|
end
|
227
227
|
|
228
228
|
##
|
229
|
-
# @return [String] The earliest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00'.
|
229
|
+
# @return [String] The earliest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00'. We can't guarantee the exact date and time, as this depends on the losing carrier
|
230
230
|
def target_port_in_time_range_start
|
231
231
|
@properties['target_port_in_time_range_start']
|
232
232
|
end
|
233
233
|
|
234
234
|
##
|
235
|
-
# @return [String] The latest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00'.
|
235
|
+
# @return [String] The latest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00'. We can't guarantee the exact date and time, as this depends on the losing carrier
|
236
236
|
def target_port_in_time_range_end
|
237
237
|
@properties['target_port_in_time_range_end']
|
238
238
|
end
|
@@ -580,7 +580,7 @@ module Twilio
|
|
580
580
|
end
|
581
581
|
|
582
582
|
##
|
583
|
-
# @return [String] The name that appears in the body of your verification messages. It can be up to 30 characters long and can include letters, numbers, spaces, dashes, underscores. Phone numbers, special characters or links are NOT allowed. **This value should not contain PII.**
|
583
|
+
# @return [String] The name that appears in the body of your verification messages. It can be up to 30 characters long and can include letters, numbers, spaces, dashes, underscores. Phone numbers, special characters or links are NOT allowed. It cannot contain more than 4 (consecutive or non-consecutive) digits. **This value should not contain PII.**
|
584
584
|
def friendly_name
|
585
585
|
@properties['friendly_name']
|
586
586
|
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: 7.6.
|
4
|
+
version: 7.6.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: 2025-
|
11
|
+
date: 2025-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|