twilio-ruby 7.6.4 → 7.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3aabe2d10f18948707c56a5b645b942a0b57506
4
- data.tar.gz: 615afb1db51c0deca5f519632f852b2431f0e692
3
+ metadata.gz: 15fce8365020608006981de3fe956b99d5cf865e
4
+ data.tar.gz: a1fcb1d554f257b840662424af7f2d49eefcfd42
5
5
  SHA512:
6
- metadata.gz: 6561467ff44a322cdf93f0bec0a355aba581f8c1d2dd400ab2188d2e2efae5b84695d25e0fee7b039b4bf1a798b46a3acdf36a5bc41f3324c35403ff6d63480f
7
- data.tar.gz: 1d85accc8aaa2a76d5cbeac39d6c11feaffa499409460b49b1c02a02f762d3f2dc21f8194149395b24ea34a1b119e3ab17b1d03abbff809ccee368564a6c4da9
6
+ metadata.gz: d11ae2588147aad274802a4adb891f27ba014421b05fc34c12ca2468e32b3e2e1d93b5ada38f3aca7c411d4715241b294ce659ca2b252883fc43b58b58b12d95
7
+ data.tar.gz: 69b2ad5193e053a1c83be6be81fd1a347c58700700222d0485f53bc624c84caac14d177ab879c44d84a080ba2e29ea2e8bfc326689ed9fa74248977e4a848c1f
data/CHANGES.md CHANGED
@@ -1,6 +1,23 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2025-07-24] Version 7.7.0
5
+ --------------------------
6
+ **Events**
7
+ - Remove `SinkSid` parameter when updating subscriptions. **(breaking change)**
8
+
9
+ **Twiml**
10
+ - Remove Duplicates.
11
+ - Add Polly Generative voices.
12
+ - Add Latest Google (Chirp3-HD) voices.
13
+
14
+
15
+ [2025-07-10] Version 7.6.5
16
+ --------------------------
17
+ **Flex**
18
+ - update team name for web_channel, webchat_init_token, webchat_refresh_token
19
+
20
+
4
21
  [2025-07-03] Version 7.6.4
5
22
  --------------------------
6
23
  **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.6.4'
42
+ gem 'twilio-ruby', '~> 7.7.0'
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.6.4
48
+ gem install twilio-ruby -v 7.7.0
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
@@ -214,16 +214,13 @@ module Twilio
214
214
  ##
215
215
  # Update the SubscriptionInstance
216
216
  # @param [String] description A human readable description for the Subscription.
217
- # @param [String] sink_sid The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created.
218
217
  # @return [SubscriptionInstance] Updated SubscriptionInstance
219
218
  def update(
220
- description: :unset,
221
- sink_sid: :unset
219
+ description: :unset
222
220
  )
223
221
 
224
222
  data = Twilio::Values.of({
225
223
  'Description' => description,
226
- 'SinkSid' => sink_sid,
227
224
  })
228
225
 
229
226
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -411,16 +408,13 @@ module Twilio
411
408
  ##
412
409
  # Update the SubscriptionInstance
413
410
  # @param [String] description A human readable description for the Subscription.
414
- # @param [String] sink_sid The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created.
415
411
  # @return [SubscriptionInstance] Updated SubscriptionInstance
416
412
  def update(
417
- description: :unset,
418
- sink_sid: :unset
413
+ description: :unset
419
414
  )
420
415
 
421
416
  context.update(
422
417
  description: description,
423
- sink_sid: sink_sid,
424
418
  )
425
419
  end
426
420
 
@@ -61,6 +61,10 @@ module Twilio
61
61
  # @param [Boolean] branded_enabled A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false'
62
62
  # @param [Boolean] voice_integrity_enabled A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false'
63
63
  # @param [String] branded_bundle_sid A unique SID identifier of the Branded Call.
64
+ # @param [Boolean] branded_logo Indicates whether the branded logo was displayed during the in_brand branded call. Possible values are true (logo was present) or false (logo was not present).
65
+ # @param [String] branded_type Indicates whether the Branded Call is in_band vs out_of_band.
66
+ # @param [String] branded_use_case Specifies the user-defined purpose for the call, as provided during the setup of in_band branded calling.
67
+ # @param [String] branded_call_reason Specifies the user-defined reason for the call, which will be displayed to the end user on their mobile device during an in_band branded call.
64
68
  # @param [String] voice_integrity_bundle_sid A unique SID identifier of the Voice Integrity Profile.
65
69
  # @param [String] voice_integrity_use_case A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'.
66
70
  # @param [String] business_profile_identity A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
@@ -74,7 +78,7 @@ module Twilio
74
78
  # but a limit is defined, stream() will attempt to read the limit with the most
75
79
  # efficient page size, i.e. min(limit, 1000)
76
80
  # @return [Array] Array of up to limit results
77
- def list(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, answered_by_annotation: :unset, connectivity_issue_annotation: :unset, quality_issue_annotation: :unset, spam_annotation: :unset, call_score_annotation: :unset, branded_enabled: :unset, voice_integrity_enabled: :unset, branded_bundle_sid: :unset, voice_integrity_bundle_sid: :unset, voice_integrity_use_case: :unset, business_profile_identity: :unset, business_profile_industry: :unset, business_profile_bundle_sid: :unset, business_profile_type: :unset, limit: nil, page_size: nil)
81
+ def list(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, answered_by_annotation: :unset, connectivity_issue_annotation: :unset, quality_issue_annotation: :unset, spam_annotation: :unset, call_score_annotation: :unset, branded_enabled: :unset, voice_integrity_enabled: :unset, branded_bundle_sid: :unset, branded_logo: :unset, branded_type: :unset, branded_use_case: :unset, branded_call_reason: :unset, voice_integrity_bundle_sid: :unset, voice_integrity_use_case: :unset, business_profile_identity: :unset, business_profile_industry: :unset, business_profile_bundle_sid: :unset, business_profile_type: :unset, limit: nil, page_size: nil)
78
82
  self.stream(
79
83
  from: from,
80
84
  to: to,
@@ -102,6 +106,10 @@ module Twilio
102
106
  branded_enabled: branded_enabled,
103
107
  voice_integrity_enabled: voice_integrity_enabled,
104
108
  branded_bundle_sid: branded_bundle_sid,
109
+ branded_logo: branded_logo,
110
+ branded_type: branded_type,
111
+ branded_use_case: branded_use_case,
112
+ branded_call_reason: branded_call_reason,
105
113
  voice_integrity_bundle_sid: voice_integrity_bundle_sid,
106
114
  voice_integrity_use_case: voice_integrity_use_case,
107
115
  business_profile_identity: business_profile_identity,
@@ -143,6 +151,10 @@ module Twilio
143
151
  # @param [Boolean] branded_enabled A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false'
144
152
  # @param [Boolean] voice_integrity_enabled A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false'
145
153
  # @param [String] branded_bundle_sid A unique SID identifier of the Branded Call.
154
+ # @param [Boolean] branded_logo Indicates whether the branded logo was displayed during the in_brand branded call. Possible values are true (logo was present) or false (logo was not present).
155
+ # @param [String] branded_type Indicates whether the Branded Call is in_band vs out_of_band.
156
+ # @param [String] branded_use_case Specifies the user-defined purpose for the call, as provided during the setup of in_band branded calling.
157
+ # @param [String] branded_call_reason Specifies the user-defined reason for the call, which will be displayed to the end user on their mobile device during an in_band branded call.
146
158
  # @param [String] voice_integrity_bundle_sid A unique SID identifier of the Voice Integrity Profile.
147
159
  # @param [String] voice_integrity_use_case A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'.
148
160
  # @param [String] business_profile_identity A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
@@ -156,7 +168,7 @@ module Twilio
156
168
  # but a limit is defined, stream() will attempt to read the limit with the most
157
169
  # efficient page size, i.e. min(limit, 1000)
158
170
  # @return [Enumerable] Enumerable that will yield up to limit results
159
- def stream(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, answered_by_annotation: :unset, connectivity_issue_annotation: :unset, quality_issue_annotation: :unset, spam_annotation: :unset, call_score_annotation: :unset, branded_enabled: :unset, voice_integrity_enabled: :unset, branded_bundle_sid: :unset, voice_integrity_bundle_sid: :unset, voice_integrity_use_case: :unset, business_profile_identity: :unset, business_profile_industry: :unset, business_profile_bundle_sid: :unset, business_profile_type: :unset, limit: nil, page_size: nil)
171
+ def stream(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, answered_by_annotation: :unset, connectivity_issue_annotation: :unset, quality_issue_annotation: :unset, spam_annotation: :unset, call_score_annotation: :unset, branded_enabled: :unset, voice_integrity_enabled: :unset, branded_bundle_sid: :unset, branded_logo: :unset, branded_type: :unset, branded_use_case: :unset, branded_call_reason: :unset, voice_integrity_bundle_sid: :unset, voice_integrity_use_case: :unset, business_profile_identity: :unset, business_profile_industry: :unset, business_profile_bundle_sid: :unset, business_profile_type: :unset, limit: nil, page_size: nil)
160
172
  limits = @version.read_limits(limit, page_size)
161
173
 
162
174
  page = self.page(
@@ -186,6 +198,10 @@ module Twilio
186
198
  branded_enabled: branded_enabled,
187
199
  voice_integrity_enabled: voice_integrity_enabled,
188
200
  branded_bundle_sid: branded_bundle_sid,
201
+ branded_logo: branded_logo,
202
+ branded_type: branded_type,
203
+ branded_use_case: branded_use_case,
204
+ branded_call_reason: branded_call_reason,
189
205
  voice_integrity_bundle_sid: voice_integrity_bundle_sid,
190
206
  voice_integrity_use_case: voice_integrity_use_case,
191
207
  business_profile_identity: business_profile_identity,
@@ -240,6 +256,10 @@ module Twilio
240
256
  # @param [Boolean] branded_enabled A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false'
241
257
  # @param [Boolean] voice_integrity_enabled A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false'
242
258
  # @param [String] branded_bundle_sid A unique SID identifier of the Branded Call.
259
+ # @param [Boolean] branded_logo Indicates whether the branded logo was displayed during the in_brand branded call. Possible values are true (logo was present) or false (logo was not present).
260
+ # @param [String] branded_type Indicates whether the Branded Call is in_band vs out_of_band.
261
+ # @param [String] branded_use_case Specifies the user-defined purpose for the call, as provided during the setup of in_band branded calling.
262
+ # @param [String] branded_call_reason Specifies the user-defined reason for the call, which will be displayed to the end user on their mobile device during an in_band branded call.
243
263
  # @param [String] voice_integrity_bundle_sid A unique SID identifier of the Voice Integrity Profile.
244
264
  # @param [String] voice_integrity_use_case A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'.
245
265
  # @param [String] business_profile_identity A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
@@ -250,7 +270,7 @@ module Twilio
250
270
  # @param [Integer] page_number Page Number, this value is simply for client state
251
271
  # @param [Integer] page_size Number of records to return, defaults to 50
252
272
  # @return [Page] Page of CallSummariesInstance
253
- def page(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, answered_by_annotation: :unset, connectivity_issue_annotation: :unset, quality_issue_annotation: :unset, spam_annotation: :unset, call_score_annotation: :unset, branded_enabled: :unset, voice_integrity_enabled: :unset, branded_bundle_sid: :unset, voice_integrity_bundle_sid: :unset, voice_integrity_use_case: :unset, business_profile_identity: :unset, business_profile_industry: :unset, business_profile_bundle_sid: :unset, business_profile_type: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
273
+ def page(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, answered_by_annotation: :unset, connectivity_issue_annotation: :unset, quality_issue_annotation: :unset, spam_annotation: :unset, call_score_annotation: :unset, branded_enabled: :unset, voice_integrity_enabled: :unset, branded_bundle_sid: :unset, branded_logo: :unset, branded_type: :unset, branded_use_case: :unset, branded_call_reason: :unset, voice_integrity_bundle_sid: :unset, voice_integrity_use_case: :unset, business_profile_identity: :unset, business_profile_industry: :unset, business_profile_bundle_sid: :unset, business_profile_type: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
254
274
  params = Twilio::Values.of({
255
275
  'From' => from,
256
276
  'To' => to,
@@ -278,6 +298,10 @@ module Twilio
278
298
  'BrandedEnabled' => branded_enabled,
279
299
  'VoiceIntegrityEnabled' => voice_integrity_enabled,
280
300
  'BrandedBundleSid' => branded_bundle_sid,
301
+ 'BrandedLogo' => branded_logo,
302
+ 'BrandedType' => branded_type,
303
+ 'BrandedUseCase' => branded_use_case,
304
+ 'BrandedCallReason' => branded_call_reason,
281
305
  'VoiceIntegrityBundleSid' => voice_integrity_bundle_sid,
282
306
  'VoiceIntegrityUseCase' => voice_integrity_use_case,
283
307
  'BusinessProfileIdentity' => business_profile_identity,
@@ -20,8 +20,8 @@ module Twilio
20
20
  class LookupOverrideList < ListResource
21
21
 
22
22
  class OverridesRequest
23
- # @param [line_type]: [String]
24
- # @param [reason]: [String]
23
+ # @param [line_type]: [String] The new line type to override the original line type
24
+ # @param [reason]: [String] The reason for the override
25
25
  attr_accessor :line_type, :reason
26
26
  def initialize(payload)
27
27
  @line_type = payload["line_type"]
@@ -242,19 +242,19 @@ module Twilio
242
242
  end
243
243
 
244
244
  ##
245
- # @return [String]
245
+ # @return [String] The phone number for which the override was created
246
246
  def phone_number
247
247
  @properties['phone_number']
248
248
  end
249
249
 
250
250
  ##
251
- # @return [String]
251
+ # @return [String] The original line type
252
252
  def original_line_type
253
253
  @properties['original_line_type']
254
254
  end
255
255
 
256
256
  ##
257
- # @return [String]
257
+ # @return [String] The new line type after the override
258
258
  def overridden_line_type
259
259
  @properties['overridden_line_type']
260
260
  end
@@ -272,7 +272,7 @@ module Twilio
272
272
  end
273
273
 
274
274
  ##
275
- # @return [String] The user who overrode the line type
275
+ # @return [String] The Account SID for the user who made the override
276
276
  def overridden_by_account_sid
277
277
  @properties['overridden_by_account_sid']
278
278
  end
@@ -281,13 +281,13 @@ module Twilio
281
281
  'account_sid' => payload['account_sid'],
282
282
  'room_sid' => payload['room_sid'],
283
283
  'status' => payload['status'],
284
- 'identity' => payload['identity'],
285
284
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
286
285
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
287
286
  'start_time' => Twilio.deserialize_iso8601_datetime(payload['start_time']),
288
287
  'end_time' => Twilio.deserialize_iso8601_datetime(payload['end_time']),
289
288
  'duration' => payload['duration'] == nil ? payload['duration'] : payload['duration'].to_i,
290
289
  'url' => payload['url'],
290
+ 'configuration' => payload['configuration'],
291
291
  }
292
292
 
293
293
  # Context
@@ -330,12 +330,6 @@ module Twilio
330
330
  @properties['status']
331
331
  end
332
332
 
333
- ##
334
- # @return [String] The application-defined string that uniquely identifies the resource's User within a Room. If a client joins with an existing Identity, the existing client is disconnected. See [access tokens](https://www.twilio.com/docs/video/tutorials/user-identity-access-tokens) and [limits](https://www.twilio.com/docs/video/programmable-video-limits) for more info.
335
- def identity
336
- @properties['identity']
337
- end
338
-
339
333
  ##
340
334
  # @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
341
335
  def date_created
@@ -372,6 +366,12 @@ module Twilio
372
366
  @properties['url']
373
367
  end
374
368
 
369
+ ##
370
+ # @return [Hash] An JSON object that describes the video layout of the composition in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
371
+ def configuration
372
+ @properties['configuration']
373
+ end
374
+
375
375
  ##
376
376
  # Fetch the TranscriptionsInstance
377
377
  # @return [TranscriptionsInstance] Fetched TranscriptionsInstance
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '7.6.4'
2
+ VERSION = '7.7.0'
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.6.4
4
+ version: 7.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twilio API Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-03 00:00:00.000000000 Z
11
+ date: 2025-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt