twilio-ruby 7.4.5 → 7.5.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/.dockerignore +1 -1
- data/CHANGES.md +21 -0
- data/Dockerfile +2 -1
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +9 -3
- data/lib/twilio-ruby/rest/iam/v1/{key.rb → new_api_key.rb} +20 -20
- data/lib/twilio-ruby/rest/iam/v1.rb +4 -4
- 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: 932484fd792c75c2d29c62c1c8962dc0c5c40520
|
4
|
+
data.tar.gz: 3170c41d518dac105b26dc928f3921b0c0ed4916
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18f81f4d3b8d1fa95c7fea25cc2ed52b1e2ab9f92985ea94ce89999ef0608e1791725b0ea8939eff28a53fd0cfec5138a10c14224d7260e3cfb74d44cb9064d8
|
7
|
+
data.tar.gz: baa1cb4cd8f6930c2518c2226e9ea2ee4967468570a3c5af2c3b8ae3eae5ca20f58817f33e34a4ba39e83810eac58f0468acb1bf30c527c0079b0be08b19cca4
|
data/.dockerignore
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Gemfile.lock
|
1
|
+
Gemfile.lock
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,27 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2025-03-11] Version 7.5.0
|
5
|
+
--------------------------
|
6
|
+
**Library - Feature**
|
7
|
+
- [PR #745](https://github.com/twilio/twilio-ruby/pull/745): MVR ready. Thanks to [@manisha1997](https://github.com/manisha1997)!
|
8
|
+
|
9
|
+
**Library - Chore**
|
10
|
+
- [PR #744](https://github.com/twilio/twilio-ruby/pull/744): create image with required files. Thanks to [@sbansla](https://github.com/sbansla)!
|
11
|
+
|
12
|
+
**Api**
|
13
|
+
- Add the missing `emergency_enabled` field for `Address Service` endpoints
|
14
|
+
|
15
|
+
**Messaging**
|
16
|
+
- Add missing enums for A2P and TF
|
17
|
+
|
18
|
+
**Numbers**
|
19
|
+
- add missing enum values to hosted_number_order_status
|
20
|
+
|
21
|
+
**Twiml**
|
22
|
+
- Convert Twiml Attribute `speechModel` of type enum to string **(breaking change)**
|
23
|
+
|
24
|
+
|
4
25
|
[2025-02-20] Version 7.4.5
|
5
26
|
--------------------------
|
6
27
|
**Flex**
|
data/Dockerfile
CHANGED
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.
|
42
|
+
gem 'twilio-ruby', '~> 7.5.0'
|
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.
|
48
|
+
gem install twilio-ruby -v 7.5.0
|
49
49
|
```
|
50
50
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
@@ -92,6 +92,7 @@ module Twilio
|
|
92
92
|
# memory before returning.
|
93
93
|
# @param [String] customer_name The `customer_name` of the Address resources to read.
|
94
94
|
# @param [String] friendly_name The string that identifies the Address resources to read.
|
95
|
+
# @param [Boolean] emergency_enabled Whether the address can be associated to a number for emergency calling.
|
95
96
|
# @param [String] iso_country The ISO country code of the Address resources to read.
|
96
97
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
97
98
|
# guarantees to never return more than limit. Default is no limit
|
@@ -100,10 +101,11 @@ module Twilio
|
|
100
101
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
101
102
|
# efficient page size, i.e. min(limit, 1000)
|
102
103
|
# @return [Array] Array of up to limit results
|
103
|
-
def list(customer_name: :unset, friendly_name: :unset, iso_country: :unset, limit: nil, page_size: nil)
|
104
|
+
def list(customer_name: :unset, friendly_name: :unset, emergency_enabled: :unset, iso_country: :unset, limit: nil, page_size: nil)
|
104
105
|
self.stream(
|
105
106
|
customer_name: customer_name,
|
106
107
|
friendly_name: friendly_name,
|
108
|
+
emergency_enabled: emergency_enabled,
|
107
109
|
iso_country: iso_country,
|
108
110
|
limit: limit,
|
109
111
|
page_size: page_size
|
@@ -116,6 +118,7 @@ module Twilio
|
|
116
118
|
# is reached.
|
117
119
|
# @param [String] customer_name The `customer_name` of the Address resources to read.
|
118
120
|
# @param [String] friendly_name The string that identifies the Address resources to read.
|
121
|
+
# @param [Boolean] emergency_enabled Whether the address can be associated to a number for emergency calling.
|
119
122
|
# @param [String] iso_country The ISO country code of the Address resources to read.
|
120
123
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
121
124
|
# guarantees to never return more than limit. Default is no limit
|
@@ -124,12 +127,13 @@ module Twilio
|
|
124
127
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
125
128
|
# efficient page size, i.e. min(limit, 1000)
|
126
129
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
127
|
-
def stream(customer_name: :unset, friendly_name: :unset, iso_country: :unset, limit: nil, page_size: nil)
|
130
|
+
def stream(customer_name: :unset, friendly_name: :unset, emergency_enabled: :unset, iso_country: :unset, limit: nil, page_size: nil)
|
128
131
|
limits = @version.read_limits(limit, page_size)
|
129
132
|
|
130
133
|
page = self.page(
|
131
134
|
customer_name: customer_name,
|
132
135
|
friendly_name: friendly_name,
|
136
|
+
emergency_enabled: emergency_enabled,
|
133
137
|
iso_country: iso_country,
|
134
138
|
page_size: limits[:page_size], )
|
135
139
|
|
@@ -155,15 +159,17 @@ module Twilio
|
|
155
159
|
# Request is executed immediately.
|
156
160
|
# @param [String] customer_name The `customer_name` of the Address resources to read.
|
157
161
|
# @param [String] friendly_name The string that identifies the Address resources to read.
|
162
|
+
# @param [Boolean] emergency_enabled Whether the address can be associated to a number for emergency calling.
|
158
163
|
# @param [String] iso_country The ISO country code of the Address resources to read.
|
159
164
|
# @param [String] page_token PageToken provided by the API
|
160
165
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
161
166
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
162
167
|
# @return [Page] Page of AddressInstance
|
163
|
-
def page(customer_name: :unset, friendly_name: :unset, iso_country: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
168
|
+
def page(customer_name: :unset, friendly_name: :unset, emergency_enabled: :unset, iso_country: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
164
169
|
params = Twilio::Values.of({
|
165
170
|
'CustomerName' => customer_name,
|
166
171
|
'FriendlyName' => friendly_name,
|
172
|
+
'EmergencyEnabled' => emergency_enabled,
|
167
173
|
'IsoCountry' => iso_country,
|
168
174
|
'PageToken' => page_token,
|
169
175
|
'Page' => page_number,
|
@@ -17,12 +17,12 @@ module Twilio
|
|
17
17
|
module REST
|
18
18
|
class Iam < IamBase
|
19
19
|
class V1 < Version
|
20
|
-
class
|
20
|
+
class NewApiKeyList < ListResource
|
21
21
|
|
22
22
|
##
|
23
|
-
# Initialize the
|
23
|
+
# Initialize the NewApiKeyList
|
24
24
|
# @param [Version] version Version that contains the resource
|
25
|
-
# @return [
|
25
|
+
# @return [NewApiKeyList] NewApiKeyList
|
26
26
|
def initialize(version)
|
27
27
|
super(version)
|
28
28
|
# Path Solution
|
@@ -31,12 +31,12 @@ module Twilio
|
|
31
31
|
|
32
32
|
end
|
33
33
|
##
|
34
|
-
# Create the
|
34
|
+
# Create the NewApiKeyInstance
|
35
35
|
# @param [String] account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
|
36
36
|
# @param [String] friendly_name A descriptive string that you create to describe the resource. It can be up to 64 characters long.
|
37
37
|
# @param [Keytype] key_type
|
38
38
|
# @param [Object] policy The \\\\`Policy\\\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys).
|
39
|
-
# @return [
|
39
|
+
# @return [NewApiKeyInstance] Created NewApiKeyInstance
|
40
40
|
def create(
|
41
41
|
account_sid: nil,
|
42
42
|
friendly_name: :unset,
|
@@ -58,7 +58,7 @@ module Twilio
|
|
58
58
|
|
59
59
|
|
60
60
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
61
|
-
|
61
|
+
NewApiKeyInstance.new(
|
62
62
|
@version,
|
63
63
|
payload,
|
64
64
|
)
|
@@ -69,17 +69,17 @@ module Twilio
|
|
69
69
|
|
70
70
|
# Provide a user friendly representation
|
71
71
|
def to_s
|
72
|
-
'#<Twilio.Iam.V1.
|
72
|
+
'#<Twilio.Iam.V1.NewApiKeyList>'
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
-
class
|
76
|
+
class NewApiKeyPage < Page
|
77
77
|
##
|
78
|
-
# Initialize the
|
78
|
+
# Initialize the NewApiKeyPage
|
79
79
|
# @param [Version] version Version that contains the resource
|
80
80
|
# @param [Response] response Response from the API
|
81
81
|
# @param [Hash] solution Path solution for the resource
|
82
|
-
# @return [
|
82
|
+
# @return [NewApiKeyPage] NewApiKeyPage
|
83
83
|
def initialize(version, response, solution)
|
84
84
|
super(version, response)
|
85
85
|
|
@@ -88,29 +88,29 @@ module Twilio
|
|
88
88
|
end
|
89
89
|
|
90
90
|
##
|
91
|
-
# Build an instance of
|
91
|
+
# Build an instance of NewApiKeyInstance
|
92
92
|
# @param [Hash] payload Payload response from the API
|
93
|
-
# @return [
|
93
|
+
# @return [NewApiKeyInstance] NewApiKeyInstance
|
94
94
|
def get_instance(payload)
|
95
|
-
|
95
|
+
NewApiKeyInstance.new(@version, payload)
|
96
96
|
end
|
97
97
|
|
98
98
|
##
|
99
99
|
# Provide a user friendly representation
|
100
100
|
def to_s
|
101
|
-
'<Twilio.Iam.V1.
|
101
|
+
'<Twilio.Iam.V1.NewApiKeyPage>'
|
102
102
|
end
|
103
103
|
end
|
104
|
-
class
|
104
|
+
class NewApiKeyInstance < InstanceResource
|
105
105
|
##
|
106
|
-
# Initialize the
|
106
|
+
# Initialize the NewApiKeyInstance
|
107
107
|
# @param [Version] version Version that contains the resource
|
108
108
|
# @param [Hash] payload payload that contains response from Twilio
|
109
109
|
# @param [String] account_sid The SID of the
|
110
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this
|
110
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this NewApiKey
|
111
111
|
# resource.
|
112
112
|
# @param [String] sid The SID of the Call resource to fetch.
|
113
|
-
# @return [
|
113
|
+
# @return [NewApiKeyInstance] NewApiKeyInstance
|
114
114
|
def initialize(version, payload )
|
115
115
|
super(version)
|
116
116
|
|
@@ -165,13 +165,13 @@ module Twilio
|
|
165
165
|
##
|
166
166
|
# Provide a user friendly representation
|
167
167
|
def to_s
|
168
|
-
"<Twilio.Iam.V1.
|
168
|
+
"<Twilio.Iam.V1.NewApiKeyInstance>"
|
169
169
|
end
|
170
170
|
|
171
171
|
##
|
172
172
|
# Provide a detailed, user friendly representation
|
173
173
|
def inspect
|
174
|
-
"<Twilio.Iam.V1.
|
174
|
+
"<Twilio.Iam.V1.NewApiKeyInstance>"
|
175
175
|
end
|
176
176
|
end
|
177
177
|
|
@@ -23,7 +23,7 @@ module Twilio
|
|
23
23
|
@version = 'v1'
|
24
24
|
@api_key = nil
|
25
25
|
@get_api_keys = nil
|
26
|
-
@
|
26
|
+
@new_api_key = nil
|
27
27
|
end
|
28
28
|
|
29
29
|
##
|
@@ -46,9 +46,9 @@ module Twilio
|
|
46
46
|
@get_api_keys ||= GetApiKeysList.new self
|
47
47
|
end
|
48
48
|
##
|
49
|
-
# @return [Twilio::REST::Iam::V1::
|
50
|
-
def
|
51
|
-
@
|
49
|
+
# @return [Twilio::REST::Iam::V1::NewApiKeyList]
|
50
|
+
def new_api_key
|
51
|
+
@new_api_key ||= NewApiKeyList.new self
|
52
52
|
end
|
53
53
|
##
|
54
54
|
# Provide a user friendly representation
|
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.
|
4
|
+
version: 7.5.0
|
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-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -525,7 +525,7 @@ files:
|
|
525
525
|
- lib/twilio-ruby/rest/iam/v1.rb
|
526
526
|
- lib/twilio-ruby/rest/iam/v1/api_key.rb
|
527
527
|
- lib/twilio-ruby/rest/iam/v1/get_api_keys.rb
|
528
|
-
- lib/twilio-ruby/rest/iam/v1/
|
528
|
+
- lib/twilio-ruby/rest/iam/v1/new_api_key.rb
|
529
529
|
- lib/twilio-ruby/rest/iam_base.rb
|
530
530
|
- lib/twilio-ruby/rest/insights.rb
|
531
531
|
- lib/twilio-ruby/rest/insights/v1.rb
|