twilio-ruby 6.5.0 → 6.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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +34 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +1 -1
  5. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +7 -7
  6. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -8
  7. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +2 -2
  8. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +1 -1
  9. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +1 -1
  10. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +4 -4
  11. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +13 -3
  12. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -1
  13. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -1
  14. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -2
  15. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +1 -1
  16. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +3 -3
  17. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -1
  18. data/lib/twilio-ruby/rest/api/v2010/safelist.rb +169 -0
  19. data/lib/twilio-ruby/rest/api/v2010.rb +6 -0
  20. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +1 -1
  21. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -2
  22. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +3 -3
  23. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -1
  24. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +4 -4
  25. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +2 -2
  26. data/lib/twilio-ruby/rest/chat/v3/channel.rb +3 -3
  27. data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +3 -3
  28. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -1
  29. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +22 -4
  30. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +10 -1
  31. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +25 -7
  32. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +1 -1
  33. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
  34. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +6 -6
  35. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
  36. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -1
  37. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +4 -4
  38. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +2 -2
  39. data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +2 -2
  40. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +2 -2
  41. data/lib/twilio-ruby/rest/messaging/v1/service.rb +8 -8
  42. data/lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb +3 -3
  43. data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +3 -3
  44. data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +11 -18
  45. data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +2 -2
  46. data/lib/twilio-ruby/rest/numbers/v2.rb +7 -7
  47. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +3 -3
  48. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +4 -4
  49. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +3 -3
  50. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +1 -1
  51. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -2
  52. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -2
  53. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +1 -1
  54. data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -2
  55. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -1
  56. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -2
  57. data/lib/twilio-ruby/rest/proxy/v1/service.rb +4 -4
  58. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +1 -1
  59. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +3 -3
  60. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +1 -1
  61. data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +1 -1
  62. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -1
  63. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -1
  64. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +1 -1
  65. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +2 -2
  66. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +2 -2
  67. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -1
  68. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +1 -1
  69. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -2
  70. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +1 -1
  71. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +3 -3
  72. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +4 -4
  73. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +1 -1
  74. data/lib/twilio-ruby/rest/video/v1/room/participant.rb +3 -3
  75. data/lib/twilio-ruby/version.rb +1 -1
  76. metadata +3 -2
@@ -242,7 +242,7 @@ module Twilio
242
242
 
243
243
  unless @samples
244
244
  @samples = SampleList.new(
245
- @version, assistant_sid: @solution[:assistant_sid], task_sid: @solution[:sid], )
245
+ @version, assistant_sid: @solution[:assistant_sid], task_sid: @solution[:sid], )
246
246
  end
247
247
 
248
248
  @samples
@@ -283,7 +283,7 @@ module Twilio
283
283
 
284
284
  unless @fields
285
285
  @fields = FieldList.new(
286
- @version, assistant_sid: @solution[:assistant_sid], task_sid: @solution[:sid], )
286
+ @version, assistant_sid: @solution[:assistant_sid], task_sid: @solution[:sid], )
287
287
  end
288
288
 
289
289
  @fields
@@ -243,7 +243,7 @@ module Twilio
243
243
 
244
244
  unless @members
245
245
  @members = MemberList.new(
246
- @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
246
+ @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
247
247
  end
248
248
 
249
249
  @members
@@ -262,7 +262,7 @@ module Twilio
262
262
 
263
263
  unless @messages
264
264
  @messages = MessageList.new(
265
- @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
265
+ @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
266
266
  end
267
267
 
268
268
  @messages
@@ -281,7 +281,7 @@ module Twilio
281
281
 
282
282
  unless @invites
283
283
  @invites = InviteList.new(
284
- @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
284
+ @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
285
285
  end
286
286
 
287
287
  @invites
@@ -227,7 +227,7 @@ module Twilio
227
227
  def user_channels
228
228
  unless @user_channels
229
229
  @user_channels = UserChannelList.new(
230
- @version, service_sid: @solution[:service_sid], user_sid: @solution[:sid], )
230
+ @version, service_sid: @solution[:service_sid], user_sid: @solution[:sid], )
231
231
  end
232
232
  @user_channels
233
233
  end
@@ -272,7 +272,7 @@ module Twilio
272
272
 
273
273
  unless @webhooks
274
274
  @webhooks = WebhookList.new(
275
- @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
275
+ @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
276
276
  end
277
277
 
278
278
  @webhooks
@@ -291,7 +291,7 @@ module Twilio
291
291
 
292
292
  unless @members
293
293
  @members = MemberList.new(
294
- @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
294
+ @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
295
295
  end
296
296
 
297
297
  @members
@@ -310,7 +310,7 @@ module Twilio
310
310
 
311
311
  unless @messages
312
312
  @messages = MessageList.new(
313
- @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
313
+ @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
314
314
  end
315
315
 
316
316
  @messages
@@ -329,7 +329,7 @@ module Twilio
329
329
 
330
330
  unless @invites
331
331
  @invites = InviteList.new(
332
- @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
332
+ @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
333
333
  end
334
334
 
335
335
  @invites
@@ -241,7 +241,7 @@ module Twilio
241
241
 
242
242
  unless @user_channels
243
243
  @user_channels = UserChannelList.new(
244
- @version, service_sid: @solution[:service_sid], user_sid: @solution[:sid], )
244
+ @version, service_sid: @solution[:service_sid], user_sid: @solution[:sid], )
245
245
  end
246
246
 
247
247
  @user_channels
@@ -260,7 +260,7 @@ module Twilio
260
260
 
261
261
  unless @user_bindings
262
262
  @user_bindings = UserBindingList.new(
263
- @version, service_sid: @solution[:service_sid], user_sid: @solution[:sid], )
263
+ @version, service_sid: @solution[:service_sid], user_sid: @solution[:sid], )
264
264
  end
265
265
 
266
266
  @user_bindings
@@ -58,7 +58,7 @@ module Twilio
58
58
  ##
59
59
  # Update the ChannelInstance
60
60
  # @param [ChannelType] type
61
- # @param [String] messaging_service_sid The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this channel belongs to.
61
+ # @param [String] messaging_service_sid The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this channel belongs to.
62
62
  # @param [ChannelEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
63
63
  # @return [ChannelInstance] Updated ChannelInstance
64
64
  def update(
@@ -246,7 +246,7 @@ module Twilio
246
246
  end
247
247
 
248
248
  ##
249
- # @return [String] The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this channel belongs to.
249
+ # @return [String] The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this channel belongs to.
250
250
  def messaging_service_sid
251
251
  @properties['messaging_service_sid']
252
252
  end
@@ -260,7 +260,7 @@ module Twilio
260
260
  ##
261
261
  # Update the ChannelInstance
262
262
  # @param [ChannelType] type
263
- # @param [String] messaging_service_sid The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this channel belongs to.
263
+ # @param [String] messaging_service_sid The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this channel belongs to.
264
264
  # @param [ChannelEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
265
265
  # @return [ChannelInstance] Updated ChannelInstance
266
266
  def update(
@@ -69,7 +69,7 @@ module Twilio
69
69
  ##
70
70
  # Update the ConfigurationInstance
71
71
  # @param [String] default_chat_service_sid The SID of the default [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to use when creating a conversation.
72
- # @param [String] default_messaging_service_sid The SID of the default [Messaging Service](https://www.twilio.com/docs/messaging/services/api) to use when creating a conversation.
72
+ # @param [String] default_messaging_service_sid The SID of the default [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) to use when creating a conversation.
73
73
  # @param [String] default_inactive_timer Default ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
74
74
  # @param [String] default_closed_timer Default ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
75
75
  # @return [ConfigurationInstance] Updated ConfigurationInstance
@@ -200,7 +200,7 @@ module Twilio
200
200
  end
201
201
 
202
202
  ##
203
- # @return [String] The SID of the default [Messaging Service](https://www.twilio.com/docs/messaging/services/api) used when creating a conversation.
203
+ # @return [String] The SID of the default [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) used when creating a conversation.
204
204
  def default_messaging_service_sid
205
205
  @properties['default_messaging_service_sid']
206
206
  end
@@ -240,7 +240,7 @@ module Twilio
240
240
  ##
241
241
  # Update the ConfigurationInstance
242
242
  # @param [String] default_chat_service_sid The SID of the default [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to use when creating a conversation.
243
- # @param [String] default_messaging_service_sid The SID of the default [Messaging Service](https://www.twilio.com/docs/messaging/services/api) to use when creating a conversation.
243
+ # @param [String] default_messaging_service_sid The SID of the default [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) to use when creating a conversation.
244
244
  # @param [String] default_inactive_timer Default ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
245
245
  # @param [String] default_closed_timer Default ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
246
246
  # @return [ConfigurationInstance] Updated ConfigurationInstance
@@ -41,6 +41,7 @@ module Twilio
41
41
  # @param [String] media_sid The Media SID to be attached to the new Message.
42
42
  # @param [String] content_sid The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored.
43
43
  # @param [String] content_variables A structurally valid JSON string that contains values to resolve Rich Content template variables.
44
+ # @param [String] subject The subject of the message, can be up to 256 characters long.
44
45
  # @param [ConversationMessageEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
45
46
  # @return [MessageInstance] Created MessageInstance
46
47
  def create(
@@ -52,6 +53,7 @@ module Twilio
52
53
  media_sid: :unset,
53
54
  content_sid: :unset,
54
55
  content_variables: :unset,
56
+ subject: :unset,
55
57
  x_twilio_webhook_enabled: :unset
56
58
  )
57
59
 
@@ -64,6 +66,7 @@ module Twilio
64
66
  'MediaSid' => media_sid,
65
67
  'ContentSid' => content_sid,
66
68
  'ContentVariables' => content_variables,
69
+ 'Subject' => subject,
67
70
  })
68
71
 
69
72
  headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
@@ -225,6 +228,7 @@ module Twilio
225
228
  # @param [Time] date_created The date that this resource was created.
226
229
  # @param [Time] date_updated The date that this resource was last updated. `null` if the message has not been edited.
227
230
  # @param [String] attributes A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned.
231
+ # @param [String] subject The subject of the message, can be up to 256 characters long.
228
232
  # @param [ConversationMessageEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
229
233
  # @return [MessageInstance] Updated MessageInstance
230
234
  def update(
@@ -233,6 +237,7 @@ module Twilio
233
237
  date_created: :unset,
234
238
  date_updated: :unset,
235
239
  attributes: :unset,
240
+ subject: :unset,
236
241
  x_twilio_webhook_enabled: :unset
237
242
  )
238
243
 
@@ -242,6 +247,7 @@ module Twilio
242
247
  'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
243
248
  'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
244
249
  'Attributes' => attributes,
250
+ 'Subject' => subject,
245
251
  })
246
252
 
247
253
  headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
@@ -268,7 +274,7 @@ module Twilio
268
274
 
269
275
  unless @delivery_receipts
270
276
  @delivery_receipts = DeliveryReceiptList.new(
271
- @version, conversation_sid: @solution[:conversation_sid], message_sid: @solution[:sid], )
277
+ @version, conversation_sid: @solution[:conversation_sid], message_sid: @solution[:sid], )
272
278
  end
273
279
 
274
280
  @delivery_receipts
@@ -483,6 +489,7 @@ module Twilio
483
489
  # @param [Time] date_created The date that this resource was created.
484
490
  # @param [Time] date_updated The date that this resource was last updated. `null` if the message has not been edited.
485
491
  # @param [String] attributes A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned.
492
+ # @param [String] subject The subject of the message, can be up to 256 characters long.
486
493
  # @param [ConversationMessageEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
487
494
  # @return [MessageInstance] Updated MessageInstance
488
495
  def update(
@@ -491,6 +498,7 @@ module Twilio
491
498
  date_created: :unset,
492
499
  date_updated: :unset,
493
500
  attributes: :unset,
501
+ subject: :unset,
494
502
  x_twilio_webhook_enabled: :unset
495
503
  )
496
504
 
@@ -500,6 +508,7 @@ module Twilio
500
508
  date_created: date_created,
501
509
  date_updated: date_updated,
502
510
  attributes: attributes,
511
+ subject: subject,
503
512
  x_twilio_webhook_enabled: x_twilio_webhook_enabled,
504
513
  )
505
514
  end
@@ -35,11 +35,13 @@ module Twilio
35
35
  # @param [String] unique_name An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
36
36
  # @param [Time] date_created The date that this resource was created.
37
37
  # @param [Time] date_updated The date that this resource was last updated.
38
- # @param [String] messaging_service_sid The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this conversation belongs to.
38
+ # @param [String] messaging_service_sid The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to.
39
39
  # @param [String] attributes An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned.
40
40
  # @param [State] state
41
41
  # @param [String] timers_inactive ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
42
42
  # @param [String] timers_closed ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
43
+ # @param [String] bindings_email_address The default email address that will be used when sending outbound emails in this conversation.
44
+ # @param [String] bindings_email_name The default name that will be used when sending outbound emails in this conversation.
43
45
  # @param [ConversationEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
44
46
  # @return [ConversationInstance] Created ConversationInstance
45
47
  def create(
@@ -52,6 +54,8 @@ module Twilio
52
54
  state: :unset,
53
55
  timers_inactive: :unset,
54
56
  timers_closed: :unset,
57
+ bindings_email_address: :unset,
58
+ bindings_email_name: :unset,
55
59
  x_twilio_webhook_enabled: :unset
56
60
  )
57
61
 
@@ -65,6 +69,8 @@ module Twilio
65
69
  'State' => state,
66
70
  'Timers.Inactive' => timers_inactive,
67
71
  'Timers.Closed' => timers_closed,
72
+ 'Bindings.Email.Address' => bindings_email_address,
73
+ 'Bindings.Email.Name' => bindings_email_name,
68
74
  })
69
75
 
70
76
  headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
@@ -236,11 +242,13 @@ module Twilio
236
242
  # @param [Time] date_created The date that this resource was created.
237
243
  # @param [Time] date_updated The date that this resource was last updated.
238
244
  # @param [String] attributes An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned.
239
- # @param [String] messaging_service_sid The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this conversation belongs to.
245
+ # @param [String] messaging_service_sid The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to.
240
246
  # @param [State] state
241
247
  # @param [String] timers_inactive ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
242
248
  # @param [String] timers_closed ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
243
249
  # @param [String] unique_name An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
250
+ # @param [String] bindings_email_address The default email address that will be used when sending outbound emails in this conversation.
251
+ # @param [String] bindings_email_name The default name that will be used when sending outbound emails in this conversation.
244
252
  # @param [ConversationEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
245
253
  # @return [ConversationInstance] Updated ConversationInstance
246
254
  def update(
@@ -253,6 +261,8 @@ module Twilio
253
261
  timers_inactive: :unset,
254
262
  timers_closed: :unset,
255
263
  unique_name: :unset,
264
+ bindings_email_address: :unset,
265
+ bindings_email_name: :unset,
256
266
  x_twilio_webhook_enabled: :unset
257
267
  )
258
268
 
@@ -266,6 +276,8 @@ module Twilio
266
276
  'Timers.Inactive' => timers_inactive,
267
277
  'Timers.Closed' => timers_closed,
268
278
  'UniqueName' => unique_name,
279
+ 'Bindings.Email.Address' => bindings_email_address,
280
+ 'Bindings.Email.Name' => bindings_email_name,
269
281
  })
270
282
 
271
283
  headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
@@ -438,7 +450,7 @@ module Twilio
438
450
  end
439
451
 
440
452
  ##
441
- # @return [String] The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this conversation belongs to.
453
+ # @return [String] The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to.
442
454
  def messaging_service_sid
443
455
  @properties['messaging_service_sid']
444
456
  end
@@ -536,11 +548,13 @@ module Twilio
536
548
  # @param [Time] date_created The date that this resource was created.
537
549
  # @param [Time] date_updated The date that this resource was last updated.
538
550
  # @param [String] attributes An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned.
539
- # @param [String] messaging_service_sid The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this conversation belongs to.
551
+ # @param [String] messaging_service_sid The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to.
540
552
  # @param [State] state
541
553
  # @param [String] timers_inactive ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
542
554
  # @param [String] timers_closed ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
543
555
  # @param [String] unique_name An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
556
+ # @param [String] bindings_email_address The default email address that will be used when sending outbound emails in this conversation.
557
+ # @param [String] bindings_email_name The default name that will be used when sending outbound emails in this conversation.
544
558
  # @param [ConversationEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
545
559
  # @return [ConversationInstance] Updated ConversationInstance
546
560
  def update(
@@ -553,6 +567,8 @@ module Twilio
553
567
  timers_inactive: :unset,
554
568
  timers_closed: :unset,
555
569
  unique_name: :unset,
570
+ bindings_email_address: :unset,
571
+ bindings_email_name: :unset,
556
572
  x_twilio_webhook_enabled: :unset
557
573
  )
558
574
 
@@ -566,6 +582,8 @@ module Twilio
566
582
  timers_inactive: timers_inactive,
567
583
  timers_closed: timers_closed,
568
584
  unique_name: unique_name,
585
+ bindings_email_address: bindings_email_address,
586
+ bindings_email_name: bindings_email_name,
569
587
  x_twilio_webhook_enabled: x_twilio_webhook_enabled,
570
588
  )
571
589
  end
@@ -42,6 +42,7 @@ module Twilio
42
42
  # @param [String] media_sid The Media SID to be attached to the new Message.
43
43
  # @param [String] content_sid The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored.
44
44
  # @param [String] content_variables A structurally valid JSON string that contains values to resolve Rich Content template variables.
45
+ # @param [String] subject The subject of the message, can be up to 256 characters long.
45
46
  # @param [ServiceConversationMessageEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
46
47
  # @return [MessageInstance] Created MessageInstance
47
48
  def create(
@@ -53,6 +54,7 @@ module Twilio
53
54
  media_sid: :unset,
54
55
  content_sid: :unset,
55
56
  content_variables: :unset,
57
+ subject: :unset,
56
58
  x_twilio_webhook_enabled: :unset
57
59
  )
58
60
 
@@ -65,6 +67,7 @@ module Twilio
65
67
  'MediaSid' => media_sid,
66
68
  'ContentSid' => content_sid,
67
69
  'ContentVariables' => content_variables,
70
+ 'Subject' => subject,
68
71
  })
69
72
 
70
73
  headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
@@ -229,6 +232,7 @@ module Twilio
229
232
  # @param [Time] date_created The date that this resource was created.
230
233
  # @param [Time] date_updated The date that this resource was last updated. `null` if the message has not been edited.
231
234
  # @param [String] attributes A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned.
235
+ # @param [String] subject The subject of the message, can be up to 256 characters long.
232
236
  # @param [ServiceConversationMessageEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
233
237
  # @return [MessageInstance] Updated MessageInstance
234
238
  def update(
@@ -237,6 +241,7 @@ module Twilio
237
241
  date_created: :unset,
238
242
  date_updated: :unset,
239
243
  attributes: :unset,
244
+ subject: :unset,
240
245
  x_twilio_webhook_enabled: :unset
241
246
  )
242
247
 
@@ -246,6 +251,7 @@ module Twilio
246
251
  'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
247
252
  'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
248
253
  'Attributes' => attributes,
254
+ 'Subject' => subject,
249
255
  })
250
256
 
251
257
  headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
@@ -273,7 +279,7 @@ module Twilio
273
279
 
274
280
  unless @delivery_receipts
275
281
  @delivery_receipts = DeliveryReceiptList.new(
276
- @version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:conversation_sid], message_sid: @solution[:sid], )
282
+ @version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:conversation_sid], message_sid: @solution[:sid], )
277
283
  end
278
284
 
279
285
  @delivery_receipts
@@ -495,6 +501,7 @@ module Twilio
495
501
  # @param [Time] date_created The date that this resource was created.
496
502
  # @param [Time] date_updated The date that this resource was last updated. `null` if the message has not been edited.
497
503
  # @param [String] attributes A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned.
504
+ # @param [String] subject The subject of the message, can be up to 256 characters long.
498
505
  # @param [ServiceConversationMessageEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
499
506
  # @return [MessageInstance] Updated MessageInstance
500
507
  def update(
@@ -503,6 +510,7 @@ module Twilio
503
510
  date_created: :unset,
504
511
  date_updated: :unset,
505
512
  attributes: :unset,
513
+ subject: :unset,
506
514
  x_twilio_webhook_enabled: :unset
507
515
  )
508
516
 
@@ -512,6 +520,7 @@ module Twilio
512
520
  date_created: date_created,
513
521
  date_updated: date_updated,
514
522
  attributes: attributes,
523
+ subject: subject,
515
524
  x_twilio_webhook_enabled: x_twilio_webhook_enabled,
516
525
  )
517
526
  end
@@ -36,12 +36,14 @@ module Twilio
36
36
  # @param [String] friendly_name The human-readable name of this conversation, limited to 256 characters. Optional.
37
37
  # @param [String] unique_name An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
38
38
  # @param [String] attributes An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned.
39
- # @param [String] messaging_service_sid The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this conversation belongs to.
39
+ # @param [String] messaging_service_sid The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to.
40
40
  # @param [Time] date_created The date that this resource was created.
41
41
  # @param [Time] date_updated The date that this resource was last updated.
42
42
  # @param [State] state
43
43
  # @param [String] timers_inactive ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
44
44
  # @param [String] timers_closed ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
45
+ # @param [String] bindings_email_address The default email address that will be used when sending outbound emails in this conversation.
46
+ # @param [String] bindings_email_name The default name that will be used when sending outbound emails in this conversation.
45
47
  # @param [ServiceConversationEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
46
48
  # @return [ConversationInstance] Created ConversationInstance
47
49
  def create(
@@ -54,6 +56,8 @@ module Twilio
54
56
  state: :unset,
55
57
  timers_inactive: :unset,
56
58
  timers_closed: :unset,
59
+ bindings_email_address: :unset,
60
+ bindings_email_name: :unset,
57
61
  x_twilio_webhook_enabled: :unset
58
62
  )
59
63
 
@@ -67,6 +71,8 @@ module Twilio
67
71
  'State' => state,
68
72
  'Timers.Inactive' => timers_inactive,
69
73
  'Timers.Closed' => timers_closed,
74
+ 'Bindings.Email.Address' => bindings_email_address,
75
+ 'Bindings.Email.Name' => bindings_email_name,
70
76
  })
71
77
 
72
78
  headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
@@ -241,11 +247,13 @@ module Twilio
241
247
  # @param [Time] date_created The date that this resource was created.
242
248
  # @param [Time] date_updated The date that this resource was last updated.
243
249
  # @param [String] attributes An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned.
244
- # @param [String] messaging_service_sid The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this conversation belongs to.
250
+ # @param [String] messaging_service_sid The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to.
245
251
  # @param [State] state
246
252
  # @param [String] timers_inactive ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
247
253
  # @param [String] timers_closed ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
248
254
  # @param [String] unique_name An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
255
+ # @param [String] bindings_email_address The default email address that will be used when sending outbound emails in this conversation.
256
+ # @param [String] bindings_email_name The default name that will be used when sending outbound emails in this conversation.
249
257
  # @param [ServiceConversationEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
250
258
  # @return [ConversationInstance] Updated ConversationInstance
251
259
  def update(
@@ -258,6 +266,8 @@ module Twilio
258
266
  timers_inactive: :unset,
259
267
  timers_closed: :unset,
260
268
  unique_name: :unset,
269
+ bindings_email_address: :unset,
270
+ bindings_email_name: :unset,
261
271
  x_twilio_webhook_enabled: :unset
262
272
  )
263
273
 
@@ -271,6 +281,8 @@ module Twilio
271
281
  'Timers.Inactive' => timers_inactive,
272
282
  'Timers.Closed' => timers_closed,
273
283
  'UniqueName' => unique_name,
284
+ 'Bindings.Email.Address' => bindings_email_address,
285
+ 'Bindings.Email.Name' => bindings_email_name,
274
286
  })
275
287
 
276
288
  headers = Twilio::Values.of({ 'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
@@ -297,7 +309,7 @@ module Twilio
297
309
 
298
310
  unless @participants
299
311
  @participants = ParticipantList.new(
300
- @version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:sid], )
312
+ @version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:sid], )
301
313
  end
302
314
 
303
315
  @participants
@@ -316,7 +328,7 @@ module Twilio
316
328
 
317
329
  unless @messages
318
330
  @messages = MessageList.new(
319
- @version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:sid], )
331
+ @version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:sid], )
320
332
  end
321
333
 
322
334
  @messages
@@ -335,7 +347,7 @@ module Twilio
335
347
 
336
348
  unless @webhooks
337
349
  @webhooks = WebhookList.new(
338
- @version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:sid], )
350
+ @version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:sid], )
339
351
  end
340
352
 
341
353
  @webhooks
@@ -444,7 +456,7 @@ module Twilio
444
456
  end
445
457
 
446
458
  ##
447
- # @return [String] The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this conversation belongs to.
459
+ # @return [String] The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to.
448
460
  def messaging_service_sid
449
461
  @properties['messaging_service_sid']
450
462
  end
@@ -542,11 +554,13 @@ module Twilio
542
554
  # @param [Time] date_created The date that this resource was created.
543
555
  # @param [Time] date_updated The date that this resource was last updated.
544
556
  # @param [String] attributes An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned.
545
- # @param [String] messaging_service_sid The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this conversation belongs to.
557
+ # @param [String] messaging_service_sid The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to.
546
558
  # @param [State] state
547
559
  # @param [String] timers_inactive ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
548
560
  # @param [String] timers_closed ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
549
561
  # @param [String] unique_name An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
562
+ # @param [String] bindings_email_address The default email address that will be used when sending outbound emails in this conversation.
563
+ # @param [String] bindings_email_name The default name that will be used when sending outbound emails in this conversation.
550
564
  # @param [ServiceConversationEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
551
565
  # @return [ConversationInstance] Updated ConversationInstance
552
566
  def update(
@@ -559,6 +573,8 @@ module Twilio
559
573
  timers_inactive: :unset,
560
574
  timers_closed: :unset,
561
575
  unique_name: :unset,
576
+ bindings_email_address: :unset,
577
+ bindings_email_name: :unset,
562
578
  x_twilio_webhook_enabled: :unset
563
579
  )
564
580
 
@@ -572,6 +588,8 @@ module Twilio
572
588
  timers_inactive: timers_inactive,
573
589
  timers_closed: timers_closed,
574
590
  unique_name: unique_name,
591
+ bindings_email_address: bindings_email_address,
592
+ bindings_email_name: bindings_email_name,
575
593
  x_twilio_webhook_enabled: x_twilio_webhook_enabled,
576
594
  )
577
595
  end
@@ -244,7 +244,7 @@ module Twilio
244
244
 
245
245
  unless @user_conversations
246
246
  @user_conversations = UserConversationList.new(
247
- @version, chat_service_sid: @solution[:chat_service_sid], user_sid: @solution[:sid], )
247
+ @version, chat_service_sid: @solution[:chat_service_sid], user_sid: @solution[:sid], )
248
248
  end
249
249
 
250
250
  @user_conversations
@@ -175,6 +175,8 @@ module Twilio
175
175
  'channel_configs' => payload['channel_configs'],
176
176
  'debugger_integration' => payload['debugger_integration'],
177
177
  'flex_ui_status_report' => payload['flex_ui_status_report'],
178
+ 'agent_conv_end_methods' => payload['agent_conv_end_methods'],
179
+ 'citrix_voice_vdi' => payload['citrix_voice_vdi'],
178
180
  }
179
181
 
180
182
  # Context
@@ -463,6 +465,18 @@ module Twilio
463
465
  @properties['flex_ui_status_report']
464
466
  end
465
467
 
468
+ ##
469
+ # @return [Hash] Agent conversation end methods.
470
+ def agent_conv_end_methods
471
+ @properties['agent_conv_end_methods']
472
+ end
473
+
474
+ ##
475
+ # @return [Hash] Citrix voice vdi configuration and settings.
476
+ def citrix_voice_vdi
477
+ @properties['citrix_voice_vdi']
478
+ end
479
+
466
480
  ##
467
481
  # Fetch the ConfigurationInstance
468
482
  # @param [String] ui_version The Pinned UI version of the Configuration resource to fetch.