twilio-ruby 7.13.1 → 7.14.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 +143 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/messaging_sms_pumping_protection.rb +253 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +6 -0
- data/lib/twilio-ruby/rest/content/v1/content.rb +50 -2
- data/lib/twilio-ruby/rest/conversations/v2/context.rb +629 -0
- data/lib/twilio-ruby/rest/conversations/v2.rb +22 -0
- data/lib/twilio-ruby/rest/insights/v3/query.rb +17 -1
- data/lib/twilio-ruby/rest/insights/v3/query_job.rb +62 -1
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +20 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status_detail.rb +316 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +19 -0
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +15 -2
- data/lib/twilio-ruby/twiml/voice_response.rb +43 -4
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +5 -2
|
@@ -39,6 +39,7 @@ module Twilio
|
|
|
39
39
|
# hangup_on_star:: Hangup call on star press
|
|
40
40
|
# time_limit:: Max time length
|
|
41
41
|
# caller_id:: Caller ID to display
|
|
42
|
+
# caller_display_name:: Display name to show in the SIP From header
|
|
42
43
|
# record:: Record the call
|
|
43
44
|
# trim:: Trim the recording
|
|
44
45
|
# recording_status_callback:: Recording status callback URL
|
|
@@ -54,8 +55,8 @@ module Twilio
|
|
|
54
55
|
# events:: Subscription to events
|
|
55
56
|
# passports:: Base64-encoded comma-separated identity passports (e.g. shaken, div)
|
|
56
57
|
# keyword_args:: additional attributes
|
|
57
|
-
def dial(number: nil, action: nil, method: nil, timeout: nil, hangup_on_star: nil, time_limit: nil, caller_id: nil, record: nil, trim: nil, recording_status_callback: nil, recording_configuration_id: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, answer_on_bridge: nil, ring_tone: nil, recording_track: nil, sequential: nil, refer_url: nil, refer_method: nil, events: nil, passports: nil, **keyword_args)
|
|
58
|
-
dial = Dial.new(number: number, action: action, method: method, timeout: timeout, hangup_on_star: hangup_on_star, time_limit: time_limit, caller_id: caller_id, record: record, trim: trim, recording_status_callback: recording_status_callback, recording_configuration_id: recording_configuration_id, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, answer_on_bridge: answer_on_bridge, ring_tone: ring_tone, recording_track: recording_track, sequential: sequential, refer_url: refer_url, refer_method: refer_method, events: events, passports: passports, **keyword_args)
|
|
58
|
+
def dial(number: nil, action: nil, method: nil, timeout: nil, hangup_on_star: nil, time_limit: nil, caller_id: nil, caller_display_name: nil, record: nil, trim: nil, recording_status_callback: nil, recording_configuration_id: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, answer_on_bridge: nil, ring_tone: nil, recording_track: nil, sequential: nil, refer_url: nil, refer_method: nil, events: nil, passports: nil, **keyword_args)
|
|
59
|
+
dial = Dial.new(number: number, action: action, method: method, timeout: timeout, hangup_on_star: hangup_on_star, time_limit: time_limit, caller_id: caller_id, caller_display_name: caller_display_name, record: record, trim: trim, recording_status_callback: recording_status_callback, recording_configuration_id: recording_configuration_id, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, answer_on_bridge: answer_on_bridge, ring_tone: ring_tone, recording_track: recording_track, sequential: sequential, refer_url: refer_url, refer_method: refer_method, events: events, passports: passports, **keyword_args)
|
|
59
60
|
|
|
60
61
|
yield(dial) if block_given?
|
|
61
62
|
append(dial)
|
|
@@ -2183,9 +2184,10 @@ module Twilio
|
|
|
2183
2184
|
# turn_detection:: Whether turn detection should be used to decide when the caller has finished speaking. Defaults to false
|
|
2184
2185
|
# conversation_id:: The ID of the Conversation
|
|
2185
2186
|
# conversation_configuration:: The ID or the unique name of the Conversation configuration to be used
|
|
2187
|
+
# turn_min_silence:: Minimum duration of silence that indicates the end of a turn
|
|
2186
2188
|
# keyword_args:: additional attributes
|
|
2187
|
-
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, backgroundNoiseReduction: nil, speechTimeout: nil, deepgramSmartFormat: nil, ignoreBackchannel: nil, events: nil, partial_prompt_on_hangup: nil, eager_eot_threshold: nil, asr_smart_format: nil, tts_text_normalization: nil, tts_language_text_normalization: nil, elevenlabs_language_text_normalization: nil, include_in_prompt: nil, customer_name: nil, application_reconnect: nil, echo_prompt_filtering: nil, turn_detection: nil, conversation_id: nil, conversation_configuration: nil, **keyword_args)
|
|
2188
|
-
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, backgroundNoiseReduction: backgroundNoiseReduction, speechTimeout: speechTimeout, deepgramSmartFormat: deepgramSmartFormat, ignoreBackchannel: ignoreBackchannel, events: events, partial_prompt_on_hangup: partial_prompt_on_hangup, eager_eot_threshold: eager_eot_threshold, asr_smart_format: asr_smart_format, tts_text_normalization: tts_text_normalization, tts_language_text_normalization: tts_language_text_normalization, elevenlabs_language_text_normalization: elevenlabs_language_text_normalization, include_in_prompt: include_in_prompt, customer_name: customer_name, application_reconnect: application_reconnect, echo_prompt_filtering: echo_prompt_filtering, turn_detection: turn_detection, conversation_id: conversation_id, conversation_configuration: conversation_configuration, **keyword_args)
|
|
2189
|
+
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, backgroundNoiseReduction: nil, speechTimeout: nil, deepgramSmartFormat: nil, ignoreBackchannel: nil, events: nil, partial_prompt_on_hangup: nil, eager_eot_threshold: nil, asr_smart_format: nil, tts_text_normalization: nil, tts_language_text_normalization: nil, elevenlabs_language_text_normalization: nil, include_in_prompt: nil, customer_name: nil, application_reconnect: nil, echo_prompt_filtering: nil, turn_detection: nil, conversation_id: nil, conversation_configuration: nil, turn_min_silence: nil, **keyword_args)
|
|
2190
|
+
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, backgroundNoiseReduction: backgroundNoiseReduction, speechTimeout: speechTimeout, deepgramSmartFormat: deepgramSmartFormat, ignoreBackchannel: ignoreBackchannel, events: events, partial_prompt_on_hangup: partial_prompt_on_hangup, eager_eot_threshold: eager_eot_threshold, asr_smart_format: asr_smart_format, tts_text_normalization: tts_text_normalization, tts_language_text_normalization: tts_language_text_normalization, elevenlabs_language_text_normalization: elevenlabs_language_text_normalization, include_in_prompt: include_in_prompt, customer_name: customer_name, application_reconnect: application_reconnect, echo_prompt_filtering: echo_prompt_filtering, turn_detection: turn_detection, conversation_id: conversation_id, conversation_configuration: conversation_configuration, turn_min_silence: turn_min_silence, **keyword_args)
|
|
2189
2191
|
|
|
2190
2192
|
yield(conversation_relay) if block_given?
|
|
2191
2193
|
append(conversation_relay)
|
|
@@ -2258,6 +2260,16 @@ module Twilio
|
|
|
2258
2260
|
append(Language.new(code: code, tts_provider: tts_provider, voice: voice, transcription_provider: transcription_provider, speech_model: speech_model, hints: hints, asr_smart_format: asr_smart_format, tts_text_normalization: tts_text_normalization, tts_language_text_normalization: tts_language_text_normalization, **keyword_args))
|
|
2259
2261
|
end
|
|
2260
2262
|
|
|
2263
|
+
##
|
|
2264
|
+
# Create a new <Failover> element
|
|
2265
|
+
# keyword_args:: additional attributes
|
|
2266
|
+
def failover(**keyword_args)
|
|
2267
|
+
failover = Failover.new(**keyword_args)
|
|
2268
|
+
|
|
2269
|
+
yield(failover) if block_given?
|
|
2270
|
+
append(failover)
|
|
2271
|
+
end
|
|
2272
|
+
|
|
2261
2273
|
##
|
|
2262
2274
|
# Create a new <Parameter> element
|
|
2263
2275
|
# name:: The name of the custom parameter
|
|
@@ -2268,6 +2280,33 @@ module Twilio
|
|
|
2268
2280
|
end
|
|
2269
2281
|
end
|
|
2270
2282
|
|
|
2283
|
+
##
|
|
2284
|
+
# <Failover> TwiML Noun
|
|
2285
|
+
class Failover < TwiML
|
|
2286
|
+
def initialize(**keyword_args)
|
|
2287
|
+
super(**keyword_args)
|
|
2288
|
+
@name = 'Failover'
|
|
2289
|
+
|
|
2290
|
+
yield(self) if block_given?
|
|
2291
|
+
end
|
|
2292
|
+
|
|
2293
|
+
##
|
|
2294
|
+
# Create a new <Language> element
|
|
2295
|
+
# code:: Language code of this language setting is for
|
|
2296
|
+
# tts_provider:: Provider to be used for text-to-speech of this language
|
|
2297
|
+
# voice:: Voice to be used for text-to-speech of this language
|
|
2298
|
+
# transcription_provider:: Provider to be used for transcription of this language
|
|
2299
|
+
# speech_model:: Speech model to be used for transcription of this language
|
|
2300
|
+
# hints:: Phrases to help better accuracy in speech recognition of this language
|
|
2301
|
+
# asr_smart_format:: Whether smart formatting should be applied to transcripts of this language
|
|
2302
|
+
# tts_text_normalization:: Text normalization for text-to-speech of this language. The value can be auto, on, or off
|
|
2303
|
+
# tts_language_text_normalization:: Whether language-specific text normalization should be applied for text-to-speech of this language
|
|
2304
|
+
# keyword_args:: additional attributes
|
|
2305
|
+
def language(code: nil, tts_provider: nil, voice: nil, transcription_provider: nil, speech_model: nil, hints: nil, asr_smart_format: nil, tts_text_normalization: nil, tts_language_text_normalization: nil, **keyword_args)
|
|
2306
|
+
append(Language.new(code: code, tts_provider: tts_provider, voice: voice, transcription_provider: transcription_provider, speech_model: speech_model, hints: hints, asr_smart_format: asr_smart_format, tts_text_normalization: tts_text_normalization, tts_language_text_normalization: tts_language_text_normalization, **keyword_args))
|
|
2307
|
+
end
|
|
2308
|
+
end
|
|
2309
|
+
|
|
2271
2310
|
##
|
|
2272
2311
|
# <Language> TwiML Noun
|
|
2273
2312
|
class Language < TwiML
|
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.14.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: 2026-
|
|
11
|
+
date: 2026-12-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jwt
|
|
@@ -271,6 +271,7 @@ files:
|
|
|
271
271
|
- lib/twilio-ruby/rest/accounts/v1/credential/aws.rb
|
|
272
272
|
- lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb
|
|
273
273
|
- lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb
|
|
274
|
+
- lib/twilio-ruby/rest/accounts/v1/messaging_sms_pumping_protection.rb
|
|
274
275
|
- lib/twilio-ruby/rest/accounts/v1/safelist.rb
|
|
275
276
|
- lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb
|
|
276
277
|
- lib/twilio-ruby/rest/accounts_base.rb
|
|
@@ -438,6 +439,7 @@ files:
|
|
|
438
439
|
- lib/twilio-ruby/rest/conversations/v2/action.rb
|
|
439
440
|
- lib/twilio-ruby/rest/conversations/v2/communication.rb
|
|
440
441
|
- lib/twilio-ruby/rest/conversations/v2/configuration.rb
|
|
442
|
+
- lib/twilio-ruby/rest/conversations/v2/context.rb
|
|
441
443
|
- lib/twilio-ruby/rest/conversations/v2/conversation.rb
|
|
442
444
|
- lib/twilio-ruby/rest/conversations/v2/operation.rb
|
|
443
445
|
- lib/twilio-ruby/rest/conversations/v2/participant.rb
|
|
@@ -782,6 +784,7 @@ files:
|
|
|
782
784
|
- lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb
|
|
783
785
|
- lib/twilio-ruby/rest/serverless/v1/service/build.rb
|
|
784
786
|
- lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb
|
|
787
|
+
- lib/twilio-ruby/rest/serverless/v1/service/build/build_status_detail.rb
|
|
785
788
|
- lib/twilio-ruby/rest/serverless/v1/service/environment.rb
|
|
786
789
|
- lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb
|
|
787
790
|
- lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb
|