twilio-ruby 7.6.1 → 7.6.2
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 +16 -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/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/numbers/v1/{porting_webhook_configuration_fetch.rb → webhook.rb} +20 -20
- data/lib/twilio-ruby/rest/numbers/v1.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service.rb +1 -1
- 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: 1f321f5183bb9ab541e4744c4a2a213cc0946181
|
4
|
+
data.tar.gz: e7985074741cbbf76e57097bad449f6414438285
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1d83e1a70972240293d5515935f372a84a7bdf226da8f5529707f331abd74024039105156a3288f17d78ed2bb2862fb0e06aa1dde66d283b86dd7e8e6c88997
|
7
|
+
data.tar.gz: 6bd6e7ca9ea2d99e9863f3859aaea80ea3e015988be4f39d4951a06233fc52665715ca8e54b01899a8f22f47dc156ed00435de5f5942a0e52499f5f996359746
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,22 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2025-05-29] Version 7.6.2
|
5
|
+
--------------------------
|
6
|
+
**Library - Chore**
|
7
|
+
- [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)!
|
8
|
+
- [PR #748](https://github.com/twilio/twilio-ruby/pull/748): removing ruby-head from CI. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
|
9
|
+
|
10
|
+
**Api**
|
11
|
+
- Added several usage category enums to `usage_record` API
|
12
|
+
|
13
|
+
**Numbers**
|
14
|
+
- Update the porting documentation
|
15
|
+
|
16
|
+
**Verify**
|
17
|
+
- Update `ienum` type for Channels in Verify Attempts API
|
18
|
+
|
19
|
+
|
4
20
|
[2025-05-13] Version 7.6.1
|
5
21
|
--------------------------
|
6
22
|
**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.2'
|
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.2
|
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
|
@@ -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
|
@@ -17,12 +17,12 @@ module Twilio
|
|
17
17
|
module REST
|
18
18
|
class Numbers < NumbersBase
|
19
19
|
class V1 < Version
|
20
|
-
class
|
20
|
+
class WebhookList < ListResource
|
21
21
|
|
22
22
|
##
|
23
|
-
# Initialize the
|
23
|
+
# Initialize the WebhookList
|
24
24
|
# @param [Version] version Version that contains the resource
|
25
|
-
# @return [
|
25
|
+
# @return [WebhookList] WebhookList
|
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 WebhookInstance
|
35
|
+
# @return [WebhookInstance] Fetched WebhookInstance
|
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
|
+
WebhookInstance.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.WebhookList>'
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
class
|
60
|
+
class WebhookPage < Page
|
61
61
|
##
|
62
|
-
# Initialize the
|
62
|
+
# Initialize the WebhookPage
|
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 [WebhookPage] WebhookPage
|
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 WebhookInstance
|
76
76
|
# @param [Hash] payload Payload response from the API
|
77
|
-
# @return [
|
77
|
+
# @return [WebhookInstance] WebhookInstance
|
78
78
|
def get_instance(payload)
|
79
|
-
|
79
|
+
WebhookInstance.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.WebhookPage>'
|
86
86
|
end
|
87
87
|
end
|
88
|
-
class
|
88
|
+
class WebhookInstance < InstanceResource
|
89
89
|
##
|
90
|
-
# Initialize the
|
90
|
+
# Initialize the WebhookInstance
|
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 Webhook
|
95
95
|
# resource.
|
96
96
|
# @param [String] sid The SID of the Call resource to fetch.
|
97
|
-
# @return [
|
97
|
+
# @return [WebhookInstance] WebhookInstance
|
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.WebhookInstance>"
|
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.WebhookInstance>"
|
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
|
32
31
|
@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
|
-
##
|
143
138
|
# @return [Twilio::REST::Numbers::V1::SigningRequestConfigurationList]
|
144
139
|
def signing_request_configurations
|
145
140
|
@signing_request_configurations ||= SigningRequestConfigurationList.new self
|
146
141
|
end
|
147
142
|
##
|
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>';
|
@@ -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.2
|
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-05-
|
11
|
+
date: 2025-05-29 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
|
637
636
|
- 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
|