twilio-ruby 5.43.0 → 5.46.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGES.md +83 -0
  4. data/LICENSE +1 -1
  5. data/README.md +16 -2
  6. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +1 -1
  7. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +14 -9
  8. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +13 -13
  9. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +1 -1
  10. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +17 -5
  11. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +17 -12
  12. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +3 -3
  13. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +5 -5
  14. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +6 -3
  15. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +1 -1
  16. data/lib/twilio-ruby/rest/bulkexports.rb +4 -2
  17. data/lib/twilio-ruby/rest/bulkexports/v1.rb +4 -2
  18. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +7 -4
  19. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +7 -4
  20. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +5 -3
  21. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +5 -3
  22. data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +5 -3
  23. data/lib/twilio-ruby/rest/chat/v1/service.rb +5 -5
  24. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +6 -6
  25. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +3 -3
  26. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +3 -3
  27. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +9 -9
  28. data/lib/twilio-ruby/rest/chat/v2/service.rb +5 -5
  29. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -7
  30. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +6 -6
  31. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +3 -3
  32. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +3 -3
  33. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +27 -24
  34. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +9 -9
  35. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +10 -10
  36. data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +9 -9
  37. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
  38. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +32 -2
  39. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +9 -9
  40. data/lib/twilio-ruby/rest/conversations/v1/role.rb +9 -9
  41. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +7 -7
  42. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +17 -2
  43. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
  44. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +32 -2
  45. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +9 -9
  46. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +9 -9
  47. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +8 -1
  48. data/lib/twilio-ruby/rest/conversations/v1/user.rb +8 -1
  49. data/lib/twilio-ruby/rest/events/v1/sink.rb +2 -1
  50. data/lib/twilio-ruby/rest/events/v1/subscription.rb +2 -2
  51. data/lib/twilio-ruby/rest/flex_api.rb +1 -1
  52. data/lib/twilio-ruby/rest/flex_api/v1.rb +1 -1
  53. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +5 -5
  54. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +4 -4
  55. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +88 -76
  56. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +2 -2
  57. data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +8 -9
  58. data/lib/twilio-ruby/rest/insights/v1/room.rb +7 -7
  59. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +1 -1
  60. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
  61. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
  62. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +3 -3
  63. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +3 -3
  64. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +4 -4
  65. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +3 -3
  66. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -7
  67. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +3 -3
  68. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +3 -3
  69. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +3 -3
  70. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +6 -6
  71. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +4 -4
  72. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -4
  73. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +16 -16
  74. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +1 -1
  75. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +1 -1
  76. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +1 -1
  77. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +16 -15
  78. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +18 -18
  79. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +1 -1
  80. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +1 -1
  81. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +1 -1
  82. data/lib/twilio-ruby/rest/preview.rb +4 -23
  83. data/lib/twilio-ruby/rest/preview/bulk_exports.rb +4 -2
  84. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +7 -4
  85. data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +7 -4
  86. data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +5 -3
  87. data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +5 -3
  88. data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +5 -3
  89. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +13 -13
  90. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
  91. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -8
  92. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -30
  93. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
  94. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -2
  95. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +1 -1
  96. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -2
  97. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +2 -2
  98. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +1 -1
  99. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +1 -1
  100. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +1 -1
  101. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +6 -6
  102. data/lib/twilio-ruby/rest/studio/v2/flow.rb +6 -14
  103. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +0 -8
  104. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -8
  105. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -8
  106. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -8
  107. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +2 -10
  108. data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +10 -16
  109. data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -11
  110. data/lib/twilio-ruby/rest/supersim/v1/command.rb +4 -4
  111. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +32 -11
  112. data/lib/twilio-ruby/rest/supersim/v1/network.rb +5 -5
  113. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -6
  114. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +5 -5
  115. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +4 -4
  116. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +3 -3
  117. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +12 -20
  118. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +9 -17
  119. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +8 -31
  120. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +9 -17
  121. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +9 -32
  122. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +1 -1
  123. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +5 -15
  124. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +1 -1
  125. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +17 -17
  126. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +10 -10
  127. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
  128. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +10 -10
  129. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +1 -1
  130. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
  131. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +1 -1
  132. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +1 -1
  133. data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +21 -24
  134. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +3 -3
  135. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +1 -1
  136. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +10 -10
  137. data/lib/twilio-ruby/rest/video/v1/composition.rb +16 -15
  138. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +26 -26
  139. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +6 -6
  140. data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
  141. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +6 -6
  142. data/lib/twilio-ruby/rest/video/v1/room.rb +10 -3
  143. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +1 -1
  144. data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +1 -1
  145. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
  146. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +4 -4
  147. data/lib/twilio-ruby/twiml/voice_response.rb +20 -10
  148. data/lib/twilio-ruby/version.rb +1 -1
  149. data/spec/integration/api/v2010/account/call/recording_spec.rb +4 -0
  150. data/spec/integration/api/v2010/account/conference/participant_spec.rb +30 -0
  151. data/spec/integration/conversations/v1/conversation/participant_spec.rb +30 -10
  152. data/spec/integration/conversations/v1/service/configuration_spec.rb +2 -0
  153. data/spec/integration/conversations/v1/service/conversation/participant_spec.rb +30 -10
  154. data/spec/integration/conversations/v1/service/user_spec.rb +9 -4
  155. data/spec/integration/conversations/v1/user_spec.rb +9 -4
  156. data/spec/integration/events/v1/sink_spec.rb +14 -0
  157. data/spec/integration/insights/v1/call/summary_spec.rb +1 -0
  158. data/spec/integration/lookups/v1/phone_number_spec.rb +7 -7
  159. data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +1 -1
  160. data/spec/integration/trunking/v1/trunk/recording_spec.rb +2 -6
  161. data/spec/integration/video/v1/room_spec.rb +5 -0
  162. data/spec/twiml/voice_response_spec.rb +1 -1
  163. metadata +2 -17
  164. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +0 -243
  165. data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +0 -213
  166. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +0 -108
  167. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb +0 -260
  168. data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +0 -342
  169. data/spec/integration/preview/trusted_comms/branded_call_spec.rb +0 -59
  170. data/spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb +0 -56
  171. data/spec/integration/preview/trusted_comms/business/insights_spec.rb +0 -12
  172. data/spec/integration/preview/trusted_comms/business_spec.rb +0 -45
  173. data/spec/integration/preview/trusted_comms/phone_call_spec.rb +0 -59
@@ -27,7 +27,7 @@ module Twilio
27
27
  # Lists FlexFlowInstance records from the API as a list.
28
28
  # Unlike stream(), this operation is eager and will load `limit` records into
29
29
  # memory before returning.
30
- # @param [String] friendly_name The `friendly_name` of the FlexFlow resources to
30
+ # @param [String] friendly_name The `friendly_name` of the Flex Flow resources to
31
31
  # read.
32
32
  # @param [Integer] limit Upper limit for the number of records to return. stream()
33
33
  # guarantees to never return more than limit. Default is no limit
@@ -44,7 +44,7 @@ module Twilio
44
44
  # Streams FlexFlowInstance records from the API as an Enumerable.
45
45
  # This operation lazily loads records as efficiently as possible until the limit
46
46
  # is reached.
47
- # @param [String] friendly_name The `friendly_name` of the FlexFlow resources to
47
+ # @param [String] friendly_name The `friendly_name` of the Flex Flow resources to
48
48
  # read.
49
49
  # @param [Integer] limit Upper limit for the number of records to return. stream()
50
50
  # guarantees to never return more than limit. Default is no limit.
@@ -78,7 +78,7 @@ module Twilio
78
78
  ##
79
79
  # Retrieve a single page of FlexFlowInstance records from the API.
80
80
  # Request is executed immediately.
81
- # @param [String] friendly_name The `friendly_name` of the FlexFlow resources to
81
+ # @param [String] friendly_name The `friendly_name` of the Flex Flow resources to
82
82
  # read.
83
83
  # @param [String] page_token PageToken provided by the API
84
84
  # @param [Integer] page_number Page Number, this value is simply for client state
@@ -113,33 +113,36 @@ module Twilio
113
113
  ##
114
114
  # Create the FlexFlowInstance
115
115
  # @param [String] friendly_name A descriptive string that you create to describe
116
- # the FlexFlow resource.
116
+ # the Flex Flow resource.
117
117
  # @param [String] chat_service_sid The SID of the chat service.
118
118
  # @param [flex_flow.ChannelType] channel_type The channel type. Can be: `web`,
119
119
  # `facebook`, `sms`, `whatsapp`, `line` or `custom`.
120
120
  # @param [String] contact_identity The channel contact's Identity.
121
- # @param [Boolean] enabled Whether the new FlexFlow is enabled.
121
+ # @param [Boolean] enabled Whether the new Flex Flow is enabled.
122
122
  # @param [flex_flow.IntegrationType] integration_type The integration type. Can
123
123
  # be: `studio`, `external`, or `task`.
124
- # @param [String] integration_flow_sid The SID of the Flow when `integration_type`
125
- # is `studio`.
126
- # @param [String] integration_url The External Webhook URL when `integration_type`
127
- # is `external`.
128
- # @param [String] integration_workspace_sid The Workspace SID for a new task for
129
- # Task `integration_type`.
130
- # @param [String] integration_workflow_sid The Workflow SID for a new task when
131
- # `integration_type` is `task`.
132
- # @param [String] integration_channel The task channel for a new task when
133
- # `integration_type` is `task`. The default is `default`.
134
- # @param [String] integration_timeout The task timeout in seconds for a new task
135
- # when `integration_type` is `task`. The default is `86,400` seconds (24 hours).
136
- # @param [String] integration_priority The task priority of a new task when
137
- # `integration_type` is `task`. The default priority is `0`.
138
- # @param [Boolean] integration_creation_on_message Whether to create a task when
139
- # the first message arrives when `integration_type` is `task`. If `false`, the
140
- # task is created with the channel. **Note** that does not apply when channel type
141
- # is `web`. Setting the value to `true` for channel type `web` will result in
142
- # misconfigured Flex Flow and no tasks will be created.
124
+ # @param [String] integration_flow_sid The SID of the Studio Flow. Required when
125
+ # `integrationType` is `studio`.
126
+ # @param [String] integration_url The URL of the external webhook. Required when
127
+ # `integrationType` is `external`.
128
+ # @param [String] integration_workspace_sid The Workspace SID for a new Task.
129
+ # Required when `integrationType` is `task`.
130
+ # @param [String] integration_workflow_sid The Workflow SID for a new Task.
131
+ # Required when `integrationType` is `task`.
132
+ # @param [String] integration_channel The Task Channel for the TaskRouter Task
133
+ # that will be created. Applicable and required when integrationType is `task`.
134
+ # Set to `sms` for SMS, and to `chat` otherwise. The default value is `default`
135
+ # @param [String] integration_timeout The Task timeout in seconds for a new Task.
136
+ # Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`,
137
+ # not applicable otherwise.
138
+ # @param [String] integration_priority The Task priority of a new Task. The
139
+ # default priority is 0. Optional when `integrationType` is `task`, not applicable
140
+ # otherwise.
141
+ # @param [Boolean] integration_creation_on_message In the context of outbound
142
+ # messaging, defines whether to create a Task immediately (and therefore reserve
143
+ # the conversation to current agent), or delay Task creation until the customer
144
+ # sends the first response. Set to false to create immediately, true to delay Task
145
+ # creation. This setting is only applicable for outbound messaging.
143
146
  # @param [Boolean] long_lived When enabled, Flex will keep the chat channel active
144
147
  # so that it may be used for subsequent interactions with a contact identity.
145
148
  # Defaults to `false`.
@@ -147,8 +150,9 @@ module Twilio
147
150
  # will remove active Proxy sessions if the associated Task is deleted outside of
148
151
  # the Flex UI. Defaults to `false`.
149
152
  # @param [String] integration_retry_count The number of times to retry the webhook
150
- # if the first attempt fails. Can be an integer between 0 and 3, inclusive, and
151
- # the default is 0.
153
+ # if the first attempt fails. Can be an integer between 0 and 3 (included),
154
+ # default is 0. Optional when integrationType is `external`, not applicable
155
+ # otherwise.
152
156
  # @return [FlexFlowInstance] Created FlexFlowInstance
153
157
  def create(friendly_name: nil, chat_service_sid: nil, channel_type: nil, contact_identity: :unset, enabled: :unset, integration_type: :unset, integration_flow_sid: :unset, integration_url: :unset, integration_workspace_sid: :unset, integration_workflow_sid: :unset, integration_channel: :unset, integration_timeout: :unset, integration_priority: :unset, integration_creation_on_message: :unset, long_lived: :unset, janitor_enabled: :unset, integration_retry_count: :unset)
154
158
  data = Twilio::Values.of({
@@ -216,7 +220,7 @@ module Twilio
216
220
  ##
217
221
  # Initialize the FlexFlowContext
218
222
  # @param [Version] version Version that contains the resource
219
- # @param [String] sid The SID of the FlexFlow resource to fetch.
223
+ # @param [String] sid The SID of the Flex Flow resource to fetch.
220
224
  # @return [FlexFlowContext] FlexFlowContext
221
225
  def initialize(version, sid)
222
226
  super(version)
@@ -238,33 +242,36 @@ module Twilio
238
242
  ##
239
243
  # Update the FlexFlowInstance
240
244
  # @param [String] friendly_name A descriptive string that you create to describe
241
- # the FlexFlow resource.
245
+ # the Flex Flow resource.
242
246
  # @param [String] chat_service_sid The SID of the chat service.
243
247
  # @param [flex_flow.ChannelType] channel_type The channel type. Can be: `web`,
244
248
  # `facebook`, `sms`, `whatsapp`, `line` or `custom`.
245
249
  # @param [String] contact_identity The channel contact's Identity.
246
- # @param [Boolean] enabled Whether the FlexFlow is enabled.
250
+ # @param [Boolean] enabled Whether the new Flex Flow is enabled.
247
251
  # @param [flex_flow.IntegrationType] integration_type The integration type. Can
248
252
  # be: `studio`, `external`, or `task`.
249
- # @param [String] integration_flow_sid The SID of the Flow when `integration_type`
250
- # is `studio`.
251
- # @param [String] integration_url The External Webhook URL when `integration_type`
252
- # is `external`.
253
- # @param [String] integration_workspace_sid The Workspace SID for a new task when
254
- # `integration_type` is `task`.
255
- # @param [String] integration_workflow_sid The Workflow SID for a new task when
256
- # `integration_type` is `task`.
257
- # @param [String] integration_channel The task channel for a new task when
258
- # `integration_type` is `task`. The default is `default`.
259
- # @param [String] integration_timeout The task timeout in seconds for a new task
260
- # when `integration_type` is `task`. The default is `86,400` seconds (24 hours).
261
- # @param [String] integration_priority The task priority of a new task when
262
- # `integration_type` is `task`. The default priority is `0`.
263
- # @param [Boolean] integration_creation_on_message Whether to create a task when
264
- # the first message arrives when `integration_type` is `task`. If `false`, the
265
- # task is created with the channel. **Note** that does not apply when channel type
266
- # is `web`. Setting the value to `true` for channel type `web` will result in
267
- # misconfigured Flex Flow and no tasks will be created.
253
+ # @param [String] integration_flow_sid The SID of the Studio Flow. Required when
254
+ # `integrationType` is `studio`.
255
+ # @param [String] integration_url The URL of the external webhook. Required when
256
+ # `integrationType` is `external`.
257
+ # @param [String] integration_workspace_sid The Workspace SID for a new Task.
258
+ # Required when `integrationType` is `task`.
259
+ # @param [String] integration_workflow_sid The Workflow SID for a new Task.
260
+ # Required when `integrationType` is `task`.
261
+ # @param [String] integration_channel The Task Channel for the TaskRouter Task
262
+ # that will be created. Applicable and required when integrationType is `task`.
263
+ # Set to `sms` for SMS, and to `chat` otherwise. The default value is `default`
264
+ # @param [String] integration_timeout The Task timeout in seconds for a new Task.
265
+ # Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`,
266
+ # not applicable otherwise.
267
+ # @param [String] integration_priority The Task priority of a new Task. The
268
+ # default priority is 0. Optional when `integrationType` is `task`, not applicable
269
+ # otherwise.
270
+ # @param [Boolean] integration_creation_on_message In the context of outbound
271
+ # messaging, defines whether to create a Task immediately (and therefore reserve
272
+ # the conversation to current agent), or delay Task creation until the customer
273
+ # sends the first response. Set to false to create immediately, true to delay Task
274
+ # creation. This setting is only applicable for outbound messaging.
268
275
  # @param [Boolean] long_lived When enabled, Flex will keep the chat channel active
269
276
  # so that it may be used for subsequent interactions with a contact identity.
270
277
  # Defaults to `false`.
@@ -272,8 +279,9 @@ module Twilio
272
279
  # will remove active Proxy sessions if the associated Task is deleted outside of
273
280
  # the Flex UI. Defaults to `false`.
274
281
  # @param [String] integration_retry_count The number of times to retry the webhook
275
- # if the first attempt fails. Can be an integer between 0 and 3, inclusive, and
276
- # the default is 0.
282
+ # if the first attempt fails. Can be an integer between 0 and 3 (included),
283
+ # default is 0. Optional when integrationType is `external`, not applicable
284
+ # otherwise.
277
285
  # @return [FlexFlowInstance] Updated FlexFlowInstance
278
286
  def update(friendly_name: :unset, chat_service_sid: :unset, channel_type: :unset, contact_identity: :unset, enabled: :unset, integration_type: :unset, integration_flow_sid: :unset, integration_url: :unset, integration_workspace_sid: :unset, integration_workflow_sid: :unset, integration_channel: :unset, integration_timeout: :unset, integration_priority: :unset, integration_creation_on_message: :unset, long_lived: :unset, janitor_enabled: :unset, integration_retry_count: :unset)
279
287
  data = Twilio::Values.of({
@@ -328,7 +336,7 @@ module Twilio
328
336
  # Initialize the FlexFlowInstance
329
337
  # @param [Version] version Version that contains the resource
330
338
  # @param [Hash] payload payload that contains response from Twilio
331
- # @param [String] sid The SID of the FlexFlow resource to fetch.
339
+ # @param [String] sid The SID of the Flex Flow resource to fetch.
332
340
  # @return [FlexFlowInstance] FlexFlowInstance
333
341
  def initialize(version, payload, sid: nil)
334
342
  super(version)
@@ -416,7 +424,7 @@ module Twilio
416
424
  end
417
425
 
418
426
  ##
419
- # @return [Boolean] Whether the FlexFlow is enabled
427
+ # @return [Boolean] Whether the Flex Flow is enabled
420
428
  def enabled
421
429
  @properties['enabled']
422
430
  end
@@ -446,7 +454,7 @@ module Twilio
446
454
  end
447
455
 
448
456
  ##
449
- # @return [String] The absolute URL of the FlexFlow resource
457
+ # @return [String] The absolute URL of the Flex Flow resource
450
458
  def url
451
459
  @properties['url']
452
460
  end
@@ -461,33 +469,36 @@ module Twilio
461
469
  ##
462
470
  # Update the FlexFlowInstance
463
471
  # @param [String] friendly_name A descriptive string that you create to describe
464
- # the FlexFlow resource.
472
+ # the Flex Flow resource.
465
473
  # @param [String] chat_service_sid The SID of the chat service.
466
474
  # @param [flex_flow.ChannelType] channel_type The channel type. Can be: `web`,
467
475
  # `facebook`, `sms`, `whatsapp`, `line` or `custom`.
468
476
  # @param [String] contact_identity The channel contact's Identity.
469
- # @param [Boolean] enabled Whether the FlexFlow is enabled.
477
+ # @param [Boolean] enabled Whether the new Flex Flow is enabled.
470
478
  # @param [flex_flow.IntegrationType] integration_type The integration type. Can
471
479
  # be: `studio`, `external`, or `task`.
472
- # @param [String] integration_flow_sid The SID of the Flow when `integration_type`
473
- # is `studio`.
474
- # @param [String] integration_url The External Webhook URL when `integration_type`
475
- # is `external`.
476
- # @param [String] integration_workspace_sid The Workspace SID for a new task when
477
- # `integration_type` is `task`.
478
- # @param [String] integration_workflow_sid The Workflow SID for a new task when
479
- # `integration_type` is `task`.
480
- # @param [String] integration_channel The task channel for a new task when
481
- # `integration_type` is `task`. The default is `default`.
482
- # @param [String] integration_timeout The task timeout in seconds for a new task
483
- # when `integration_type` is `task`. The default is `86,400` seconds (24 hours).
484
- # @param [String] integration_priority The task priority of a new task when
485
- # `integration_type` is `task`. The default priority is `0`.
486
- # @param [Boolean] integration_creation_on_message Whether to create a task when
487
- # the first message arrives when `integration_type` is `task`. If `false`, the
488
- # task is created with the channel. **Note** that does not apply when channel type
489
- # is `web`. Setting the value to `true` for channel type `web` will result in
490
- # misconfigured Flex Flow and no tasks will be created.
480
+ # @param [String] integration_flow_sid The SID of the Studio Flow. Required when
481
+ # `integrationType` is `studio`.
482
+ # @param [String] integration_url The URL of the external webhook. Required when
483
+ # `integrationType` is `external`.
484
+ # @param [String] integration_workspace_sid The Workspace SID for a new Task.
485
+ # Required when `integrationType` is `task`.
486
+ # @param [String] integration_workflow_sid The Workflow SID for a new Task.
487
+ # Required when `integrationType` is `task`.
488
+ # @param [String] integration_channel The Task Channel for the TaskRouter Task
489
+ # that will be created. Applicable and required when integrationType is `task`.
490
+ # Set to `sms` for SMS, and to `chat` otherwise. The default value is `default`
491
+ # @param [String] integration_timeout The Task timeout in seconds for a new Task.
492
+ # Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`,
493
+ # not applicable otherwise.
494
+ # @param [String] integration_priority The Task priority of a new Task. The
495
+ # default priority is 0. Optional when `integrationType` is `task`, not applicable
496
+ # otherwise.
497
+ # @param [Boolean] integration_creation_on_message In the context of outbound
498
+ # messaging, defines whether to create a Task immediately (and therefore reserve
499
+ # the conversation to current agent), or delay Task creation until the customer
500
+ # sends the first response. Set to false to create immediately, true to delay Task
501
+ # creation. This setting is only applicable for outbound messaging.
491
502
  # @param [Boolean] long_lived When enabled, Flex will keep the chat channel active
492
503
  # so that it may be used for subsequent interactions with a contact identity.
493
504
  # Defaults to `false`.
@@ -495,8 +506,9 @@ module Twilio
495
506
  # will remove active Proxy sessions if the associated Task is deleted outside of
496
507
  # the Flex UI. Defaults to `false`.
497
508
  # @param [String] integration_retry_count The number of times to retry the webhook
498
- # if the first attempt fails. Can be an integer between 0 and 3, inclusive, and
499
- # the default is 0.
509
+ # if the first attempt fails. Can be an integer between 0 and 3 (included),
510
+ # default is 0. Optional when integrationType is `external`, not applicable
511
+ # otherwise.
500
512
  # @return [FlexFlowInstance] Updated FlexFlowInstance
501
513
  def update(friendly_name: :unset, chat_service_sid: :unset, channel_type: :unset, contact_identity: :unset, enabled: :unset, integration_type: :unset, integration_flow_sid: :unset, integration_url: :unset, integration_workspace_sid: :unset, integration_workflow_sid: :unset, integration_channel: :unset, integration_timeout: :unset, integration_priority: :unset, integration_creation_on_message: :unset, long_lived: :unset, janitor_enabled: :unset, integration_retry_count: :unset)
502
514
  context.update(
@@ -105,7 +105,7 @@ module Twilio
105
105
 
106
106
  ##
107
107
  # Create the WebChannelInstance
108
- # @param [String] flex_flow_sid The SID of the FlexFlow.
108
+ # @param [String] flex_flow_sid The SID of the Flex Flow.
109
109
  # @param [String] identity The chat identity.
110
110
  # @param [String] customer_friendly_name The chat participant's friendly name.
111
111
  # @param [String] chat_friendly_name The chat channel's friendly name.
@@ -268,7 +268,7 @@ module Twilio
268
268
  end
269
269
 
270
270
  ##
271
- # @return [String] The SID of the FlexFlow
271
+ # @return [String] The SID of the Flex Flow
272
272
  def flex_flow_sid
273
273
  @properties['flex_flow_sid']
274
274
  end
@@ -11,8 +11,6 @@ module Twilio
11
11
  class Insights < Domain
12
12
  class V1 < Version
13
13
  class CallContext < InstanceContext
14
- ##
15
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
16
14
  class CallSummaryList < ListResource
17
15
  ##
18
16
  # Initialize the CallSummaryList
@@ -33,8 +31,6 @@ module Twilio
33
31
  end
34
32
  end
35
33
 
36
- ##
37
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
38
34
  class CallSummaryPage < Page
39
35
  ##
40
36
  # Initialize the CallSummaryPage
@@ -64,8 +60,6 @@ module Twilio
64
60
  end
65
61
  end
66
62
 
67
- ##
68
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
69
63
  class CallSummaryContext < InstanceContext
70
64
  ##
71
65
  # Initialize the CallSummaryContext
@@ -107,8 +101,6 @@ module Twilio
107
101
  end
108
102
  end
109
103
 
110
- ##
111
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
112
104
  class CallSummaryInstance < InstanceResource
113
105
  ##
114
106
  # Initialize the CallSummaryInstance
@@ -126,6 +118,7 @@ module Twilio
126
118
  'call_type' => payload['call_type'],
127
119
  'call_state' => payload['call_state'],
128
120
  'processing_state' => payload['processing_state'],
121
+ 'created_time' => Twilio.deserialize_iso8601_datetime(payload['created_time']),
129
122
  'start_time' => Twilio.deserialize_iso8601_datetime(payload['start_time']),
130
123
  'end_time' => Twilio.deserialize_iso8601_datetime(payload['end_time']),
131
124
  'duration' => payload['duration'] == nil ? payload['duration'] : payload['duration'].to_i,
@@ -189,6 +182,12 @@ module Twilio
189
182
  @properties['processing_state']
190
183
  end
191
184
 
185
+ ##
186
+ # @return [Time] The created_time
187
+ def created_time
188
+ @properties['created_time']
189
+ end
190
+
192
191
  ##
193
192
  # @return [Time] The start_time
194
193
  def start_time
@@ -250,7 +249,7 @@ module Twilio
250
249
  end
251
250
 
252
251
  ##
253
- # @return [String] The tags
252
+ # @return [Array[String]] The tags
254
253
  def tags
255
254
  @properties['tags']
256
255
  end
@@ -29,8 +29,8 @@ module Twilio
29
29
  # Lists RoomInstance records from the API as a list.
30
30
  # Unlike stream(), this operation is eager and will load `limit` records into
31
31
  # memory before returning.
32
- # @param [room.RoomType] room_type The room_type
33
- # @param [room.Codec] codec The codec
32
+ # @param [Array[room.RoomType]] room_type The room_type
33
+ # @param [Array[room.Codec]] codec The codec
34
34
  # @param [String] room_name The room_name
35
35
  # @param [Time] created_after The created_after
36
36
  # @param [Time] created_before The created_before
@@ -57,8 +57,8 @@ module Twilio
57
57
  # Streams RoomInstance records from the API as an Enumerable.
58
58
  # This operation lazily loads records as efficiently as possible until the limit
59
59
  # is reached.
60
- # @param [room.RoomType] room_type The room_type
61
- # @param [room.Codec] codec The codec
60
+ # @param [Array[room.RoomType]] room_type The room_type
61
+ # @param [Array[room.Codec]] codec The codec
62
62
  # @param [String] room_name The room_name
63
63
  # @param [Time] created_after The created_after
64
64
  # @param [Time] created_before The created_before
@@ -101,8 +101,8 @@ module Twilio
101
101
  ##
102
102
  # Retrieve a single page of RoomInstance records from the API.
103
103
  # Request is executed immediately.
104
- # @param [room.RoomType] room_type The room_type
105
- # @param [room.Codec] codec The codec
104
+ # @param [Array[room.RoomType]] room_type The room_type
105
+ # @param [Array[room.Codec]] codec The codec
106
106
  # @param [String] room_name The room_name
107
107
  # @param [Time] created_after The created_after
108
108
  # @param [Time] created_before The created_before
@@ -394,7 +394,7 @@ module Twilio
394
394
  end
395
395
 
396
396
  ##
397
- # @return [room.Codec] The codecs
397
+ # @return [Array[room.Codec]] The codecs
398
398
  def codecs
399
399
  @properties['codecs']
400
400
  end
@@ -297,7 +297,7 @@ module Twilio
297
297
  end
298
298
 
299
299
  ##
300
- # @return [participant.Codec] The codecs
300
+ # @return [Array[participant.Codec]] The codecs
301
301
  def codecs
302
302
  @properties['codecs']
303
303
  end
@@ -216,7 +216,7 @@ module Twilio
216
216
  # @param [String] pre_webhook_url The pre_webhook_url
217
217
  # @param [String] post_webhook_url The post_webhook_url
218
218
  # @param [String] webhook_method The webhook_method
219
- # @param [String] webhook_filters The webhook_filters
219
+ # @param [Array[String]] webhook_filters The webhook_filters
220
220
  # @param [String] webhooks_on_message_send_url The webhooks.on_message_send.url
221
221
  # @param [String] webhooks_on_message_send_method The
222
222
  # webhooks.on_message_send.method
@@ -562,7 +562,7 @@ module Twilio
562
562
  end
563
563
 
564
564
  ##
565
- # @return [String] The webhook_filters
565
+ # @return [Array[String]] The webhook_filters
566
566
  def webhook_filters
567
567
  @properties['webhook_filters']
568
568
  end
@@ -629,7 +629,7 @@ module Twilio
629
629
  # @param [String] pre_webhook_url The pre_webhook_url
630
630
  # @param [String] post_webhook_url The post_webhook_url
631
631
  # @param [String] webhook_method The webhook_method
632
- # @param [String] webhook_filters The webhook_filters
632
+ # @param [Array[String]] webhook_filters The webhook_filters
633
633
  # @param [String] webhooks_on_message_send_url The webhooks.on_message_send.url
634
634
  # @param [String] webhooks_on_message_send_method The
635
635
  # webhooks.on_message_send.method
@@ -49,7 +49,7 @@ module Twilio
49
49
  # Lists ChannelInstance records from the API as a list.
50
50
  # Unlike stream(), this operation is eager and will load `limit` records into
51
51
  # memory before returning.
52
- # @param [channel.ChannelType] type The type
52
+ # @param [Array[channel.ChannelType]] type The type
53
53
  # @param [Integer] limit Upper limit for the number of records to return. stream()
54
54
  # guarantees to never return more than limit. Default is no limit
55
55
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -65,7 +65,7 @@ module Twilio
65
65
  # Streams ChannelInstance records from the API as an Enumerable.
66
66
  # This operation lazily loads records as efficiently as possible until the limit
67
67
  # is reached.
68
- # @param [channel.ChannelType] type The type
68
+ # @param [Array[channel.ChannelType]] type The type
69
69
  # @param [Integer] limit Upper limit for the number of records to return. stream()
70
70
  # guarantees to never return more than limit. Default is no limit.
71
71
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -98,7 +98,7 @@ module Twilio
98
98
  ##
99
99
  # Retrieve a single page of ChannelInstance records from the API.
100
100
  # Request is executed immediately.
101
- # @param [channel.ChannelType] type The type
101
+ # @param [Array[channel.ChannelType]] type The type
102
102
  # @param [String] page_token PageToken provided by the API
103
103
  # @param [Integer] page_number Page Number, this value is simply for client state
104
104
  # @param [Integer] page_size Number of records to return, defaults to 50