twilio-ruby 7.5.1 → 7.6.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/CHANGES.md +27 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +3 -3
- data/lib/twilio-ruby/rest/client.rb +5 -0
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +50 -1
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +232 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +213 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +617 -0
- data/lib/twilio-ruby/rest/knowledge/v1.rb +49 -0
- data/lib/twilio-ruby/rest/knowledge.rb +6 -0
- data/lib/twilio-ruby/rest/knowledge_base.rb +38 -0
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +556 -0
- data/lib/twilio-ruby/rest/messaging/v2.rb +49 -0
- data/lib/twilio-ruby/rest/messaging_base.rb +6 -1
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +1 -1
- 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/rest/studio/v1/flow/engagement/step.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +7 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +6 -0
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +0 -2
- metadata +11 -31
@@ -22,16 +22,21 @@ module Twilio
|
|
22
22
|
@host = "messaging.twilio.com"
|
23
23
|
@port = 443
|
24
24
|
@v1 = nil
|
25
|
+
@v2 = nil
|
25
26
|
end
|
26
27
|
|
27
28
|
def v1
|
28
29
|
@v1 ||= Messaging::V1.new self
|
29
30
|
end
|
30
31
|
|
32
|
+
def v2
|
33
|
+
@v2 ||= Messaging::V2.new self
|
34
|
+
end
|
35
|
+
|
31
36
|
##
|
32
37
|
# Provide a user friendly representation
|
33
38
|
def to_s
|
34
|
-
'<Twilio::REST::Messaging
|
39
|
+
'<Twilio::REST::Messaging>';
|
35
40
|
end
|
36
41
|
end
|
37
42
|
end
|
@@ -295,7 +295,7 @@ module Twilio
|
|
295
295
|
end
|
296
296
|
|
297
297
|
##
|
298
|
-
# @return [String] The SID of the actor that caused the event, if available.
|
298
|
+
# @return [String] The SID of the actor that caused the event, if available. This can be either a User ID (matching the pattern `^US[0-9a-fA-F]{32}$`) or an Account SID (matching the pattern `^AC[0-9a-fA-F]{32}$`). If the actor's SID isn't available, this field will be `null`.
|
299
299
|
def actor_sid
|
300
300
|
@properties['actor_sid']
|
301
301
|
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 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>';
|
@@ -246,6 +246,7 @@ module Twilio
|
|
246
246
|
'engagement_sid' => payload['engagement_sid'],
|
247
247
|
'name' => payload['name'],
|
248
248
|
'context' => payload['context'],
|
249
|
+
'parent_step_sid' => payload['parent_step_sid'],
|
249
250
|
'transitioned_from' => payload['transitioned_from'],
|
250
251
|
'transitioned_to' => payload['transitioned_to'],
|
251
252
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
@@ -306,6 +307,12 @@ module Twilio
|
|
306
307
|
@properties['context']
|
307
308
|
end
|
308
309
|
|
310
|
+
##
|
311
|
+
# @return [String] The SID of the parent Step.
|
312
|
+
def parent_step_sid
|
313
|
+
@properties['parent_step_sid']
|
314
|
+
end
|
315
|
+
|
309
316
|
##
|
310
317
|
# @return [String] The Widget that preceded the Widget for the Step.
|
311
318
|
def transitioned_from
|
@@ -244,6 +244,7 @@ module Twilio
|
|
244
244
|
'account_sid' => payload['account_sid'],
|
245
245
|
'flow_sid' => payload['flow_sid'],
|
246
246
|
'execution_sid' => payload['execution_sid'],
|
247
|
+
'parent_step_sid' => payload['parent_step_sid'],
|
247
248
|
'name' => payload['name'],
|
248
249
|
'context' => payload['context'],
|
249
250
|
'transitioned_from' => payload['transitioned_from'],
|
@@ -294,6 +295,12 @@ module Twilio
|
|
294
295
|
@properties['execution_sid']
|
295
296
|
end
|
296
297
|
|
298
|
+
##
|
299
|
+
# @return [String] This field shows the Step SID of the Widget in the parent Flow that started the Subflow. If this Step is not part of a Subflow execution, the value is null.
|
300
|
+
def parent_step_sid
|
301
|
+
@properties['parent_step_sid']
|
302
|
+
end
|
303
|
+
|
297
304
|
##
|
298
305
|
# @return [String] The event that caused the Flow to transition to the Step.
|
299
306
|
def name
|
@@ -244,6 +244,7 @@ module Twilio
|
|
244
244
|
'account_sid' => payload['account_sid'],
|
245
245
|
'flow_sid' => payload['flow_sid'],
|
246
246
|
'execution_sid' => payload['execution_sid'],
|
247
|
+
'parent_step_sid' => payload['parent_step_sid'],
|
247
248
|
'name' => payload['name'],
|
248
249
|
'context' => payload['context'],
|
249
250
|
'transitioned_from' => payload['transitioned_from'],
|
@@ -294,6 +295,12 @@ module Twilio
|
|
294
295
|
@properties['execution_sid']
|
295
296
|
end
|
296
297
|
|
298
|
+
##
|
299
|
+
# @return [String] The SID of the parent Step.
|
300
|
+
def parent_step_sid
|
301
|
+
@properties['parent_step_sid']
|
302
|
+
end
|
303
|
+
|
297
304
|
##
|
298
305
|
# @return [String] The event that caused the Flow to transition to the Step.
|
299
306
|
def name
|
@@ -39,9 +39,11 @@ module Twilio
|
|
39
39
|
# @param [String] status_callback_method The HTTP method Twilio should use to call `status_callback`. Can be `POST` or `GET`.
|
40
40
|
# @param [String] max_participants The maximum number of concurrent Participants allowed in the room. The maximum allowed value is 50.
|
41
41
|
# @param [Boolean] record_participants_on_connect Whether to start recording when Participants connect.
|
42
|
+
# @param [Boolean] transcribe_participants_on_connect Whether to start transcriptions when Participants connect. If TranscriptionsConfiguration is not provided, default settings will be used.
|
42
43
|
# @param [Array[VideoCodec]] video_codecs An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`.
|
43
44
|
# @param [String] media_region The region for the Room's media server. Can be one of the [available Media Regions](https://www.twilio.com/docs/video/ip-addresses#group-rooms-media-servers).
|
44
45
|
# @param [Object] recording_rules A collection of Recording Rules that describe how to include or exclude matching tracks for recording
|
46
|
+
# @param [Object] transcriptions_configuration A collection of properties that describe transcription behaviour. If TranscribeParticipantsOnConnect is set to true and TranscriptionsConfiguration is not provided, default settings will be used.
|
45
47
|
# @param [Boolean] audio_only When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed.
|
46
48
|
# @param [String] max_participant_duration The maximum number of seconds a Participant can be connected to the room. The maximum possible value is 86400 seconds (24 hours). The default is 14400 seconds (4 hours).
|
47
49
|
# @param [String] empty_room_timeout Configures how long (in minutes) a room will remain active after last participant leaves. Valid values range from 1 to 60 minutes (no fractions).
|
@@ -56,9 +58,11 @@ module Twilio
|
|
56
58
|
status_callback_method: :unset,
|
57
59
|
max_participants: :unset,
|
58
60
|
record_participants_on_connect: :unset,
|
61
|
+
transcribe_participants_on_connect: :unset,
|
59
62
|
video_codecs: :unset,
|
60
63
|
media_region: :unset,
|
61
64
|
recording_rules: :unset,
|
65
|
+
transcriptions_configuration: :unset,
|
62
66
|
audio_only: :unset,
|
63
67
|
max_participant_duration: :unset,
|
64
68
|
empty_room_timeout: :unset,
|
@@ -74,9 +78,11 @@ module Twilio
|
|
74
78
|
'StatusCallbackMethod' => status_callback_method,
|
75
79
|
'MaxParticipants' => max_participants,
|
76
80
|
'RecordParticipantsOnConnect' => record_participants_on_connect,
|
81
|
+
'TranscribeParticipantsOnConnect' => transcribe_participants_on_connect,
|
77
82
|
'VideoCodecs' => Twilio.serialize_list(video_codecs) { |e| e },
|
78
83
|
'MediaRegion' => media_region,
|
79
84
|
'RecordingRules' => Twilio.serialize_object(recording_rules),
|
85
|
+
'TranscriptionsConfiguration' => Twilio.serialize_object(transcriptions_configuration),
|
80
86
|
'AudioOnly' => audio_only,
|
81
87
|
'MaxParticipantDuration' => max_participant_duration,
|
82
88
|
'EmptyRoomTimeout' => empty_room_timeout,
|
data/lib/twilio-ruby/version.rb
CHANGED
data/twilio-ruby.gemspec
CHANGED
@@ -28,8 +28,6 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_dependency('jwt', '>= 1.5', '< 3.0')
|
29
29
|
spec.add_dependency('nokogiri', '>= 1.6', '< 2.0')
|
30
30
|
spec.add_dependency('faraday', '>= 0.9', '< 3.0')
|
31
|
-
spec.add_dependency 'ostruct'
|
32
|
-
spec.add_dependency 'benchmark'
|
33
31
|
# Workaround for RBX <= 2.2.1, should be fixed in next version
|
34
32
|
spec.add_dependency('rubysl') if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
|
35
33
|
|
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.6.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-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -70,34 +70,6 @@ dependencies:
|
|
70
70
|
- - "<"
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '3.0'
|
73
|
-
- !ruby/object:Gem::Dependency
|
74
|
-
name: ostruct
|
75
|
-
requirement: !ruby/object:Gem::Requirement
|
76
|
-
requirements:
|
77
|
-
- - ">="
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: '0'
|
80
|
-
type: :runtime
|
81
|
-
prerelease: false
|
82
|
-
version_requirements: !ruby/object:Gem::Requirement
|
83
|
-
requirements:
|
84
|
-
- - ">="
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: '0'
|
87
|
-
- !ruby/object:Gem::Dependency
|
88
|
-
name: benchmark
|
89
|
-
requirement: !ruby/object:Gem::Requirement
|
90
|
-
requirements:
|
91
|
-
- - ">="
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: '0'
|
94
|
-
type: :runtime
|
95
|
-
prerelease: false
|
96
|
-
version_requirements: !ruby/object:Gem::Requirement
|
97
|
-
requirements:
|
98
|
-
- - ">="
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
version: '0'
|
101
73
|
- !ruby/object:Gem::Dependency
|
102
74
|
name: bundler
|
103
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -581,6 +553,12 @@ files:
|
|
581
553
|
- lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb
|
582
554
|
- lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb
|
583
555
|
- lib/twilio-ruby/rest/ip_messaging_base.rb
|
556
|
+
- lib/twilio-ruby/rest/knowledge.rb
|
557
|
+
- lib/twilio-ruby/rest/knowledge/v1.rb
|
558
|
+
- lib/twilio-ruby/rest/knowledge/v1/knowledge.rb
|
559
|
+
- lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb
|
560
|
+
- lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb
|
561
|
+
- lib/twilio-ruby/rest/knowledge_base.rb
|
584
562
|
- lib/twilio-ruby/rest/lookups.rb
|
585
563
|
- lib/twilio-ruby/rest/lookups/v1.rb
|
586
564
|
- lib/twilio-ruby/rest/lookups/v1/phone_number.rb
|
@@ -621,6 +599,8 @@ files:
|
|
621
599
|
- lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb
|
622
600
|
- lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb
|
623
601
|
- lib/twilio-ruby/rest/messaging/v1/usecase.rb
|
602
|
+
- lib/twilio-ruby/rest/messaging/v2.rb
|
603
|
+
- lib/twilio-ruby/rest/messaging/v2/channels_sender.rb
|
624
604
|
- lib/twilio-ruby/rest/messaging_base.rb
|
625
605
|
- lib/twilio-ruby/rest/microvisor.rb
|
626
606
|
- lib/twilio-ruby/rest/microvisor/v1.rb
|
@@ -653,8 +633,8 @@ files:
|
|
653
633
|
- lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
|
654
634
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb
|
655
635
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb
|
636
|
+
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb
|
656
637
|
- lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb
|
657
|
-
- lib/twilio-ruby/rest/numbers/v1/webhook.rb
|
658
638
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
659
639
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document.rb
|
660
640
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb
|