twilio-ruby 7.3.6 → 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 +4 -4
- data/CHANGES.md +16 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +4 -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/numbers/v2/hosted_number_order.rb +90 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service.rb +2 -2
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +2 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +2 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +3 -3
- data/lib/twilio-ruby/twiml/voice_response.rb +136 -6
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 182ec237b162cf02d16e3a4dc40fc5499c689499
|
|
4
|
+
data.tar.gz: caaf9bf2cb6aa21da43180e7ed772ad8421aa7ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 50bd70ed5afd1f9d050ffe7ca6c0a2d6d71de08e7e5392e1da40b88de5e4e3d35ae48c5728466fb47370cfa4682e5bb73ccd0e968eb2df8e97d8aeef924b986a
|
|
7
|
+
data.tar.gz: 05723bb62e01c7dd88e95bf9c9bdfae857063ee559d391aea43fa07b4c9ea8bf9e1633a3e183a92acf3d304d6a147351d2cceaf1e392025995f34014be4e9e3b
|
data/CHANGES.md
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
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
|
+
|
|
4
20
|
[2024-11-15] Version 7.3.6
|
|
5
21
|
--------------------------
|
|
6
22
|
**Library - Chore**
|
data/README.md
CHANGED
|
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
|
|
|
39
39
|
To install using [Bundler][bundler] grab the latest stable version:
|
|
40
40
|
|
|
41
41
|
```ruby
|
|
42
|
-
gem 'twilio-ruby', '~> 7.3.
|
|
42
|
+
gem 'twilio-ruby', '~> 7.3.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.
|
|
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', })
|
|
@@ -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,14 +31,14 @@ 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', })
|
|
39
39
|
|
|
40
40
|
payload = @version.fetch('GET', @uri, headers: headers)
|
|
41
|
-
|
|
41
|
+
PortingWebhookConfigurationFetchInstance.new(
|
|
42
42
|
@version,
|
|
43
43
|
payload,
|
|
44
44
|
)
|
|
@@ -49,17 +49,17 @@ module Twilio
|
|
|
49
49
|
|
|
50
50
|
# Provide a user friendly representation
|
|
51
51
|
def to_s
|
|
52
|
-
'#<Twilio.Numbers.V1.
|
|
52
|
+
'#<Twilio.Numbers.V1.PortingWebhookConfigurationFetchList>'
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
-
class
|
|
56
|
+
class PortingWebhookConfigurationFetchPage < Page
|
|
57
57
|
##
|
|
58
|
-
# Initialize the
|
|
58
|
+
# Initialize the PortingWebhookConfigurationFetchPage
|
|
59
59
|
# @param [Version] version Version that contains the resource
|
|
60
60
|
# @param [Response] response Response from the API
|
|
61
61
|
# @param [Hash] solution Path solution for the resource
|
|
62
|
-
# @return [
|
|
62
|
+
# @return [PortingWebhookConfigurationFetchPage] PortingWebhookConfigurationFetchPage
|
|
63
63
|
def initialize(version, response, solution)
|
|
64
64
|
super(version, response)
|
|
65
65
|
|
|
@@ -68,29 +68,29 @@ module Twilio
|
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
##
|
|
71
|
-
# Build an instance of
|
|
71
|
+
# Build an instance of PortingWebhookConfigurationFetchInstance
|
|
72
72
|
# @param [Hash] payload Payload response from the API
|
|
73
|
-
# @return [
|
|
73
|
+
# @return [PortingWebhookConfigurationFetchInstance] PortingWebhookConfigurationFetchInstance
|
|
74
74
|
def get_instance(payload)
|
|
75
|
-
|
|
75
|
+
PortingWebhookConfigurationFetchInstance.new(@version, payload)
|
|
76
76
|
end
|
|
77
77
|
|
|
78
78
|
##
|
|
79
79
|
# Provide a user friendly representation
|
|
80
80
|
def to_s
|
|
81
|
-
'<Twilio.Numbers.V1.
|
|
81
|
+
'<Twilio.Numbers.V1.PortingWebhookConfigurationFetchPage>'
|
|
82
82
|
end
|
|
83
83
|
end
|
|
84
|
-
class
|
|
84
|
+
class PortingWebhookConfigurationFetchInstance < InstanceResource
|
|
85
85
|
##
|
|
86
|
-
# Initialize the
|
|
86
|
+
# Initialize the PortingWebhookConfigurationFetchInstance
|
|
87
87
|
# @param [Version] version Version that contains the resource
|
|
88
88
|
# @param [Hash] payload payload that contains response from Twilio
|
|
89
89
|
# @param [String] account_sid The SID of the
|
|
90
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this
|
|
90
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this PortingWebhookConfigurationFetch
|
|
91
91
|
# resource.
|
|
92
92
|
# @param [String] sid The SID of the Call resource to fetch.
|
|
93
|
-
# @return [
|
|
93
|
+
# @return [PortingWebhookConfigurationFetchInstance] PortingWebhookConfigurationFetchInstance
|
|
94
94
|
def initialize(version, payload )
|
|
95
95
|
super(version)
|
|
96
96
|
|
|
@@ -145,13 +145,13 @@ module Twilio
|
|
|
145
145
|
##
|
|
146
146
|
# Provide a user friendly representation
|
|
147
147
|
def to_s
|
|
148
|
-
"<Twilio.Numbers.V1.
|
|
148
|
+
"<Twilio.Numbers.V1.PortingWebhookConfigurationFetchInstance>"
|
|
149
149
|
end
|
|
150
150
|
|
|
151
151
|
##
|
|
152
152
|
# Provide a detailed, user friendly representation
|
|
153
153
|
def inspect
|
|
154
|
-
"<Twilio.Numbers.V1.
|
|
154
|
+
"<Twilio.Numbers.V1.PortingWebhookConfigurationFetchInstance>"
|
|
155
155
|
end
|
|
156
156
|
end
|
|
157
157
|
|
|
@@ -28,8 +28,8 @@ module Twilio
|
|
|
28
28
|
@porting_portabilities = nil
|
|
29
29
|
@porting_webhook_configurations = nil
|
|
30
30
|
@porting_webhook_configurations_delete = nil
|
|
31
|
+
@porting_webhook_configuration_fetch = nil
|
|
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>';
|
|
@@ -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
|
|
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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
##
|
data/lib/twilio-ruby/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: twilio-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.3.
|
|
4
|
+
version: 7.3.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-
|
|
11
|
+
date: 2024-12-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jwt
|
|
@@ -608,8 +608,8 @@ files:
|
|
|
608
608
|
- lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
|
|
609
609
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb
|
|
610
610
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb
|
|
611
|
+
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb
|
|
611
612
|
- lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb
|
|
612
|
-
- lib/twilio-ruby/rest/numbers/v1/webhook.rb
|
|
613
613
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
|
614
614
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document.rb
|
|
615
615
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb
|