twilio-ruby 7.5.2 → 7.6.1

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: d712ec9531d94615ce16b7b859693eb92efe8aef
4
- data.tar.gz: 81f4f2fe625f922615d0874cfe652058d6419229
3
+ metadata.gz: 9801d32feca1e5815f61daea7c635f2015bdffc7
4
+ data.tar.gz: b8f56c410606ddf5046b82cec5e6458e6aad04c0
5
5
  SHA512:
6
- metadata.gz: 33d089a34b55b75c13a3643d14b02183c368906770af28917ef9a8441abffd73afb88c3495b9a6bf7a41868bc36372c18999fc04ff4f40376a8a4cb552bbe982
7
- data.tar.gz: 103dbb5c6885d46b382df7083ad299fb278392af5c9326fb63ec1e66fb0ce5af1be8ade1b2d4598c1b71b684f98af6c631d16c03f2fd8389c2f6b47dfc0529ba
6
+ metadata.gz: b6403cb1a081c5fa6c65159825ca31a13020794471fa67065fd8e4d6c56e193d45cfd9cba92734c950c8d0c87352102bda8ce5b4dcb08da11c999bbd04918842
7
+ data.tar.gz: 2f022baa0ddbda5ad073ecbec9a218e00dda29f0140c578b432e4db463b6ba153ce066075e8cf81b9a95bc21e606e1f9488f4d4b848ba9225e9e4d55a7c4f109
@@ -17,7 +17,7 @@ jobs:
17
17
  timeout-minutes: 20
18
18
  strategy:
19
19
  matrix:
20
- ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', 'ruby-head', 'jruby-9.3', 'jruby-9.4' ]
20
+ ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', 'jruby-9.3', 'jruby-9.4' ]
21
21
  steps:
22
22
  - name: Checkout twilio-ruby
23
23
  uses: actions/checkout@v3
@@ -40,7 +40,7 @@ jobs:
40
40
 
41
41
  - name: Run linter
42
42
  run: bundle exec rubocop -d --cache true --parallel
43
- if: ${{ matrix.ruby != '2.4' }}
43
+ if: ${{ matrix.ruby != '2.4'}}
44
44
 
45
45
  - name: Run Unit Tests
46
46
  run: make test
data/CHANGES.md CHANGED
@@ -1,6 +1,39 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2025-05-13] Version 7.6.1
5
+ --------------------------
6
+ **Accounts**
7
+ - Changes to add date_of_consent param in Bulk Consent API
8
+
9
+ **Api**
10
+ - Change `friendly_name`, `date_created` and `date_updated` properties to type `string`.
11
+
12
+ **Twiml**
13
+ - Update twiml definition for `<ConversationRelay>` and `<Assistant>`
14
+
15
+
16
+ [2025-05-05] Version 7.6.0
17
+ --------------------------
18
+ **Library - Chore**
19
+ - [PR #742](https://github.com/twilio/twilio-ruby/pull/742): remove ostruct and benchmark from gemspec. Thanks to [@oehlschl](https://github.com/oehlschl)!
20
+
21
+ **Api**
22
+ - Add `response_key` for `Usage Triggers` fetch endpoint.
23
+
24
+ **Flex**
25
+ - Add Update Interaction API
26
+ - Adding `webhook_ttid` as optional parameter in Interactions API
27
+
28
+ **Serverless**
29
+ - Add node22 as a valid Build runtime
30
+ - Add node20 as a valid Build runtime
31
+
32
+ **Video**
33
+ - removed `transcribe_participants_on_connect` and `transcriptions_configuration` from the room resource **(breaking change)**
34
+ - Added `transcribe_participants_on_connect` and `transcriptions_configuration` to the room resource
35
+
36
+
4
37
  [2025-04-07] Version 7.5.2
5
38
  --------------------------
6
39
  **Studio**
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.5.2'
42
+ gem 'twilio-ruby', '~> 7.6.1'
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.5.2
48
+ gem install twilio-ruby -v 7.6.1
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
@@ -32,7 +32,7 @@ module Twilio
32
32
  end
33
33
  ##
34
34
  # Create the BulkConsentsInstance
35
- # @param [Array[Hash]] items This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`].
35
+ # @param [Array[Hash]] items This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]; `date_of_consent`, an optional datetime string field in ISO-8601 format that captures the exact date and time when the user gave or revoked consent. If not provided, it will be empty.
36
36
  # @return [BulkConsentsInstance] Created BulkConsentsInstance
37
37
  def create(
38
38
  items: nil
@@ -181,8 +181,8 @@ module Twilio
181
181
  'voice_fallback_method' => payload['voice_fallback_method'],
182
182
  'voice_fallback_url' => payload['voice_fallback_url'],
183
183
  'voice_caller_id_lookup' => payload['voice_caller_id_lookup'],
184
- 'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
185
- 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
184
+ 'date_created' => payload['date_created'],
185
+ 'date_updated' => payload['date_updated'],
186
186
  'sms_fallback_method' => payload['sms_fallback_method'],
187
187
  'sms_fallback_url' => payload['sms_fallback_url'],
188
188
  'sms_method' => payload['sms_method'],
@@ -257,13 +257,13 @@ module Twilio
257
257
  end
258
258
 
259
259
  ##
260
- # @return [Time] The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
260
+ # @return [String] The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
261
261
  def date_created
262
262
  @properties['date_created']
263
263
  end
264
264
 
265
265
  ##
266
- # @return [Time] The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
266
+ # @return [String] The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
267
267
  def date_updated
268
268
  @properties['date_updated']
269
269
  end
@@ -299,7 +299,7 @@ module Twilio
299
299
  end
300
300
 
301
301
  ##
302
- # @return [Hash] The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`.
302
+ # @return [ApiV2010AccountAddressDependentPhoneNumberCapabilities]
303
303
  def capabilities
304
304
  @properties['capabilities']
305
305
  end
@@ -48,7 +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 unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
51
+ # @param [String] intelligence_service The SID or unique name of the [Intelligence Service](https://www.twilio.com/docs/conversational-intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
52
52
  # @return [TranscriptionInstance] Created TranscriptionInstance
53
53
  def create(
54
54
  name: :unset,
@@ -42,7 +42,7 @@ module Twilio
42
42
  # @param [String] status_callback The URL we should call using the `status_callback_method` to send status information to your application. If no `status_callback_event` is specified, we will send the `completed` status. If an `application_sid` parameter is present, this parameter is ignored. URLs must contain a valid hostname (underscores are not permitted).
43
43
  # @param [Array[String]] status_callback_event The call progress events that we will send to the `status_callback` URL. Can be: `initiated`, `ringing`, `answered`, and `completed`. If no event is specified, we send the `completed` status. If you want to receive multiple events, specify each one in a separate `status_callback_event` parameter. See the code sample for [monitoring call progress](https://www.twilio.com/docs/voice/api/call-resource?code-sample=code-create-a-call-resource-and-specify-a-statuscallbackevent&code-sdk-version=json). If an `application_sid` is present, this parameter is ignored.
44
44
  # @param [String] status_callback_method The HTTP method we should use when calling the `status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored.
45
- # @param [String] send_digits A string of keys to dial after connecting to the number, maximum of 32 digits. Valid digits in the string include: any digit (`0`-`9`), '`#`', '`*`' and '`w`', to insert a half second pause. For example, if you connected to a company phone number and wanted to pause for one second, and then dial extension 1234 followed by the pound key, the value of this parameter would be `ww1234#`. Remember to URL-encode this string, since the '`#`' character has special meaning in a URL. If both `SendDigits` and `MachineDetection` parameters are provided, then `MachineDetection` will be ignored.
45
+ # @param [String] send_digits The string of keys to dial after connecting to the number, with a maximum length of 32 digits. Valid digits in the string include any digit (`0`-`9`), '`A`', '`B`', '`C`', '`D`', '`#`', and '`*`'. You can also use '`w`' to insert a half-second pause and '`W`' to insert a one-second pause. For example, to pause for one second after connecting and then dial extension 1234 followed by the # key, set this parameter to `W1234#`. Be sure to URL-encode this string because the '`#`' character has special meaning in a URL. If both `SendDigits` and `MachineDetection` parameters are provided, then `MachineDetection` will be ignored.
46
46
  # @param [String] timeout The integer number of seconds that we should allow the phone to ring before assuming there is no answer. The default is `60` seconds and the maximum is `600` seconds. For some call flows, we will add a 5-second buffer to the timeout value you provide. For this reason, a timeout value of 10 seconds could result in an actual timeout closer to 15 seconds. You can set this to a short time, such as `15` seconds, to hang up before reaching an answering machine or voicemail.
47
47
  # @param [Boolean] record Whether to record the call. Can be `true` to record the phone call, or `false` to not. The default is `false`. The `recording_url` is sent to the `status_callback` URL.
48
48
  # @param [String] recording_channels The number of channels in the final recording. Can be: `mono` or `dual`. The default is `mono`. `mono` records both legs of the call in a single channel of the recording file. `dual` records each leg to a separate channel of the recording file. The first channel of a dual-channel recording contains the parent call and the second channel contains the child call.
@@ -47,7 +47,7 @@ module Twilio
47
47
  # @param [String] beep Whether to play a notification beep to the conference when the participant joins. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`.
48
48
  # @param [Boolean] start_conference_on_enter Whether to start the conference when the participant joins, if it has not already started. Can be: `true` or `false` and the default is `true`. If `false` and the conference has not started, the participant is muted and hears background music until another participant starts the conference.
49
49
  # @param [Boolean] end_conference_on_exit Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`.
50
- # @param [String] wait_url The URL we should call using the `wait_method` for the music to play while participants are waiting for the conference to start. The default value is the URL of our standard hold music. [Learn more about hold music](https://www.twilio.com/labs/twimlets/holdmusic).
50
+ # @param [String] wait_url The URL that Twilio calls using the `wait_method` before the conference has started. The URL may return an MP3 file, a WAV file, or a TwiML document. The default value is the URL of our standard hold music. If you do not want anything to play while waiting for the conference to start, specify an empty string by setting `wait_url` to `''`. For more details on the allowable verbs within the `waitUrl`, see the `waitUrl` attribute in the [<Conference> TwiML instruction](https://www.twilio.com/docs/voice/twiml/conference#attributes-waiturl).
51
51
  # @param [String] wait_method The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file.
52
52
  # @param [Boolean] early_media Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. Can be: `true` or `false` and defaults to `true`.
53
53
  # @param [String] max_participants The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`.
@@ -374,7 +374,7 @@ module Twilio
374
374
  # @param [String] hold_method The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`.
375
375
  # @param [String] announce_url The URL we call using the `announce_method` for an announcement to the participant. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs.
376
376
  # @param [String] announce_method The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`.
377
- # @param [String] wait_url The URL we call using the `wait_method` for the music to play while participants are waiting for the conference to start. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs. The default value is the URL of our standard hold music. [Learn more about hold music](https://www.twilio.com/labs/twimlets/holdmusic).
377
+ # @param [String] wait_url The URL that Twilio calls using the `wait_method` before the conference has started. The URL may return an MP3 file, a WAV file, or a TwiML document. The default value is the URL of our standard hold music. If you do not want anything to play while waiting for the conference to start, specify an empty string by setting `wait_url` to `''`. For more details on the allowable verbs within the `waitUrl`, see the `waitUrl` attribute in the [<Conference> TwiML instruction](https://www.twilio.com/docs/voice/twiml/conference#attributes-waiturl).
378
378
  # @param [String] wait_method The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file.
379
379
  # @param [Boolean] beep_on_exit Whether to play a notification beep to the conference when the participant exits. Can be: `true` or `false`.
380
380
  # @param [Boolean] end_conference_on_exit Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`.
@@ -633,7 +633,7 @@ module Twilio
633
633
  # @param [String] hold_method The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`.
634
634
  # @param [String] announce_url The URL we call using the `announce_method` for an announcement to the participant. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs.
635
635
  # @param [String] announce_method The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`.
636
- # @param [String] wait_url The URL we call using the `wait_method` for the music to play while participants are waiting for the conference to start. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs. The default value is the URL of our standard hold music. [Learn more about hold music](https://www.twilio.com/labs/twimlets/holdmusic).
636
+ # @param [String] wait_url The URL that Twilio calls using the `wait_method` before the conference has started. The URL may return an MP3 file, a WAV file, or a TwiML document. The default value is the URL of our standard hold music. If you do not want anything to play while waiting for the conference to start, specify an empty string by setting `wait_url` to `''`. For more details on the allowable verbs within the `waitUrl`, see the `waitUrl` attribute in the [<Conference> TwiML instruction](https://www.twilio.com/docs/voice/twiml/conference#attributes-waiturl).
637
637
  # @param [String] wait_method The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file.
638
638
  # @param [Boolean] beep_on_exit Whether to play a notification beep to the conference when the participant exits. Can be: `true` or `false`.
639
639
  # @param [Boolean] end_conference_on_exit Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`.
@@ -41,13 +41,15 @@ module Twilio
41
41
  # @param [url]: [String]
42
42
  # @param [phone]: [String]
43
43
  # @param [code]: [String]
44
- attr_accessor :type, :title, :url, :phone, :code
44
+ # @param [id]: [String]
45
+ attr_accessor :type, :title, :url, :phone, :code, :id
45
46
  def initialize(payload)
46
47
  @type = payload["type"]
47
48
  @title = payload["title"]
48
49
  @url = payload["url"]
49
50
  @phone = payload["phone"]
50
51
  @code = payload["code"]
52
+ @id = payload["id"]
51
53
  end
52
54
  def to_json(options = {})
53
55
  {
@@ -56,6 +58,7 @@ module Twilio
56
58
  "url": @url,
57
59
  "phone": @phone,
58
60
  "code": @code,
61
+ "id": @id,
59
62
  }.to_json(options)
60
63
  end
61
64
  end
@@ -397,17 +400,23 @@ module Twilio
397
400
  # @param [latitude]: [Float]
398
401
  # @param [longitude]: [Float]
399
402
  # @param [label]: [String]
400
- attr_accessor :latitude, :longitude, :label
403
+ # @param [id]: [String]
404
+ # @param [address]: [String]
405
+ attr_accessor :latitude, :longitude, :label, :id, :address
401
406
  def initialize(payload)
402
407
  @latitude = payload["latitude"]
403
408
  @longitude = payload["longitude"]
404
409
  @label = payload["label"]
410
+ @id = payload["id"]
411
+ @address = payload["address"]
405
412
  end
406
413
  def to_json(options = {})
407
414
  {
408
415
  "latitude": @latitude,
409
416
  "longitude": @longitude,
410
417
  "label": @label,
418
+ "id": @id,
419
+ "address": @address,
411
420
  }.to_json(options)
412
421
  end
413
422
  end
@@ -35,20 +35,17 @@ module Twilio
35
35
  # @param [String] description A human readable description for the Subscription **This value should not contain PII.**
36
36
  # @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.
37
37
  # @param [Array[Hash]] types An array of objects containing the subscribed Event Types
38
- # @param [Boolean] receive_events_from_subaccounts Receive events from all children accounts in the parent account subscription.
39
38
  # @return [SubscriptionInstance] Created SubscriptionInstance
40
39
  def create(
41
40
  description: nil,
42
41
  sink_sid: nil,
43
- types: nil,
44
- receive_events_from_subaccounts: :unset
42
+ types: nil
45
43
  )
46
44
 
47
45
  data = Twilio::Values.of({
48
46
  'Description' => description,
49
47
  'SinkSid' => sink_sid,
50
48
  'Types' => Twilio.serialize_list(types) { |e| Twilio.serialize_object(e) },
51
- 'ReceiveEventsFromSubaccounts' => receive_events_from_subaccounts,
52
49
  })
53
50
 
54
51
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -218,18 +215,15 @@ module Twilio
218
215
  # Update the SubscriptionInstance
219
216
  # @param [String] description A human readable description for the Subscription.
220
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.
221
- # @param [Boolean] receive_events_from_subaccounts Receive events from all children accounts in the parent account subscription.
222
218
  # @return [SubscriptionInstance] Updated SubscriptionInstance
223
219
  def update(
224
220
  description: :unset,
225
- sink_sid: :unset,
226
- receive_events_from_subaccounts: :unset
221
+ sink_sid: :unset
227
222
  )
228
223
 
229
224
  data = Twilio::Values.of({
230
225
  'Description' => description,
231
226
  'SinkSid' => sink_sid,
232
- 'ReceiveEventsFromSubaccounts' => receive_events_from_subaccounts,
233
227
  })
234
228
 
235
229
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -332,7 +326,6 @@ module Twilio
332
326
  'sink_sid' => payload['sink_sid'],
333
327
  'url' => payload['url'],
334
328
  'links' => payload['links'],
335
- 'receive_events_from_subaccounts' => payload['receive_events_from_subaccounts'],
336
329
  }
337
330
 
338
331
  # Context
@@ -399,12 +392,6 @@ module Twilio
399
392
  @properties['links']
400
393
  end
401
394
 
402
- ##
403
- # @return [Boolean] Receive events from all children accounts in the parent account subscription.
404
- def receive_events_from_subaccounts
405
- @properties['receive_events_from_subaccounts']
406
- end
407
-
408
395
  ##
409
396
  # Delete the SubscriptionInstance
410
397
  # @return [Boolean] True if delete succeeds, false otherwise
@@ -425,18 +412,15 @@ module Twilio
425
412
  # Update the SubscriptionInstance
426
413
  # @param [String] description A human readable description for the Subscription.
427
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.
428
- # @param [Boolean] receive_events_from_subaccounts Receive events from all children accounts in the parent account subscription.
429
415
  # @return [SubscriptionInstance] Updated SubscriptionInstance
430
416
  def update(
431
417
  description: :unset,
432
- sink_sid: :unset,
433
- receive_events_from_subaccounts: :unset
418
+ sink_sid: :unset
434
419
  )
435
420
 
436
421
  context.update(
437
422
  description: description,
438
423
  sink_sid: sink_sid,
439
- receive_events_from_subaccounts: receive_events_from_subaccounts,
440
424
  )
441
425
  end
442
426
 
@@ -35,17 +35,20 @@ module Twilio
35
35
  # @param [Object] channel The Interaction's channel.
36
36
  # @param [Object] routing The Interaction's routing logic.
37
37
  # @param [String] interaction_context_sid The Interaction context sid is used for adding a context lookup sid
38
+ # @param [String] webhook_ttid The unique identifier for Interaction level webhook
38
39
  # @return [InteractionInstance] Created InteractionInstance
39
40
  def create(
40
41
  channel: nil,
41
42
  routing: :unset,
42
- interaction_context_sid: :unset
43
+ interaction_context_sid: :unset,
44
+ webhook_ttid: :unset
43
45
  )
44
46
 
45
47
  data = Twilio::Values.of({
46
48
  'Channel' => Twilio.serialize_object(channel),
47
49
  'Routing' => Twilio.serialize_object(routing),
48
50
  'InteractionContextSid' => interaction_context_sid,
51
+ 'WebhookTtid' => webhook_ttid,
49
52
  })
50
53
 
51
54
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -106,6 +109,32 @@ module Twilio
106
109
  )
107
110
  end
108
111
 
112
+ ##
113
+ # Update the InteractionInstance
114
+ # @param [String] webhook_ttid The unique identifier for Interaction level webhook
115
+ # @return [InteractionInstance] Updated InteractionInstance
116
+ def update(
117
+ webhook_ttid: :unset
118
+ )
119
+
120
+ data = Twilio::Values.of({
121
+ 'WebhookTtid' => webhook_ttid,
122
+ })
123
+
124
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
125
+
126
+
127
+
128
+
129
+
130
+ payload = @version.update('POST', @uri, data: data, headers: headers)
131
+ InteractionInstance.new(
132
+ @version,
133
+ payload,
134
+ sid: @solution[:sid],
135
+ )
136
+ end
137
+
109
138
  ##
110
139
  # Access the channels
111
140
  # @return [InteractionChannelList]
@@ -190,6 +219,7 @@ module Twilio
190
219
  'url' => payload['url'],
191
220
  'links' => payload['links'],
192
221
  'interaction_context_sid' => payload['interaction_context_sid'],
222
+ 'webhook_ttid' => payload['webhook_ttid'],
193
223
  }
194
224
 
195
225
  # Context
@@ -244,6 +274,12 @@ module Twilio
244
274
  @properties['interaction_context_sid']
245
275
  end
246
276
 
277
+ ##
278
+ # @return [String]
279
+ def webhook_ttid
280
+ @properties['webhook_ttid']
281
+ end
282
+
247
283
  ##
248
284
  # Fetch the InteractionInstance
249
285
  # @return [InteractionInstance] Fetched InteractionInstance
@@ -252,6 +288,19 @@ module Twilio
252
288
  context.fetch
253
289
  end
254
290
 
291
+ ##
292
+ # Update the InteractionInstance
293
+ # @param [String] webhook_ttid The unique identifier for Interaction level webhook
294
+ # @return [InteractionInstance] Updated InteractionInstance
295
+ def update(
296
+ webhook_ttid: :unset
297
+ )
298
+
299
+ context.update(
300
+ webhook_ttid: webhook_ttid,
301
+ )
302
+ end
303
+
255
304
  ##
256
305
  # Access the channels
257
306
  # @return [channels] channels