twilio-ruby 7.4.5 → 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/.dockerignore +1 -1
- data/.github/workflows/test-and-deploy.yml +2 -2
- data/CHANGES.md +88 -0
- data/Dockerfile +2 -1
- 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/accounts/v1/bulk_consents.rb +1 -1
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +9 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +3 -0
- data/lib/twilio-ruby/rest/client.rb +5 -0
- data/lib/twilio-ruby/rest/content/v1/content.rb +11 -2
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +3 -19
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +50 -1
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +0 -39
- data/lib/twilio-ruby/rest/iam/v1/{key.rb → new_api_key.rb} +20 -20
- data/lib/twilio-ruby/rest/iam/v1/token.rb +186 -0
- data/lib/twilio-ruby/rest/iam/v1.rb +10 -4
- 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/{preview/sync/service.rb → messaging/v2/channels_sender.rb} +189 -226
- data/lib/twilio-ruby/rest/{preview/sync.rb → messaging/v2.rb} +13 -13
- 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/porting_port_in.rb +3 -3
- data/lib/twilio-ruby/rest/preview_base.rb +0 -5
- 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/taskrouter/v1/workspace/task/reservation.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room.rb +6 -0
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +4 -1
- data/lib/twilio-ruby/twiml/voice_response.rb +24 -14
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +0 -2
- metadata +12 -41
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -407
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -472
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -467
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -407
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -444
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -470
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -407
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -444
@@ -4,7 +4,7 @@
|
|
4
4
|
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
5
|
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
6
|
#
|
7
|
-
# Twilio -
|
7
|
+
# Twilio - Messaging
|
8
8
|
# This is the public Twilio REST API.
|
9
9
|
#
|
10
10
|
# NOTE: This class is auto generated by OpenAPI Generator.
|
@@ -14,34 +14,34 @@
|
|
14
14
|
|
15
15
|
module Twilio
|
16
16
|
module REST
|
17
|
-
class
|
18
|
-
class
|
17
|
+
class Messaging
|
18
|
+
class V2 < Version
|
19
19
|
##
|
20
|
-
# Initialize the
|
20
|
+
# Initialize the V2 version of Messaging
|
21
21
|
def initialize(domain)
|
22
22
|
super
|
23
|
-
@version = '
|
24
|
-
@
|
23
|
+
@version = 'v2'
|
24
|
+
@channels_senders = nil
|
25
25
|
end
|
26
26
|
|
27
27
|
##
|
28
|
-
# @param [String] sid
|
29
|
-
# @return [Twilio::REST::
|
30
|
-
# @return [Twilio::REST::
|
31
|
-
def
|
28
|
+
# @param [String] sid A 34 character string that uniquely identifies this Sender.
|
29
|
+
# @return [Twilio::REST::Messaging::V2::ChannelsSenderContext] if sid was passed.
|
30
|
+
# @return [Twilio::REST::Messaging::V2::ChannelsSenderList]
|
31
|
+
def channels_senders(sid=:unset)
|
32
32
|
if sid.nil?
|
33
33
|
raise ArgumentError, 'sid cannot be nil'
|
34
34
|
end
|
35
35
|
if sid == :unset
|
36
|
-
@
|
36
|
+
@channels_senders ||= ChannelsSenderList.new self
|
37
37
|
else
|
38
|
-
|
38
|
+
ChannelsSenderContext.new(self, sid)
|
39
39
|
end
|
40
40
|
end
|
41
41
|
##
|
42
42
|
# Provide a user friendly representation
|
43
43
|
def to_s
|
44
|
-
'<Twilio::REST::
|
44
|
+
'<Twilio::REST::Messaging::V2>';
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
@@ -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
|
@@ -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
|
@@ -22,7 +22,6 @@ module Twilio
|
|
22
22
|
@host = "preview.twilio.com"
|
23
23
|
@port = 443
|
24
24
|
@hosted_numbers = nil
|
25
|
-
@sync = nil
|
26
25
|
@marketplace = nil
|
27
26
|
@wireless = nil
|
28
27
|
end
|
@@ -31,10 +30,6 @@ module Twilio
|
|
31
30
|
@hosted_numbers ||= Preview::HostedNumbers.new self
|
32
31
|
end
|
33
32
|
|
34
|
-
def sync
|
35
|
-
@sync ||= Preview::Sync.new self
|
36
|
-
end
|
37
|
-
|
38
33
|
def marketplace
|
39
34
|
@marketplace ||= Preview::Marketplace.new self
|
40
35
|
end
|
@@ -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
|
@@ -226,7 +226,7 @@ module Twilio
|
|
226
226
|
# @param [String] recording_status_callback_method The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
227
227
|
# @param [String] conference_recording_status_callback The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available.
|
228
228
|
# @param [String] conference_recording_status_callback_method The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
229
|
-
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
229
|
+
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `us2`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
230
230
|
# @param [String] sip_auth_username The SIP username used for authentication.
|
231
231
|
# @param [String] sip_auth_password The SIP password for authentication.
|
232
232
|
# @param [Array[String]] dequeue_status_callback_event The Call progress events sent via webhooks as a result of a Dequeue instruction.
|
@@ -577,7 +577,7 @@ module Twilio
|
|
577
577
|
# @param [String] recording_status_callback_method The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
578
578
|
# @param [String] conference_recording_status_callback The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available.
|
579
579
|
# @param [String] conference_recording_status_callback_method The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
580
|
-
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
580
|
+
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `us2`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
581
581
|
# @param [String] sip_auth_username The SIP username used for authentication.
|
582
582
|
# @param [String] sip_auth_password The SIP password for authentication.
|
583
583
|
# @param [Array[String]] dequeue_status_callback_event The Call progress events sent via webhooks as a result of a Dequeue instruction.
|
@@ -220,7 +220,7 @@ module Twilio
|
|
220
220
|
# @param [String] recording_status_callback_method The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
221
221
|
# @param [String] conference_recording_status_callback The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available.
|
222
222
|
# @param [String] conference_recording_status_callback_method The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
223
|
-
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
223
|
+
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `us2`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
224
224
|
# @param [String] sip_auth_username The SIP username used for authentication.
|
225
225
|
# @param [String] sip_auth_password The SIP password for authentication.
|
226
226
|
# @param [Array[String]] dequeue_status_callback_event The call progress events sent via webhooks as a result of a Dequeue instruction.
|
@@ -565,7 +565,7 @@ module Twilio
|
|
565
565
|
# @param [String] recording_status_callback_method The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
566
566
|
# @param [String] conference_recording_status_callback The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available.
|
567
567
|
# @param [String] conference_recording_status_callback_method The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
568
|
-
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
568
|
+
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `us2`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
569
569
|
# @param [String] sip_auth_username The SIP username used for authentication.
|
570
570
|
# @param [String] sip_auth_password The SIP password for authentication.
|
571
571
|
# @param [Array[String]] dequeue_status_callback_event The call progress events sent via webhooks as a result of a Dequeue instruction.
|
@@ -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
|
@@ -194,7 +194,7 @@ module Twilio
|
|
194
194
|
end
|
195
195
|
|
196
196
|
##
|
197
|
-
# @return [
|
197
|
+
# @return [String] Percentage of the confirmed messages over the total, defined by (total_converted/total_attempts)*100.
|
198
198
|
def conversion_rate_percentage
|
199
199
|
@properties['conversion_rate_percentage']
|
200
200
|
end
|
@@ -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,
|
@@ -43,6 +43,7 @@ module Twilio
|
|
43
43
|
# @param [Array[String]] international_roaming The list of services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can contain: `data` and `messaging`.
|
44
44
|
# @param [String] national_roaming_data_limit The total data usage (download and upload combined) in Megabytes that the Network allows during one month on non-home networks in the United States. The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB. See [national roaming](https://www.twilio.com/docs/iot/wireless/api/rateplan-resource#national-roaming) for more info.
|
45
45
|
# @param [String] international_roaming_data_limit The total data usage (download and upload combined) in Megabytes that the Network allows during one month when roaming outside the United States. Can be up to 2TB.
|
46
|
+
# @param [DataLimitStrategy] data_limit_strategy
|
46
47
|
# @return [RatePlanInstance] Created RatePlanInstance
|
47
48
|
def create(
|
48
49
|
unique_name: :unset,
|
@@ -55,7 +56,8 @@ module Twilio
|
|
55
56
|
national_roaming_enabled: :unset,
|
56
57
|
international_roaming: :unset,
|
57
58
|
national_roaming_data_limit: :unset,
|
58
|
-
international_roaming_data_limit: :unset
|
59
|
+
international_roaming_data_limit: :unset,
|
60
|
+
data_limit_strategy: :unset
|
59
61
|
)
|
60
62
|
|
61
63
|
data = Twilio::Values.of({
|
@@ -70,6 +72,7 @@ module Twilio
|
|
70
72
|
'InternationalRoaming' => Twilio.serialize_list(international_roaming) { |e| e },
|
71
73
|
'NationalRoamingDataLimit' => national_roaming_data_limit,
|
72
74
|
'InternationalRoamingDataLimit' => international_roaming_data_limit,
|
75
|
+
'DataLimitStrategy' => data_limit_strategy,
|
73
76
|
})
|
74
77
|
|
75
78
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
@@ -1978,13 +1978,18 @@ module Twilio
|
|
1978
1978
|
# dtmf_detection:: Whether DTMF tones should be detected and reported in speech transcription
|
1979
1979
|
# welcome_greeting:: The sentence to be played automatically when the session is connected
|
1980
1980
|
# partial_prompts:: Whether partial prompts should be reported to WebSocket server before the caller finishes speaking
|
1981
|
-
#
|
1982
|
-
#
|
1983
|
-
#
|
1984
|
-
#
|
1985
|
-
#
|
1986
|
-
|
1987
|
-
|
1981
|
+
# welcome_greeting_interruptible:: "Whether and how the input from a caller, such as speaking or DTMF can interrupt the welcome greeting
|
1982
|
+
# interruptible:: Whether and how the input from a caller, such as speaking or DTMF can interrupt the play of text-to-speech
|
1983
|
+
# preemptible:: Whether subsequent text-to-speech or play media can interrupt the on-going play of text-to-speech or media
|
1984
|
+
# hints:: Phrases to help better accuracy in speech recognition of these pharases
|
1985
|
+
# intelligence_service:: The Conversational Intelligence Service id or unique name to be used for the session
|
1986
|
+
# report_input_during_agent_speech:: Whether prompts should be reported to WebSocket server when text-to-speech playing and interrupt is disabled
|
1987
|
+
# elevenlabs_text_normalization:: When using ElevenLabs as TTS provider, this parameter allows you to enable or disable its text normalization feature
|
1988
|
+
# interrupt_sensitivity:: Set the sensitivity of the interrupt feature for speech. The value can be low, medium, or high
|
1989
|
+
# debug:: Multiple debug options to be used for troubleshooting
|
1990
|
+
# keyword_args:: additional attributes
|
1991
|
+
def conversation_relay(url: nil, language: nil, tts_language: nil, transcription_language: nil, tts_provider: nil, voice: nil, transcription_provider: nil, speech_model: nil, profanity_filter: nil, dtmf_detection: nil, welcome_greeting: nil, partial_prompts: nil, welcome_greeting_interruptible: nil, interruptible: nil, preemptible: nil, hints: nil, intelligence_service: nil, report_input_during_agent_speech: nil, elevenlabs_text_normalization: nil, interrupt_sensitivity: nil, debug: nil, **keyword_args)
|
1992
|
+
conversation_relay = ConversationRelay.new(url: url, language: language, tts_language: tts_language, transcription_language: transcription_language, tts_provider: tts_provider, voice: voice, transcription_provider: transcription_provider, speech_model: speech_model, profanity_filter: profanity_filter, dtmf_detection: dtmf_detection, welcome_greeting: welcome_greeting, partial_prompts: partial_prompts, welcome_greeting_interruptible: welcome_greeting_interruptible, interruptible: interruptible, preemptible: preemptible, hints: hints, intelligence_service: intelligence_service, report_input_during_agent_speech: report_input_during_agent_speech, elevenlabs_text_normalization: elevenlabs_text_normalization, interrupt_sensitivity: interrupt_sensitivity, debug: debug, **keyword_args)
|
1988
1993
|
|
1989
1994
|
yield(conversation_relay) if block_given?
|
1990
1995
|
append(conversation_relay)
|
@@ -2004,13 +2009,18 @@ module Twilio
|
|
2004
2009
|
# dtmf_detection:: Whether DTMF tones should be detected and reported in speech transcription
|
2005
2010
|
# welcome_greeting:: The sentence to be played automatically when the session is connected
|
2006
2011
|
# partial_prompts:: Whether partial prompts should be reported to WebSocket server before the caller finishes speaking
|
2007
|
-
#
|
2008
|
-
#
|
2009
|
-
#
|
2010
|
-
#
|
2011
|
-
#
|
2012
|
-
|
2013
|
-
|
2012
|
+
# welcome_greeting_interruptible:: "Whether and how the input from a caller, such as speaking or DTMF can interrupt the welcome greeting
|
2013
|
+
# interruptible:: Whether and how the input from a caller, such as speaking or DTMF can interrupt the play of text-to-speech
|
2014
|
+
# preemptible:: Whether subsequent text-to-speech or play media can interrupt the on-going play of text-to-speech or media
|
2015
|
+
# hints:: Phrases to help better accuracy in speech recognition of these pharases
|
2016
|
+
# intelligence_service:: The Conversational Intelligence Service id or unique name to be used for the session
|
2017
|
+
# report_input_during_agent_speech:: Whether prompts should be reported to WebSocket server when text-to-speech playing and interrupt is disabled
|
2018
|
+
# elevenlabs_text_normalization:: When using ElevenLabs as TTS provider, this parameter allows you to enable or disable its text normalization feature
|
2019
|
+
# interrupt_sensitivity:: Set the sensitivity of the interrupt feature for speech. The value can be low, medium, or high
|
2020
|
+
# debug:: Multiple debug options to be used for troubleshooting
|
2021
|
+
# keyword_args:: additional attributes
|
2022
|
+
def assistant(id: nil, language: nil, tts_language: nil, transcription_language: nil, tts_provider: nil, voice: nil, transcription_provider: nil, speech_model: nil, profanity_filter: nil, dtmf_detection: nil, welcome_greeting: nil, partial_prompts: nil, welcome_greeting_interruptible: nil, interruptible: nil, preemptible: nil, hints: nil, intelligence_service: nil, report_input_during_agent_speech: nil, elevenlabs_text_normalization: nil, interrupt_sensitivity: nil, debug: nil, **keyword_args)
|
2023
|
+
assistant = Assistant.new(id: id, language: language, tts_language: tts_language, transcription_language: transcription_language, tts_provider: tts_provider, voice: voice, transcription_provider: transcription_provider, speech_model: speech_model, profanity_filter: profanity_filter, dtmf_detection: dtmf_detection, welcome_greeting: welcome_greeting, partial_prompts: partial_prompts, welcome_greeting_interruptible: welcome_greeting_interruptible, interruptible: interruptible, preemptible: preemptible, hints: hints, intelligence_service: intelligence_service, report_input_during_agent_speech: report_input_during_agent_speech, elevenlabs_text_normalization: elevenlabs_text_normalization, interrupt_sensitivity: interrupt_sensitivity, debug: debug, **keyword_args)
|
2014
2024
|
|
2015
2025
|
yield(assistant) if block_given?
|
2016
2026
|
append(assistant)
|
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.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-
|
11
|
+
date: 2025-05-29 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
|
@@ -525,7 +497,8 @@ files:
|
|
525
497
|
- lib/twilio-ruby/rest/iam/v1.rb
|
526
498
|
- lib/twilio-ruby/rest/iam/v1/api_key.rb
|
527
499
|
- lib/twilio-ruby/rest/iam/v1/get_api_keys.rb
|
528
|
-
- lib/twilio-ruby/rest/iam/v1/
|
500
|
+
- lib/twilio-ruby/rest/iam/v1/new_api_key.rb
|
501
|
+
- lib/twilio-ruby/rest/iam/v1/token.rb
|
529
502
|
- lib/twilio-ruby/rest/iam_base.rb
|
530
503
|
- lib/twilio-ruby/rest/insights.rb
|
531
504
|
- lib/twilio-ruby/rest/insights/v1.rb
|
@@ -580,6 +553,12 @@ files:
|
|
580
553
|
- lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb
|
581
554
|
- lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb
|
582
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
|
583
562
|
- lib/twilio-ruby/rest/lookups.rb
|
584
563
|
- lib/twilio-ruby/rest/lookups/v1.rb
|
585
564
|
- lib/twilio-ruby/rest/lookups/v1/phone_number.rb
|
@@ -620,6 +599,8 @@ files:
|
|
620
599
|
- lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb
|
621
600
|
- lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb
|
622
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
|
623
604
|
- lib/twilio-ruby/rest/messaging_base.rb
|
624
605
|
- lib/twilio-ruby/rest/microvisor.rb
|
625
606
|
- lib/twilio-ruby/rest/microvisor/v1.rb
|
@@ -687,16 +668,6 @@ files:
|
|
687
668
|
- lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb
|
688
669
|
- lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb
|
689
670
|
- lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb
|
690
|
-
- lib/twilio-ruby/rest/preview/sync.rb
|
691
|
-
- lib/twilio-ruby/rest/preview/sync/service.rb
|
692
|
-
- lib/twilio-ruby/rest/preview/sync/service/document.rb
|
693
|
-
- lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb
|
694
|
-
- lib/twilio-ruby/rest/preview/sync/service/sync_list.rb
|
695
|
-
- lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb
|
696
|
-
- lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb
|
697
|
-
- lib/twilio-ruby/rest/preview/sync/service/sync_map.rb
|
698
|
-
- lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb
|
699
|
-
- lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb
|
700
671
|
- lib/twilio-ruby/rest/preview/wireless.rb
|
701
672
|
- lib/twilio-ruby/rest/preview/wireless/command.rb
|
702
673
|
- lib/twilio-ruby/rest/preview/wireless/rate_plan.rb
|