twilio-ruby 7.3.5 → 7.3.6
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 +14 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +1 -1
- 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/preview.rb +0 -9
- 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: a1a3f1f4fdfb7df299967f9d9e23239badb1fc25
|
4
|
+
data.tar.gz: 47201096d6dab5ec943fe866d7cb23f12e47a7e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7976e0014b7ca31a1fa613e36e0d9c8f52f1bdaad39e6b1f70d9bdd669ae6569177119b396aea80bf175a13f6eefeec093ad289b7d2d5c2f208be09a8b4da09c
|
7
|
+
data.tar.gz: f90432f3b93eaee69f089c565f42285df1c68d0d235159d3aaf46dc1e1b1de2b36c7a8b8b79676d94e171d58683bbbed0907531d5b9371bc15c80c585832ddc8
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,20 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2024-11-15] Version 7.3.6
|
5
|
+
--------------------------
|
6
|
+
**Library - Chore**
|
7
|
+
- [PR #732](https://github.com/twilio/twilio-ruby/pull/732): removed preview sync api. Thanks to [@sbansla](https://github.com/sbansla)!
|
8
|
+
|
9
|
+
**Api**
|
10
|
+
- Added `ivr-virtual-agent-custom-voices` and `ivr-virtual-agent-genai` to `usage_record` API.
|
11
|
+
- Add open-api file tag to realtime_transcriptions
|
12
|
+
|
13
|
+
**Taskrouter**
|
14
|
+
- Add `api-tag` property to workers reservation
|
15
|
+
- Add `api-tag` property to task reservation
|
16
|
+
|
17
|
+
|
4
18
|
[2024-10-24] Version 7.3.5
|
5
19
|
--------------------------
|
6
20
|
**Conversations**
|
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.3.
|
42
|
+
gem 'twilio-ruby', '~> 7.3.6'
|
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.3.
|
48
|
+
gem install twilio-ruby -v 7.3.6
|
49
49
|
```
|
50
50
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
@@ -43,7 +43,7 @@ module Twilio
|
|
43
43
|
# @param [String] timers_closed ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
|
44
44
|
# @param [String] bindings_email_address The default email address that will be used when sending outbound emails in this conversation.
|
45
45
|
# @param [String] bindings_email_name The default name that will be used when sending outbound emails in this conversation.
|
46
|
-
# @param [Array[String]] participant The participant to be added to the conversation in JSON format. The
|
46
|
+
# @param [Array[String]] participant The participant to be added to the conversation in JSON format. The JSON object attributes are as parameters in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.
|
47
47
|
# @param [ConversationWithParticipantsEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
|
48
48
|
# @return [ConversationWithParticipantsInstance] Created ConversationWithParticipantsInstance
|
49
49
|
def create(
|
@@ -45,7 +45,7 @@ module Twilio
|
|
45
45
|
# @param [String] timers_closed ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
|
46
46
|
# @param [String] bindings_email_address The default email address that will be used when sending outbound emails in this conversation.
|
47
47
|
# @param [String] bindings_email_name The default name that will be used when sending outbound emails in this conversation.
|
48
|
-
# @param [Array[String]] participant The participant to be added to the conversation in JSON format. The
|
48
|
+
# @param [Array[String]] participant The participant to be added to the conversation in JSON format. The JSON object attributes are as parameters in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.
|
49
49
|
# @param [ServiceConversationWithParticipantsEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
|
50
50
|
# @return [ConversationWithParticipantsInstance] Created ConversationWithParticipantsInstance
|
51
51
|
def create(
|
@@ -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,14 +31,14 @@ 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', })
|
39
39
|
|
40
40
|
payload = @version.fetch('GET', @uri, headers: headers)
|
41
|
-
|
41
|
+
WebhookInstance.new(
|
42
42
|
@version,
|
43
43
|
payload,
|
44
44
|
)
|
@@ -49,17 +49,17 @@ module Twilio
|
|
49
49
|
|
50
50
|
# Provide a user friendly representation
|
51
51
|
def to_s
|
52
|
-
'#<Twilio.Numbers.V1.
|
52
|
+
'#<Twilio.Numbers.V1.WebhookList>'
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
|
-
class
|
56
|
+
class WebhookPage < Page
|
57
57
|
##
|
58
|
-
# Initialize the
|
58
|
+
# Initialize the WebhookPage
|
59
59
|
# @param [Version] version Version that contains the resource
|
60
60
|
# @param [Response] response Response from the API
|
61
61
|
# @param [Hash] solution Path solution for the resource
|
62
|
-
# @return [
|
62
|
+
# @return [WebhookPage] WebhookPage
|
63
63
|
def initialize(version, response, solution)
|
64
64
|
super(version, response)
|
65
65
|
|
@@ -68,29 +68,29 @@ module Twilio
|
|
68
68
|
end
|
69
69
|
|
70
70
|
##
|
71
|
-
# Build an instance of
|
71
|
+
# Build an instance of WebhookInstance
|
72
72
|
# @param [Hash] payload Payload response from the API
|
73
|
-
# @return [
|
73
|
+
# @return [WebhookInstance] WebhookInstance
|
74
74
|
def get_instance(payload)
|
75
|
-
|
75
|
+
WebhookInstance.new(@version, payload)
|
76
76
|
end
|
77
77
|
|
78
78
|
##
|
79
79
|
# Provide a user friendly representation
|
80
80
|
def to_s
|
81
|
-
'<Twilio.Numbers.V1.
|
81
|
+
'<Twilio.Numbers.V1.WebhookPage>'
|
82
82
|
end
|
83
83
|
end
|
84
|
-
class
|
84
|
+
class WebhookInstance < InstanceResource
|
85
85
|
##
|
86
|
-
# Initialize the
|
86
|
+
# Initialize the WebhookInstance
|
87
87
|
# @param [Version] version Version that contains the resource
|
88
88
|
# @param [Hash] payload payload that contains response from Twilio
|
89
89
|
# @param [String] account_sid The SID of the
|
90
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this
|
90
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Webhook
|
91
91
|
# resource.
|
92
92
|
# @param [String] sid The SID of the Call resource to fetch.
|
93
|
-
# @return [
|
93
|
+
# @return [WebhookInstance] WebhookInstance
|
94
94
|
def initialize(version, payload )
|
95
95
|
super(version)
|
96
96
|
|
@@ -145,13 +145,13 @@ module Twilio
|
|
145
145
|
##
|
146
146
|
# Provide a user friendly representation
|
147
147
|
def to_s
|
148
|
-
"<Twilio.Numbers.V1.
|
148
|
+
"<Twilio.Numbers.V1.WebhookInstance>"
|
149
149
|
end
|
150
150
|
|
151
151
|
##
|
152
152
|
# Provide a detailed, user friendly representation
|
153
153
|
def inspect
|
154
|
-
"<Twilio.Numbers.V1.
|
154
|
+
"<Twilio.Numbers.V1.WebhookInstance>"
|
155
155
|
end
|
156
156
|
end
|
157
157
|
|
@@ -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>';
|
@@ -52,15 +52,6 @@ module Twilio
|
|
52
52
|
self.marketplace.installed_add_ons(sid)
|
53
53
|
end
|
54
54
|
|
55
|
-
##
|
56
|
-
# @param [String] sid The sid
|
57
|
-
# @return [Twilio::REST::Preview::Sync::ServiceInstance] if sid was passed.
|
58
|
-
# @return [Twilio::REST::Preview::Sync::ServiceList]
|
59
|
-
def services(sid=:unset)
|
60
|
-
warn "services is deprecated. Use sync.services instead."
|
61
|
-
self.sync.services(sid)
|
62
|
-
end
|
63
|
-
|
64
55
|
##
|
65
56
|
# @param [String] sid The sid
|
66
57
|
# @return [Twilio::REST::Preview::Wireless::CommandInstance] if sid was passed.
|
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.3.
|
4
|
+
version: 7.3.6
|
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: 2024-
|
11
|
+
date: 2024-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -608,8 +608,8 @@ files:
|
|
608
608
|
- lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
|
609
609
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb
|
610
610
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb
|
611
|
-
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb
|
612
611
|
- lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb
|
612
|
+
- lib/twilio-ruby/rest/numbers/v1/webhook.rb
|
613
613
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
614
614
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document.rb
|
615
615
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb
|