twilio-ruby 7.3.5 → 7.3.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e25ad4751d947c97ea1f1b024808691fca6ced5c
4
- data.tar.gz: 7b04ac93d6f0cf9113143ebcf95caab81b4d6b60
3
+ metadata.gz: 182ec237b162cf02d16e3a4dc40fc5499c689499
4
+ data.tar.gz: caaf9bf2cb6aa21da43180e7ed772ad8421aa7ad
5
5
  SHA512:
6
- metadata.gz: f2a4fa936804210bc6884dc97ee6254af4cdfbc08f415408a2ecf02d405cd94339e26de0e21927dc157fd74efb2107c4adf4e4b3b5a097839e4c570b944850b2
7
- data.tar.gz: ed941f50e2bec4a7f5c733d29fbd791400a2d03a968659ca2fae3003e93cc6c26c427d36769812385326b51e30c64e5a19f2dc124f133191f09b7efc0f83c7de
6
+ metadata.gz: 50bd70ed5afd1f9d050ffe7ca6c0a2d6d71de08e7e5392e1da40b88de5e4e3d35ae48c5728466fb47370cfa4682e5bb73ccd0e968eb2df8e97d8aeef924b986a
7
+ data.tar.gz: 05723bb62e01c7dd88e95bf9c9bdfae857063ee559d391aea43fa07b4c9ea8bf9e1633a3e183a92acf3d304d6a147351d2cceaf1e392025995f34014be4e9e3b
data/CHANGES.md CHANGED
@@ -1,6 +1,36 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2024-12-05] Version 7.3.7
5
+ --------------------------
6
+ **Api**
7
+ - Add optional parameter `intelligence_service` to `transcription`
8
+ - Updated `phone_number_sid` to be populated for sip trunking terminating calls.
9
+
10
+ **Numbers**
11
+ - Add Update Hosted Number Order V2 API endpoint
12
+ - Update Port in docs
13
+
14
+ **Twiml**
15
+ - Add optional parameter `intelligence_service` to `<Transcription>`
16
+ - Add support for new `<ConversationRelay>` and `<Assistant>` noun
17
+ - Add `events` attribute to `<Dial>` verb
18
+
19
+
20
+ [2024-11-15] Version 7.3.6
21
+ --------------------------
22
+ **Library - Chore**
23
+ - [PR #732](https://github.com/twilio/twilio-ruby/pull/732): removed preview sync api. Thanks to [@sbansla](https://github.com/sbansla)!
24
+
25
+ **Api**
26
+ - Added `ivr-virtual-agent-custom-voices` and `ivr-virtual-agent-genai` to `usage_record` API.
27
+ - Add open-api file tag to realtime_transcriptions
28
+
29
+ **Taskrouter**
30
+ - Add `api-tag` property to workers reservation
31
+ - Add `api-tag` property to task reservation
32
+
33
+
4
34
  [2024-10-24] Version 7.3.5
5
35
  --------------------------
6
36
  **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.5'
42
+ gem 'twilio-ruby', '~> 7.3.7'
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.5
48
+ gem install twilio-ruby -v 7.3.7
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
@@ -48,6 +48,7 @@ module Twilio
48
48
  # @param [String] speech_model Recognition model used by the transcription engine, among those supported by the provider
49
49
  # @param [String] hints A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
50
50
  # @param [Boolean] enable_automatic_punctuation The provider will add punctuation to recognition result
51
+ # @param [String] intelligence_service The SID or the unique name of the [IntelligentService](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
51
52
  # @return [TranscriptionInstance] Created TranscriptionInstance
52
53
  def create(
53
54
  name: :unset,
@@ -62,7 +63,8 @@ module Twilio
62
63
  profanity_filter: :unset,
63
64
  speech_model: :unset,
64
65
  hints: :unset,
65
- enable_automatic_punctuation: :unset
66
+ enable_automatic_punctuation: :unset,
67
+ intelligence_service: :unset
66
68
  )
67
69
 
68
70
  data = Twilio::Values.of({
@@ -79,6 +81,7 @@ module Twilio
79
81
  'SpeechModel' => speech_model,
80
82
  'Hints' => hints,
81
83
  'EnableAutomaticPunctuation' => enable_automatic_punctuation,
84
+ 'IntelligenceService' => intelligence_service,
82
85
  })
83
86
 
84
87
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -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 parameters are as 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.
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 parameters are as 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.
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(
@@ -224,7 +224,7 @@ module Twilio
224
224
  ##
225
225
  # Initialize the HostedNumberOrderContext
226
226
  # @param [Version] version Version that contains the resource
227
- # @param [String] sid A 34 character string that uniquely identifies this HostedNumberOrder.
227
+ # @param [String] sid The SID of the HostedNumberOrder resource to update.
228
228
  # @return [HostedNumberOrderContext] HostedNumberOrderContext
229
229
  def initialize(version, sid)
230
230
  super(version)
@@ -260,6 +260,34 @@ module Twilio
260
260
  )
261
261
  end
262
262
 
263
+ ##
264
+ # Update the HostedNumberOrderInstance
265
+ # @param [Status] status
266
+ # @param [String] verification_call_delay The number of seconds to wait before initiating the ownership verification call. Can be a value between 0 and 60, inclusive.
267
+ # @param [String] verification_call_extension The numerical extension to dial when making the ownership verification call.
268
+ # @return [HostedNumberOrderInstance] Updated HostedNumberOrderInstance
269
+ def update(
270
+ status: nil,
271
+ verification_call_delay: :unset,
272
+ verification_call_extension: :unset
273
+ )
274
+
275
+ data = Twilio::Values.of({
276
+ 'Status' => status,
277
+ 'VerificationCallDelay' => verification_call_delay,
278
+ 'VerificationCallExtension' => verification_call_extension,
279
+ })
280
+
281
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
282
+
283
+ payload = @version.update('POST', @uri, data: data, headers: headers)
284
+ HostedNumberOrderInstance.new(
285
+ @version,
286
+ payload,
287
+ sid: @solution[:sid],
288
+ )
289
+ end
290
+
263
291
 
264
292
  ##
265
293
  # Provide a user friendly representation
@@ -338,6 +366,12 @@ module Twilio
338
366
  'contact_phone_number' => payload['contact_phone_number'],
339
367
  'bulk_hosting_request_sid' => payload['bulk_hosting_request_sid'],
340
368
  'next_step' => payload['next_step'],
369
+ 'verification_attempts' => payload['verification_attempts'] == nil ? payload['verification_attempts'] : payload['verification_attempts'].to_i,
370
+ 'verification_call_sids' => payload['verification_call_sids'],
371
+ 'verification_call_delay' => payload['verification_call_delay'] == nil ? payload['verification_call_delay'] : payload['verification_call_delay'].to_i,
372
+ 'verification_call_extension' => payload['verification_call_extension'],
373
+ 'verification_code' => payload['verification_code'],
374
+ 'verification_type' => payload['verification_type'],
341
375
  }
342
376
 
343
377
  # Context
@@ -470,6 +504,42 @@ module Twilio
470
504
  @properties['next_step']
471
505
  end
472
506
 
507
+ ##
508
+ # @return [String] The number of attempts made to verify ownership via a call for the hosted phone number.
509
+ def verification_attempts
510
+ @properties['verification_attempts']
511
+ end
512
+
513
+ ##
514
+ # @return [Array<String>] The Call SIDs that identify the calls placed to verify ownership.
515
+ def verification_call_sids
516
+ @properties['verification_call_sids']
517
+ end
518
+
519
+ ##
520
+ # @return [String] The number of seconds to wait before initiating the ownership verification call. Can be a value between 0 and 60, inclusive.
521
+ def verification_call_delay
522
+ @properties['verification_call_delay']
523
+ end
524
+
525
+ ##
526
+ # @return [String] The numerical extension to dial when making the ownership verification call.
527
+ def verification_call_extension
528
+ @properties['verification_call_extension']
529
+ end
530
+
531
+ ##
532
+ # @return [String] The digits the user must pass in the ownership verification call.
533
+ def verification_code
534
+ @properties['verification_code']
535
+ end
536
+
537
+ ##
538
+ # @return [VerificationType]
539
+ def verification_type
540
+ @properties['verification_type']
541
+ end
542
+
473
543
  ##
474
544
  # Delete the HostedNumberOrderInstance
475
545
  # @return [Boolean] True if delete succeeds, false otherwise
@@ -486,6 +556,25 @@ module Twilio
486
556
  context.fetch
487
557
  end
488
558
 
559
+ ##
560
+ # Update the HostedNumberOrderInstance
561
+ # @param [Status] status
562
+ # @param [String] verification_call_delay The number of seconds to wait before initiating the ownership verification call. Can be a value between 0 and 60, inclusive.
563
+ # @param [String] verification_call_extension The numerical extension to dial when making the ownership verification call.
564
+ # @return [HostedNumberOrderInstance] Updated HostedNumberOrderInstance
565
+ def update(
566
+ status: nil,
567
+ verification_call_delay: :unset,
568
+ verification_call_extension: :unset
569
+ )
570
+
571
+ context.update(
572
+ status: status,
573
+ verification_call_delay: verification_call_delay,
574
+ verification_call_extension: verification_call_extension,
575
+ )
576
+ end
577
+
489
578
  ##
490
579
  # Provide a user friendly representation
491
580
  def to_s
@@ -233,7 +233,7 @@ module Twilio
233
233
 
234
234
  unless @document_permissions
235
235
  @document_permissions = DocumentPermissionList.new(
236
- @version, )
236
+ @version, service_sid: @solution[:service_sid], document_sid: @solution[:sid], )
237
237
  end
238
238
 
239
239
  @document_permissions
@@ -206,7 +206,7 @@ module Twilio
206
206
 
207
207
  unless @sync_list_permissions
208
208
  @sync_list_permissions = SyncListPermissionList.new(
209
- @version, )
209
+ @version, service_sid: @solution[:service_sid], list_sid: @solution[:sid], )
210
210
  end
211
211
 
212
212
  @sync_list_permissions
@@ -225,7 +225,7 @@ module Twilio
225
225
 
226
226
  unless @sync_list_items
227
227
  @sync_list_items = SyncListItemList.new(
228
- @version, )
228
+ @version, service_sid: @solution[:service_sid], list_sid: @solution[:sid], )
229
229
  end
230
230
 
231
231
  @sync_list_items
@@ -206,7 +206,7 @@ module Twilio
206
206
 
207
207
  unless @sync_map_items
208
208
  @sync_map_items = SyncMapItemList.new(
209
- @version, )
209
+ @version, service_sid: @solution[:service_sid], map_sid: @solution[:sid], )
210
210
  end
211
211
 
212
212
  @sync_map_items
@@ -225,7 +225,7 @@ module Twilio
225
225
 
226
226
  unless @sync_map_permissions
227
227
  @sync_map_permissions = SyncMapPermissionList.new(
228
- @version, )
228
+ @version, service_sid: @solution[:service_sid], map_sid: @solution[:sid], )
229
229
  end
230
230
 
231
231
  @sync_map_permissions
@@ -242,7 +242,7 @@ module Twilio
242
242
 
243
243
  unless @sync_maps
244
244
  @sync_maps = SyncMapList.new(
245
- @version, )
245
+ @version, service_sid: @solution[:sid], )
246
246
  end
247
247
 
248
248
  @sync_maps
@@ -280,7 +280,7 @@ module Twilio
280
280
 
281
281
  unless @sync_lists
282
282
  @sync_lists = SyncListList.new(
283
- @version, )
283
+ @version, service_sid: @solution[:sid], )
284
284
  end
285
285
 
286
286
  @sync_lists
@@ -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.
@@ -239,7 +239,7 @@ module Twilio
239
239
 
240
240
  unless @document_permissions
241
241
  @document_permissions = DocumentPermissionList.new(
242
- @version, )
242
+ @version, service_sid: @solution[:service_sid], document_sid: @solution[:sid], )
243
243
  end
244
244
 
245
245
  @document_permissions
@@ -238,7 +238,7 @@ module Twilio
238
238
 
239
239
  unless @sync_list_permissions
240
240
  @sync_list_permissions = SyncListPermissionList.new(
241
- @version, )
241
+ @version, service_sid: @solution[:service_sid], list_sid: @solution[:sid], )
242
242
  end
243
243
 
244
244
  @sync_list_permissions
@@ -257,7 +257,7 @@ module Twilio
257
257
 
258
258
  unless @sync_list_items
259
259
  @sync_list_items = SyncListItemList.new(
260
- @version, )
260
+ @version, service_sid: @solution[:service_sid], list_sid: @solution[:sid], )
261
261
  end
262
262
 
263
263
  @sync_list_items
@@ -238,7 +238,7 @@ module Twilio
238
238
 
239
239
  unless @sync_map_items
240
240
  @sync_map_items = SyncMapItemList.new(
241
- @version, )
241
+ @version, service_sid: @solution[:service_sid], map_sid: @solution[:sid], )
242
242
  end
243
243
 
244
244
  @sync_map_items
@@ -257,7 +257,7 @@ module Twilio
257
257
 
258
258
  unless @sync_map_permissions
259
259
  @sync_map_permissions = SyncMapPermissionList.new(
260
- @version, )
260
+ @version, service_sid: @solution[:service_sid], map_sid: @solution[:sid], )
261
261
  end
262
262
 
263
263
  @sync_map_permissions
@@ -224,7 +224,7 @@ module Twilio
224
224
  def stream_messages
225
225
  unless @stream_messages
226
226
  @stream_messages = StreamMessageList.new(
227
- @version, )
227
+ @version, service_sid: @solution[:service_sid], stream_sid: @solution[:sid], )
228
228
  end
229
229
  @stream_messages
230
230
  end
@@ -261,7 +261,7 @@ module Twilio
261
261
 
262
262
  unless @sync_streams
263
263
  @sync_streams = SyncStreamList.new(
264
- @version, )
264
+ @version, service_sid: @solution[:sid], )
265
265
  end
266
266
 
267
267
  @sync_streams
@@ -280,7 +280,7 @@ module Twilio
280
280
 
281
281
  unless @sync_lists
282
282
  @sync_lists = SyncListList.new(
283
- @version, )
283
+ @version, service_sid: @solution[:sid], )
284
284
  end
285
285
 
286
286
  @sync_lists
@@ -299,7 +299,7 @@ module Twilio
299
299
 
300
300
  unless @sync_maps
301
301
  @sync_maps = SyncMapList.new(
302
- @version, )
302
+ @version, service_sid: @solution[:sid], )
303
303
  end
304
304
 
305
305
  @sync_maps
@@ -50,9 +50,10 @@ module Twilio
50
50
  # sequential:: Used to determine if child TwiML nouns should be dialed in order, one after the other (sequential) or dial all at once (parallel). Default is false, parallel
51
51
  # refer_url:: Webhook that will receive future SIP REFER requests
52
52
  # refer_method:: The HTTP method to use for the refer Webhook
53
+ # events:: Subscription to events
53
54
  # keyword_args:: additional attributes
54
- 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_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, **keyword_args)
55
- 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_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, **keyword_args)
55
+ 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_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, **keyword_args)
56
+ 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_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, **keyword_args)
56
57
 
57
58
  yield(dial) if block_given?
58
59
  append(dial)
@@ -387,9 +388,10 @@ module Twilio
387
388
  # speech_model:: Speech Model used by the transcription engine
388
389
  # hints:: Hints to be provided to the transcription engine
389
390
  # enable_automatic_punctuation:: Enable Automatic Punctuation
391
+ # intelligence_service:: The SID or the unique name of the Intelligence Service to be used
390
392
  # keyword_args:: additional attributes
391
- def transcription(name: nil, track: nil, status_callback_url: nil, status_callback_method: nil, inbound_track_label: nil, outbound_track_label: nil, partial_results: nil, language_code: nil, transcription_engine: nil, profanity_filter: nil, speech_model: nil, hints: nil, enable_automatic_punctuation: nil, **keyword_args)
392
- transcription = Transcription.new(name: name, track: track, status_callback_url: status_callback_url, status_callback_method: status_callback_method, inbound_track_label: inbound_track_label, outbound_track_label: outbound_track_label, partial_results: partial_results, language_code: language_code, transcription_engine: transcription_engine, profanity_filter: profanity_filter, speech_model: speech_model, hints: hints, enable_automatic_punctuation: enable_automatic_punctuation, **keyword_args)
393
+ def transcription(name: nil, track: nil, status_callback_url: nil, status_callback_method: nil, inbound_track_label: nil, outbound_track_label: nil, partial_results: nil, language_code: nil, transcription_engine: nil, profanity_filter: nil, speech_model: nil, hints: nil, enable_automatic_punctuation: nil, intelligence_service: nil, **keyword_args)
394
+ transcription = Transcription.new(name: name, track: track, status_callback_url: status_callback_url, status_callback_method: status_callback_method, inbound_track_label: inbound_track_label, outbound_track_label: outbound_track_label, partial_results: partial_results, language_code: language_code, transcription_engine: transcription_engine, profanity_filter: profanity_filter, speech_model: speech_model, hints: hints, enable_automatic_punctuation: enable_automatic_punctuation, intelligence_service: intelligence_service, **keyword_args)
393
395
 
394
396
  yield(transcription) if block_given?
395
397
  append(transcription)
@@ -543,9 +545,10 @@ module Twilio
543
545
  # speech_model:: Speech Model used by the transcription engine
544
546
  # hints:: Hints to be provided to the transcription engine
545
547
  # enable_automatic_punctuation:: Enable Automatic Punctuation
548
+ # intelligence_service:: The SID or the unique name of the Intelligence Service to be used
546
549
  # keyword_args:: additional attributes
547
- def transcription(name: nil, track: nil, status_callback_url: nil, status_callback_method: nil, inbound_track_label: nil, outbound_track_label: nil, partial_results: nil, language_code: nil, transcription_engine: nil, profanity_filter: nil, speech_model: nil, hints: nil, enable_automatic_punctuation: nil, **keyword_args)
548
- transcription = Transcription.new(name: name, track: track, status_callback_url: status_callback_url, status_callback_method: status_callback_method, inbound_track_label: inbound_track_label, outbound_track_label: outbound_track_label, partial_results: partial_results, language_code: language_code, transcription_engine: transcription_engine, profanity_filter: profanity_filter, speech_model: speech_model, hints: hints, enable_automatic_punctuation: enable_automatic_punctuation, **keyword_args)
550
+ def transcription(name: nil, track: nil, status_callback_url: nil, status_callback_method: nil, inbound_track_label: nil, outbound_track_label: nil, partial_results: nil, language_code: nil, transcription_engine: nil, profanity_filter: nil, speech_model: nil, hints: nil, enable_automatic_punctuation: nil, intelligence_service: nil, **keyword_args)
551
+ transcription = Transcription.new(name: name, track: track, status_callback_url: status_callback_url, status_callback_method: status_callback_method, inbound_track_label: inbound_track_label, outbound_track_label: outbound_track_label, partial_results: partial_results, language_code: language_code, transcription_engine: transcription_engine, profanity_filter: profanity_filter, speech_model: speech_model, hints: hints, enable_automatic_punctuation: enable_automatic_punctuation, intelligence_service: intelligence_service, **keyword_args)
549
552
 
550
553
  yield(transcription) if block_given?
551
554
  append(transcription)
@@ -1960,6 +1963,133 @@ module Twilio
1960
1963
  def conversation(service_instance_sid: nil, inbound_autocreation: nil, routing_assignment_timeout: nil, inbound_timeout: nil, url: nil, method: nil, record: nil, trim: nil, recording_status_callback: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, status_callback: nil, status_callback_method: nil, status_callback_event: nil, **keyword_args)
1961
1964
  append(Conversation.new(service_instance_sid: service_instance_sid, inbound_autocreation: inbound_autocreation, routing_assignment_timeout: routing_assignment_timeout, inbound_timeout: inbound_timeout, url: url, method: method, record: record, trim: trim, recording_status_callback: recording_status_callback, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, status_callback_event: status_callback_event, **keyword_args))
1962
1965
  end
1966
+
1967
+ ##
1968
+ # Create a new <ConversationRelay> element
1969
+ # url:: URL of the remote service where the session is connected to
1970
+ # language:: Language to be used for both text-to-speech and transcription
1971
+ # tts_language:: Language to be used for text-to-speech
1972
+ # transcription_language:: Language to be used for transcription
1973
+ # tts_provider:: Provider to be used for text-to-speech
1974
+ # voice:: Voice to be used for text-to-speech
1975
+ # transcription_provider:: Provider to be used for transcription
1976
+ # speech_model:: Speech model to be used for transcription
1977
+ # profanity_filter:: Whether profanities should be filtered out of the speech transcription
1978
+ # dtmf_detection:: Whether DTMF tones should be detected and reported in speech transcription
1979
+ # welcome_greeting:: The sentence to be played automatically when the session is connected
1980
+ # partial_prompts:: Whether partial prompts should be reported to WebSocket server before the caller finishes speaking
1981
+ # interruptible:: Whether caller's speaking can interrupt the play of text-to-speech
1982
+ # interrupt_by_dtmf:: Whether DTMF tone can interrupt the play of text-to-speech
1983
+ # welcome_greeting_interruptible:: Whether caller's speaking can interrupt the welcome greeting
1984
+ # debug:: Whether debugging on the session is enabled
1985
+ # keyword_args:: additional attributes
1986
+ 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, interruptible: nil, interrupt_by_dtmf: nil, welcome_greeting_interruptible: nil, debug: nil, **keyword_args)
1987
+ 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, interruptible: interruptible, interrupt_by_dtmf: interrupt_by_dtmf, welcome_greeting_interruptible: welcome_greeting_interruptible, debug: debug, **keyword_args)
1988
+
1989
+ yield(conversation_relay) if block_given?
1990
+ append(conversation_relay)
1991
+ end
1992
+
1993
+ ##
1994
+ # Create a new <Assistant> element
1995
+ # id:: The assistant ID of the AI Assistant
1996
+ # language:: Language to be used for both text-to-speech and transcription
1997
+ # tts_language:: Language to be used for text-to-speech
1998
+ # transcription_language:: Language to be used for transcription
1999
+ # tts_provider:: Provider to be used for text-to-speech
2000
+ # voice:: Voice to be used for text-to-speech
2001
+ # transcription_provider:: Provider to be used for transcription
2002
+ # speech_model:: Speech model to be used for transcription
2003
+ # profanity_filter:: Whether profanities should be filtered out of the speech transcription
2004
+ # dtmf_detection:: Whether DTMF tones should be detected and reported in speech transcription
2005
+ # welcome_greeting:: The sentence to be played automatically when the session is connected
2006
+ # partial_prompts:: Whether partial prompts should be reported to WebSocket server before the caller finishes speaking
2007
+ # interruptible:: Whether caller's speaking can interrupt the play of text-to-speech
2008
+ # interrupt_by_dtmf:: Whether DTMF tone can interrupt the play of text-to-speech
2009
+ # welcome_greeting_interruptible:: Whether caller's speaking can interrupt the welcome greeting
2010
+ # debug:: Whether debugging on the session is enabled
2011
+ # keyword_args:: additional attributes
2012
+ 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, interruptible: nil, interrupt_by_dtmf: nil, welcome_greeting_interruptible: nil, debug: nil, **keyword_args)
2013
+ 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, interruptible: interruptible, interrupt_by_dtmf: interrupt_by_dtmf, welcome_greeting_interruptible: welcome_greeting_interruptible, debug: debug, **keyword_args)
2014
+
2015
+ yield(assistant) if block_given?
2016
+ append(assistant)
2017
+ end
2018
+ end
2019
+
2020
+ ##
2021
+ # <Assistant> TwiML Noun
2022
+ class Assistant < TwiML
2023
+ def initialize(**keyword_args)
2024
+ super(**keyword_args)
2025
+ @name = 'Assistant'
2026
+
2027
+ yield(self) if block_given?
2028
+ end
2029
+
2030
+ ##
2031
+ # Create a new <Language> element
2032
+ # code:: Language code of this language setting is for
2033
+ # tts_provider:: Provider to be used for text-to-speech of this language
2034
+ # voice:: Voice to be used for text-to-speech of this language
2035
+ # transcription_provider:: Provider to be used for transcription of this language
2036
+ # speech_model:: Speech model to be used for transcription of this language
2037
+ # keyword_args:: additional attributes
2038
+ def language(code: nil, tts_provider: nil, voice: nil, transcription_provider: nil, speech_model: nil, **keyword_args)
2039
+ append(Language.new(code: code, tts_provider: tts_provider, voice: voice, transcription_provider: transcription_provider, speech_model: speech_model, **keyword_args))
2040
+ end
2041
+
2042
+ ##
2043
+ # Create a new <Parameter> element
2044
+ # name:: The name of the custom parameter
2045
+ # value:: The value of the custom parameter
2046
+ # keyword_args:: additional attributes
2047
+ def parameter(name: nil, value: nil, **keyword_args)
2048
+ append(Parameter.new(name: name, value: value, **keyword_args))
2049
+ end
2050
+ end
2051
+
2052
+ ##
2053
+ # <Language> TwiML Noun
2054
+ class Language < TwiML
2055
+ def initialize(**keyword_args)
2056
+ super(**keyword_args)
2057
+ @name = 'Language'
2058
+
2059
+ yield(self) if block_given?
2060
+ end
2061
+ end
2062
+
2063
+ ##
2064
+ # <ConversationRelay> TwiML Noun
2065
+ class ConversationRelay < TwiML
2066
+ def initialize(**keyword_args)
2067
+ super(**keyword_args)
2068
+ @name = 'ConversationRelay'
2069
+
2070
+ yield(self) if block_given?
2071
+ end
2072
+
2073
+ ##
2074
+ # Create a new <Language> element
2075
+ # code:: Language code of this language setting is for
2076
+ # tts_provider:: Provider to be used for text-to-speech of this language
2077
+ # voice:: Voice to be used for text-to-speech of this language
2078
+ # transcription_provider:: Provider to be used for transcription of this language
2079
+ # speech_model:: Speech model to be used for transcription of this language
2080
+ # keyword_args:: additional attributes
2081
+ def language(code: nil, tts_provider: nil, voice: nil, transcription_provider: nil, speech_model: nil, **keyword_args)
2082
+ append(Language.new(code: code, tts_provider: tts_provider, voice: voice, transcription_provider: transcription_provider, speech_model: speech_model, **keyword_args))
2083
+ end
2084
+
2085
+ ##
2086
+ # Create a new <Parameter> element
2087
+ # name:: The name of the custom parameter
2088
+ # value:: The value of the custom parameter
2089
+ # keyword_args:: additional attributes
2090
+ def parameter(name: nil, value: nil, **keyword_args)
2091
+ append(Parameter.new(name: name, value: value, **keyword_args))
2092
+ end
1963
2093
  end
1964
2094
 
1965
2095
  ##
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '7.3.5'
2
+ VERSION = '7.3.7'
3
3
  end
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.5
4
+ version: 7.3.7
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-10-24 00:00:00.000000000 Z
11
+ date: 2024-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt