twilio-ruby 7.6.2 → 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 +20 -0
- data/README.md +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/numbers/v1/{webhook.rb → porting_webhook_configuration_fetch.rb} +20 -20
- data/lib/twilio-ruby/rest/numbers/v1.rb +6 -6
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +3 -3
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,26 @@
|
|
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
|
+
|
4
24
|
[2025-05-29] Version 7.6.2
|
5
25
|
--------------------------
|
6
26
|
**Library - Chore**
|
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:
|
@@ -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,
|
@@ -17,12 +17,12 @@ module Twilio
|
|
17
17
|
module REST
|
18
18
|
class Numbers < NumbersBase
|
19
19
|
class V1 < Version
|
20
|
-
class
|
20
|
+
class PortingWebhookConfigurationFetchList < ListResource
|
21
21
|
|
22
22
|
##
|
23
|
-
# Initialize the
|
23
|
+
# Initialize the PortingWebhookConfigurationFetchList
|
24
24
|
# @param [Version] version Version that contains the resource
|
25
|
-
# @return [
|
25
|
+
# @return [PortingWebhookConfigurationFetchList] PortingWebhookConfigurationFetchList
|
26
26
|
def initialize(version)
|
27
27
|
super(version)
|
28
28
|
# Path Solution
|
@@ -31,8 +31,8 @@ module Twilio
|
|
31
31
|
|
32
32
|
end
|
33
33
|
##
|
34
|
-
# Fetch the
|
35
|
-
# @return [
|
34
|
+
# Fetch the PortingWebhookConfigurationFetchInstance
|
35
|
+
# @return [PortingWebhookConfigurationFetchInstance] Fetched PortingWebhookConfigurationFetchInstance
|
36
36
|
def fetch
|
37
37
|
|
38
38
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
@@ -42,7 +42,7 @@ module Twilio
|
|
42
42
|
|
43
43
|
|
44
44
|
payload = @version.fetch('GET', @uri, headers: headers)
|
45
|
-
|
45
|
+
PortingWebhookConfigurationFetchInstance.new(
|
46
46
|
@version,
|
47
47
|
payload,
|
48
48
|
)
|
@@ -53,17 +53,17 @@ module Twilio
|
|
53
53
|
|
54
54
|
# Provide a user friendly representation
|
55
55
|
def to_s
|
56
|
-
'#<Twilio.Numbers.V1.
|
56
|
+
'#<Twilio.Numbers.V1.PortingWebhookConfigurationFetchList>'
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
class
|
60
|
+
class PortingWebhookConfigurationFetchPage < Page
|
61
61
|
##
|
62
|
-
# Initialize the
|
62
|
+
# Initialize the PortingWebhookConfigurationFetchPage
|
63
63
|
# @param [Version] version Version that contains the resource
|
64
64
|
# @param [Response] response Response from the API
|
65
65
|
# @param [Hash] solution Path solution for the resource
|
66
|
-
# @return [
|
66
|
+
# @return [PortingWebhookConfigurationFetchPage] PortingWebhookConfigurationFetchPage
|
67
67
|
def initialize(version, response, solution)
|
68
68
|
super(version, response)
|
69
69
|
|
@@ -72,29 +72,29 @@ module Twilio
|
|
72
72
|
end
|
73
73
|
|
74
74
|
##
|
75
|
-
# Build an instance of
|
75
|
+
# Build an instance of PortingWebhookConfigurationFetchInstance
|
76
76
|
# @param [Hash] payload Payload response from the API
|
77
|
-
# @return [
|
77
|
+
# @return [PortingWebhookConfigurationFetchInstance] PortingWebhookConfigurationFetchInstance
|
78
78
|
def get_instance(payload)
|
79
|
-
|
79
|
+
PortingWebhookConfigurationFetchInstance.new(@version, payload)
|
80
80
|
end
|
81
81
|
|
82
82
|
##
|
83
83
|
# Provide a user friendly representation
|
84
84
|
def to_s
|
85
|
-
'<Twilio.Numbers.V1.
|
85
|
+
'<Twilio.Numbers.V1.PortingWebhookConfigurationFetchPage>'
|
86
86
|
end
|
87
87
|
end
|
88
|
-
class
|
88
|
+
class PortingWebhookConfigurationFetchInstance < InstanceResource
|
89
89
|
##
|
90
|
-
# Initialize the
|
90
|
+
# Initialize the PortingWebhookConfigurationFetchInstance
|
91
91
|
# @param [Version] version Version that contains the resource
|
92
92
|
# @param [Hash] payload payload that contains response from Twilio
|
93
93
|
# @param [String] account_sid The SID of the
|
94
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this
|
94
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this PortingWebhookConfigurationFetch
|
95
95
|
# resource.
|
96
96
|
# @param [String] sid The SID of the Call resource to fetch.
|
97
|
-
# @return [
|
97
|
+
# @return [PortingWebhookConfigurationFetchInstance] PortingWebhookConfigurationFetchInstance
|
98
98
|
def initialize(version, payload )
|
99
99
|
super(version)
|
100
100
|
|
@@ -149,13 +149,13 @@ module Twilio
|
|
149
149
|
##
|
150
150
|
# Provide a user friendly representation
|
151
151
|
def to_s
|
152
|
-
"<Twilio.Numbers.V1.
|
152
|
+
"<Twilio.Numbers.V1.PortingWebhookConfigurationFetchInstance>"
|
153
153
|
end
|
154
154
|
|
155
155
|
##
|
156
156
|
# Provide a detailed, user friendly representation
|
157
157
|
def inspect
|
158
|
-
"<Twilio.Numbers.V1.
|
158
|
+
"<Twilio.Numbers.V1.PortingWebhookConfigurationFetchInstance>"
|
159
159
|
end
|
160
160
|
end
|
161
161
|
|
@@ -28,8 +28,8 @@ module Twilio
|
|
28
28
|
@porting_portabilities = nil
|
29
29
|
@porting_webhook_configurations = nil
|
30
30
|
@porting_webhook_configurations_delete = nil
|
31
|
+
@porting_webhook_configuration_fetch = nil
|
31
32
|
@signing_request_configurations = nil
|
32
|
-
@webhook = nil
|
33
33
|
end
|
34
34
|
|
35
35
|
##
|
@@ -135,16 +135,16 @@ module Twilio
|
|
135
135
|
end
|
136
136
|
end
|
137
137
|
##
|
138
|
+
# @return [Twilio::REST::Numbers::V1::PortingWebhookConfigurationFetchList]
|
139
|
+
def porting_webhook_configuration_fetch
|
140
|
+
@porting_webhook_configuration_fetch ||= PortingWebhookConfigurationFetchList.new self
|
141
|
+
end
|
142
|
+
##
|
138
143
|
# @return [Twilio::REST::Numbers::V1::SigningRequestConfigurationList]
|
139
144
|
def signing_request_configurations
|
140
145
|
@signing_request_configurations ||= SigningRequestConfigurationList.new self
|
141
146
|
end
|
142
147
|
##
|
143
|
-
# @return [Twilio::REST::Numbers::V1::WebhookList]
|
144
|
-
def webhook
|
145
|
-
@webhook ||= WebhookList.new self
|
146
|
-
end
|
147
|
-
##
|
148
148
|
# Provide a user friendly representation
|
149
149
|
def to_s
|
150
150
|
'<Twilio::REST::Numbers::V1>';
|
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
|
@@ -633,8 +633,8 @@ files:
|
|
633
633
|
- lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
|
634
634
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb
|
635
635
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb
|
636
|
+
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb
|
636
637
|
- lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb
|
637
|
-
- lib/twilio-ruby/rest/numbers/v1/webhook.rb
|
638
638
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
639
639
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document.rb
|
640
640
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb
|