twilio-ruby 5.27.0 → 5.27.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +5 -5
  2. data/.dockerignore +1 -0
  3. data/CHANGES.md +13 -0
  4. data/CONTRIBUTING.md +2 -0
  5. data/Dockerfile +2 -2
  6. data/README.md +2 -2
  7. data/lib/twilio-ruby/http/http_client.rb +1 -1
  8. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +18 -18
  9. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +9 -9
  10. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -9
  11. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +5 -5
  12. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -1
  13. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +1 -1
  14. data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -12
  15. data/lib/twilio-ruby/rest/flex_api.rb +6 -3
  16. data/lib/twilio-ruby/rest/flex_api/v1.rb +3 -3
  17. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +23 -23
  18. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +39 -37
  19. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +102 -96
  20. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +20 -20
  21. data/lib/twilio-ruby/rest/messaging.rb +3 -2
  22. data/lib/twilio-ruby/rest/messaging/v1.rb +2 -3
  23. data/lib/twilio-ruby/rest/messaging/v1/service.rb +124 -91
  24. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +22 -18
  25. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +22 -16
  26. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +18 -20
  27. data/lib/twilio-ruby/rest/messaging/v1/session.rb +48 -44
  28. data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +46 -48
  29. data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +55 -62
  30. data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +61 -65
  31. data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +30 -36
  32. data/lib/twilio-ruby/rest/monitor.rb +4 -2
  33. data/lib/twilio-ruby/rest/monitor/v1.rb +2 -2
  34. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +45 -57
  35. data/lib/twilio-ruby/rest/monitor/v1/event.rb +47 -50
  36. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +8 -8
  37. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -3
  38. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +6 -6
  39. data/lib/twilio-ruby/rest/preview/trusted_comms/device.rb +1 -1
  40. data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +55 -55
  41. data/lib/twilio-ruby/rest/pricing/v2/voice.rb +2 -2
  42. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +4 -4
  43. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
  44. data/lib/twilio-ruby/rest/serverless.rb +2 -1
  45. data/lib/twilio-ruby/rest/serverless/v1.rb +1 -2
  46. data/lib/twilio-ruby/rest/serverless/v1/service.rb +27 -28
  47. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +22 -22
  48. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +22 -22
  49. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +25 -24
  50. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +26 -24
  51. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +21 -24
  52. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +31 -31
  53. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +35 -35
  54. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +22 -22
  55. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +22 -22
  56. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +12 -12
  57. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
  58. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +6 -3
  59. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +15 -9
  60. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +6 -3
  61. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +15 -9
  62. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -6
  63. data/lib/twilio-ruby/rest/taskrouter.rb +2 -1
  64. data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -1
  65. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +102 -95
  66. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +52 -44
  67. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +90 -81
  68. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +152 -136
  69. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +35 -29
  70. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +96 -89
  71. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +61 -61
  72. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +27 -21
  73. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +46 -46
  74. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +57 -64
  75. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +98 -79
  76. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +41 -39
  77. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +39 -33
  78. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +32 -31
  79. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +16 -11
  80. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +42 -42
  81. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +75 -72
  82. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +59 -51
  83. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +24 -18
  84. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +54 -46
  85. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +48 -46
  86. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +17 -17
  87. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +44 -42
  88. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +24 -18
  89. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +3 -3
  90. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +1 -2
  91. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +1 -2
  92. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +12 -12
  93. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +6 -6
  94. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +6 -6
  95. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +2 -1
  96. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
  97. data/lib/twilio-ruby/rest/video.rb +8 -8
  98. data/lib/twilio-ruby/rest/video/v1.rb +4 -7
  99. data/lib/twilio-ruby/rest/video/v1/composition.rb +89 -98
  100. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +224 -195
  101. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +34 -34
  102. data/lib/twilio-ruby/rest/video/v1/recording.rb +53 -55
  103. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +32 -32
  104. data/lib/twilio-ruby/rest/video/v1/room.rb +71 -61
  105. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +45 -33
  106. data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +56 -57
  107. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +25 -22
  108. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +10 -10
  109. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +24 -23
  110. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -1
  111. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +5 -5
  112. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +2 -2
  113. data/lib/twilio-ruby/version.rb +1 -1
  114. data/spec/integration/conversations/v1/conversation/message_spec.rb +58 -0
  115. metadata +4 -4
@@ -73,7 +73,8 @@ module Twilio
73
73
 
74
74
  ##
75
75
  # Fetch a ConfigurationInstance
76
- # @param [String] ui_version Pinned UI version
76
+ # @param [String] ui_version The Pinned UI version of the Configuration resource
77
+ # to fetch.
77
78
  # @return [ConfigurationInstance] Fetched ConfigurationInstance
78
79
  def fetch(ui_version: :unset)
79
80
  params = Twilio::Values.of({'UiVersion' => ui_version, })
@@ -198,218 +199,219 @@ module Twilio
198
199
  end
199
200
 
200
201
  ##
201
- # @return [String] The unique id of the Account responsible for this configuration
202
+ # @return [String] The SID of the Account that created the resource
202
203
  def account_sid
203
204
  @properties['account_sid']
204
205
  end
205
206
 
206
207
  ##
207
- # @return [Time] The time the Configuration was created, given as GMT in ISO 8601 format
208
+ # @return [Time] The ISO 8601 date and time in GMT when the Configuration resource was created
208
209
  def date_created
209
210
  @properties['date_created']
210
211
  end
211
212
 
212
213
  ##
213
- # @return [Time] The time the Configuration was last updated, given as GMT in ISO 8601 format
214
+ # @return [Time] The ISO 8601 date and time in GMT when the Configuration resource was last updated
214
215
  def date_updated
215
216
  @properties['date_updated']
216
217
  end
217
218
 
218
219
  ##
219
- # @return [Hash] Attiributes
220
+ # @return [Hash] An object that contains application-specific data
220
221
  def attributes
221
222
  @properties['attributes']
222
223
  end
223
224
 
224
225
  ##
225
- # @return [configuration.Status] Status of the Flex onboarding
226
+ # @return [configuration.Status] The status of the Flex onboarding
226
227
  def status
227
228
  @properties['status']
228
229
  end
229
230
 
230
231
  ##
231
- # @return [String] The unique ID of the TaskRouter Workspace
232
+ # @return [String] The SID of the TaskRouter Workspace
232
233
  def taskrouter_workspace_sid
233
234
  @properties['taskrouter_workspace_sid']
234
235
  end
235
236
 
236
237
  ##
237
- # @return [String] The unique ID of the TaskRouter Target Workflow
238
+ # @return [String] The SID of the TaskRouter target Workflow
238
239
  def taskrouter_target_workflow_sid
239
240
  @properties['taskrouter_target_workflow_sid']
240
241
  end
241
242
 
242
243
  ##
243
- # @return [String] The unique ID of the TaskRouter Target TaskQueue
244
+ # @return [String] The SID of the TaskRouter Target TaskQueue
244
245
  def taskrouter_target_taskqueue_sid
245
246
  @properties['taskrouter_target_taskqueue_sid']
246
247
  end
247
248
 
248
249
  ##
249
- # @return [Hash] Array of TaskRouter TaskQueues
250
+ # @return [Hash] The list of TaskRouter TaskQueues
250
251
  def taskrouter_taskqueues
251
252
  @properties['taskrouter_taskqueues']
252
253
  end
253
254
 
254
255
  ##
255
- # @return [Hash] Skill description for TaskRouter workers
256
+ # @return [Hash] The Skill description for TaskRouter workers
256
257
  def taskrouter_skills
257
258
  @properties['taskrouter_skills']
258
259
  end
259
260
 
260
261
  ##
261
- # @return [Hash] TaskRouter default channel capacities and availability for workers
262
+ # @return [Hash] The TaskRouter default channel capacities and availability for workers
262
263
  def taskrouter_worker_channels
263
264
  @properties['taskrouter_worker_channels']
264
265
  end
265
266
 
266
267
  ##
267
- # @return [Hash] The taskrouter_worker_attributes
268
+ # @return [Hash] The TaskRouter Worker attributes
268
269
  def taskrouter_worker_attributes
269
270
  @properties['taskrouter_worker_attributes']
270
271
  end
271
272
 
272
273
  ##
273
- # @return [String] The unique ID of the offline activity
274
+ # @return [String] The TaskRouter SID of the offline activity
274
275
  def taskrouter_offline_activity_sid
275
276
  @properties['taskrouter_offline_activity_sid']
276
277
  end
277
278
 
278
279
  ##
279
- # @return [String] Flex resources hosting URL for the main UI
280
+ # @return [String] The URL where the Flex instance is hosted
280
281
  def runtime_domain
281
282
  @properties['runtime_domain']
282
283
  end
283
284
 
284
285
  ##
285
- # @return [String] Unique 34 character ID of the Messaging Service
286
+ # @return [String] The SID of the Messaging service instance
286
287
  def messaging_service_instance_sid
287
288
  @properties['messaging_service_instance_sid']
288
289
  end
289
290
 
290
291
  ##
291
- # @return [String] The unique id of the Chat Service this user belongs to
292
+ # @return [String] The SID of the chat service this user belongs to
292
293
  def chat_service_instance_sid
293
294
  @properties['chat_service_instance_sid']
294
295
  end
295
296
 
296
297
  ##
297
- # @return [String] Main language of the Flex UI
298
+ # @return [String] The primary language of the Flex UI
298
299
  def ui_language
299
300
  @properties['ui_language']
300
301
  end
301
302
 
302
303
  ##
303
- # @return [Hash] UI Attributes
304
+ # @return [Hash] The object that describes Flex UI characteristics and settings
304
305
  def ui_attributes
305
306
  @properties['ui_attributes']
306
307
  end
307
308
 
308
309
  ##
309
- # @return [String] Pinned UI version
310
+ # @return [String] The Pinned UI version
310
311
  def ui_version
311
312
  @properties['ui_version']
312
313
  end
313
314
 
314
315
  ##
315
- # @return [String] Flex Service version
316
+ # @return [String] The Flex Service version
316
317
  def service_version
317
318
  @properties['service_version']
318
319
  end
319
320
 
320
321
  ##
321
- # @return [Boolean] Call recording enabled
322
+ # @return [Boolean] Whether call recording is enabled
322
323
  def call_recording_enabled
323
324
  @properties['call_recording_enabled']
324
325
  end
325
326
 
326
327
  ##
327
- # @return [String] Call recording webhook url
328
+ # @return [String] The call recording webhook URL
328
329
  def call_recording_webhook_url
329
330
  @properties['call_recording_webhook_url']
330
331
  end
331
332
 
332
333
  ##
333
- # @return [Boolean] Flag indicating whether CRM is present for Flex
334
+ # @return [Boolean] Whether CRM is present for Flex
334
335
  def crm_enabled
335
336
  @properties['crm_enabled']
336
337
  end
337
338
 
338
339
  ##
339
- # @return [String] CRM Type
340
+ # @return [String] The CRM Type
340
341
  def crm_type
341
342
  @properties['crm_type']
342
343
  end
343
344
 
344
345
  ##
345
- # @return [String] CRM Callback URL
346
+ # @return [String] The CRM Callback URL
346
347
  def crm_callback_url
347
348
  @properties['crm_callback_url']
348
349
  end
349
350
 
350
351
  ##
351
- # @return [String] CRM Fallback URL
352
+ # @return [String] The CRM Fallback URL
352
353
  def crm_fallback_url
353
354
  @properties['crm_fallback_url']
354
355
  end
355
356
 
356
357
  ##
357
- # @return [Hash] CRM Attributes
358
+ # @return [Hash] An object that contains the CRM attributes
358
359
  def crm_attributes
359
360
  @properties['crm_attributes']
360
361
  end
361
362
 
362
363
  ##
363
- # @return [Hash] Public Attributes
364
+ # @return [Hash] The list of public attributes
364
365
  def public_attributes
365
366
  @properties['public_attributes']
366
367
  end
367
368
 
368
369
  ##
369
- # @return [Boolean] Is plugin service Enabled
370
+ # @return [Boolean] Whether the plugin service enabled
370
371
  def plugin_service_enabled
371
372
  @properties['plugin_service_enabled']
372
373
  end
373
374
 
374
375
  ##
375
- # @return [Hash] Plugin service Attributes
376
+ # @return [Hash] The plugin service attributes
376
377
  def plugin_service_attributes
377
378
  @properties['plugin_service_attributes']
378
379
  end
379
380
 
380
381
  ##
381
- # @return [Hash] Integration parameters
382
+ # @return [Hash] A list of objects that contain the configurations for the Integrations supported in this configuration
382
383
  def integrations
383
384
  @properties['integrations']
384
385
  end
385
386
 
386
387
  ##
387
- # @return [Hash] Outbound call flows Attributes
388
+ # @return [Hash] The list of outbound call flows
388
389
  def outbound_call_flows
389
390
  @properties['outbound_call_flows']
390
391
  end
391
392
 
392
393
  ##
393
- # @return [String] List of enabled features
394
+ # @return [String] The list of enabled features
394
395
  def features_enabled
395
396
  @properties['features_enabled']
396
397
  end
397
398
 
398
399
  ##
399
- # @return [String] List of serverless services sids
400
+ # @return [String] The list of serverless service SIDs
400
401
  def serverless_service_sids
401
402
  @properties['serverless_service_sids']
402
403
  end
403
404
 
404
405
  ##
405
- # @return [String] The URL for this resource
406
+ # @return [String] The absolute URL of the Configuration resource
406
407
  def url
407
408
  @properties['url']
408
409
  end
409
410
 
410
411
  ##
411
412
  # Fetch a ConfigurationInstance
412
- # @param [String] ui_version Pinned UI version
413
+ # @param [String] ui_version The Pinned UI version of the Configuration resource
414
+ # to fetch.
413
415
  # @return [ConfigurationInstance] Fetched ConfigurationInstance
414
416
  def fetch(ui_version: :unset)
415
417
  context.fetch(ui_version: ui_version, )
@@ -27,7 +27,8 @@ 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 Human readable description of this FlexFlow
30
+ # @param [String] friendly_name The `friendly_name` of the FlexFlow resources to
31
+ # read.
31
32
  # @param [Integer] limit Upper limit for the number of records to return. stream()
32
33
  # guarantees to never return more than limit. Default is no limit
33
34
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -43,7 +44,8 @@ module Twilio
43
44
  # Streams FlexFlowInstance records from the API as an Enumerable.
44
45
  # This operation lazily loads records as efficiently as possible until the limit
45
46
  # is reached.
46
- # @param [String] friendly_name Human readable description of this FlexFlow
47
+ # @param [String] friendly_name The `friendly_name` of the FlexFlow resources to
48
+ # read.
47
49
  # @param [Integer] limit Upper limit for the number of records to return. stream()
48
50
  # guarantees to never return more than limit. Default is no limit.
49
51
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -76,7 +78,8 @@ module Twilio
76
78
  ##
77
79
  # Retrieve a single page of FlexFlowInstance records from the API.
78
80
  # Request is executed immediately.
79
- # @param [String] friendly_name Human readable description of this FlexFlow
81
+ # @param [String] friendly_name The `friendly_name` of the FlexFlow resources to
82
+ # read.
80
83
  # @param [String] page_token PageToken provided by the API
81
84
  # @param [Integer] page_number Page Number, this value is simply for client state
82
85
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -112,32 +115,33 @@ module Twilio
112
115
  ##
113
116
  # Retrieve a single page of FlexFlowInstance records from the API.
114
117
  # Request is executed immediately.
115
- # @param [String] friendly_name Human readable description of this FlexFlow
116
- # @param [String] chat_service_sid The unique SID identifier of the chat service
117
- # @param [flex_flow.ChannelType] channel_type Channel type (web | facebook | sms)
118
- # @param [String] contact_identity Channel contact Identity (number / contact)
119
- # @param [Boolean] enabled Boolean flag for enabling or disabling the FlexFlow
120
- # @param [flex_flow.IntegrationType] integration_type Integration type (studio |
121
- # external | task)
122
- # @param [String] integration_flow_sid The unique SID identifier of the Flow for
123
- # Studio integration type
124
- # @param [String] integration_url External Webhook Url for External integration
125
- # type
126
- # @param [String] integration_workspace_sid Workspace Sid for a new task for Task
127
- # integration type
128
- # @param [String] integration_workflow_sid Workflow Sid for a new task for Task
129
- # integration type
130
- # @param [String] integration_channel Task Channel for a new task for Task
131
- # integration type (default is 'default')
132
- # @param [String] integration_timeout Task timeout in seconds for a new task for
133
- # Task integration type (default 86400)
134
- # @param [String] integration_priority Task priority for a new task for Task
135
- # integration type (default 0)
136
- # @param [Boolean] integration_creation_on_message Flag for task creation, either
137
- # creating task with the channel, or if true create task whwn first message
138
- # arrives (for Task integration type)
139
- # @param [Boolean] long_lived Default Flag defining whether the new channels
140
- # created are long lived or not
118
+ # @param [String] friendly_name A descriptive string that you create to describe
119
+ # the FlexFlow resource.
120
+ # @param [String] chat_service_sid The SID of the chat service.
121
+ # @param [flex_flow.ChannelType] channel_type The channel type. Can be: `web`,
122
+ # `facebook`, or `sms`.
123
+ # @param [String] contact_identity The channel contact's Identity.
124
+ # @param [Boolean] enabled Whether the new FlexFlow is enabled.
125
+ # @param [flex_flow.IntegrationType] integration_type The integration type. Can
126
+ # be: `studio`, `external`, or `task`.
127
+ # @param [String] integration_flow_sid The SID of the Flow when `integration_type`
128
+ # is `studio`.
129
+ # @param [String] integration_url The External Webhook URL when `integration_type`
130
+ # is `external`.
131
+ # @param [String] integration_workspace_sid The Workspace SID for a new task for
132
+ # Task `integration_type`.
133
+ # @param [String] integration_workflow_sid The Workflow SID for a new task when
134
+ # `integration_type` is `task`.
135
+ # @param [String] integration_channel The task channel for a new task when
136
+ # `integration_type` is `task`. The default is `default`.
137
+ # @param [String] integration_timeout The task timeout in seconds for a new task
138
+ # when `integration_type` is `task`. The default is `86,400` seconds (24 hours).
139
+ # @param [String] integration_priority The task priority of a new task when
140
+ # `integration_type` is `task`. The default priority is `0`.
141
+ # @param [Boolean] integration_creation_on_message Whether to create a task when
142
+ # the first message arrives when `integration_type` is `task`. If `false`, the
143
+ # task is created with the channel.
144
+ # @param [Boolean] long_lived Whether new channels are long-lived.
141
145
  # @return [FlexFlowInstance] Newly created FlexFlowInstance
142
146
  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)
143
147
  data = Twilio::Values.of({
@@ -207,7 +211,7 @@ module Twilio
207
211
  ##
208
212
  # Initialize the FlexFlowContext
209
213
  # @param [Version] version Version that contains the resource
210
- # @param [String] sid The unique ID of the FlexFlow
214
+ # @param [String] sid The SID of the FlexFlow resource to fetch.
211
215
  # @return [FlexFlowContext] FlexFlowContext
212
216
  def initialize(version, sid)
213
217
  super(version)
@@ -234,32 +238,33 @@ module Twilio
234
238
 
235
239
  ##
236
240
  # Update the FlexFlowInstance
237
- # @param [String] friendly_name Human readable description of this FlexFlow
238
- # @param [String] chat_service_sid The unique SID identifier of the chat service
239
- # @param [flex_flow.ChannelType] channel_type Channel type (web | facebook | sms)
240
- # @param [String] contact_identity Channel contact Identity (number / contact)
241
- # @param [Boolean] enabled Boolean flag for enabling or disabling the FlexFlow
242
- # @param [flex_flow.IntegrationType] integration_type Integration type (studio |
243
- # external | task)
244
- # @param [String] integration_flow_sid The unique SID identifier of the Flow for
245
- # Studio integration type
246
- # @param [String] integration_url External Webhook Url for External integration
247
- # type
248
- # @param [String] integration_workspace_sid Workspace Sid for a new task for Task
249
- # integration type
250
- # @param [String] integration_workflow_sid Workflow Sid for a new task for Task
251
- # integration type
252
- # @param [String] integration_channel Task Channel for a new task for Task
253
- # integration type (default is 'default')
254
- # @param [String] integration_timeout Task timeout in seconds for a new task for
255
- # Task integration type (default 86400)
256
- # @param [String] integration_priority Task priority for a new task for Task
257
- # integration type (default 0)
258
- # @param [Boolean] integration_creation_on_message Flag for task creation, either
259
- # creating task with the channel, or if true create task whwn first message
260
- # arrives (for Task integration type)
261
- # @param [Boolean] long_lived Default Flag defining whether the new channels
262
- # created are long lived or not
241
+ # @param [String] friendly_name A descriptive string that you create to describe
242
+ # the FlexFlow resource.
243
+ # @param [String] chat_service_sid The SID of the chat service.
244
+ # @param [flex_flow.ChannelType] channel_type The channel type. Can be: `web`,
245
+ # `facebook`, or `sms`.
246
+ # @param [String] contact_identity The channel contact's Identity.
247
+ # @param [Boolean] enabled Whether the FlexFlow is enabled.
248
+ # @param [flex_flow.IntegrationType] integration_type The integration type. Can
249
+ # be: `studio`, `external`, or `task`.
250
+ # @param [String] integration_flow_sid The SID of the Flow when `integration_type`
251
+ # is `studio`.
252
+ # @param [String] integration_url The External Webhook URL when `integration_type`
253
+ # is `external`.
254
+ # @param [String] integration_workspace_sid The Workspace SID for a new task when
255
+ # `integration_type` is `task`.
256
+ # @param [String] integration_workflow_sid The Workflow SID for a new task when
257
+ # `integration_type` is `task`.
258
+ # @param [String] integration_channel The task channel for a new task when
259
+ # `integration_type` is `task`. The default is `default`.
260
+ # @param [String] integration_timeout The task timeout in seconds for a new task
261
+ # when `integration_type` is `task`. The default is `86,400` seconds (24 hours).
262
+ # @param [String] integration_priority The task priority of a new task when
263
+ # `integration_type` is `task`. The default priority is `0`.
264
+ # @param [Boolean] integration_creation_on_message Whether to create a task when
265
+ # the first message arrives when `integration_type` is `task`. If `false`, the
266
+ # task is created with the channel.
267
+ # @param [Boolean] long_lived Whether new channels created are long-lived.
263
268
  # @return [FlexFlowInstance] Updated FlexFlowInstance
264
269
  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)
265
270
  data = Twilio::Values.of({
@@ -316,7 +321,7 @@ module Twilio
316
321
  # Initialize the FlexFlowInstance
317
322
  # @param [Version] version Version that contains the resource
318
323
  # @param [Hash] payload payload that contains response from Twilio
319
- # @param [String] sid The unique ID of the FlexFlow
324
+ # @param [String] sid The SID of the FlexFlow resource to fetch.
320
325
  # @return [FlexFlowInstance] FlexFlowInstance
321
326
  def initialize(version, payload, sid: nil)
322
327
  super(version)
@@ -355,79 +360,79 @@ module Twilio
355
360
  end
356
361
 
357
362
  ##
358
- # @return [String] The ID of the account that owns this Workflow
363
+ # @return [String] The SID of the Account that created the resource
359
364
  def account_sid
360
365
  @properties['account_sid']
361
366
  end
362
367
 
363
368
  ##
364
- # @return [Time] The time the FlexFlow was created, given as GMT in ISO 8601 format.
369
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was created
365
370
  def date_created
366
371
  @properties['date_created']
367
372
  end
368
373
 
369
374
  ##
370
- # @return [Time] The time the FlexFlow was last updated, given as GMT in ISO 8601 format.
375
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
371
376
  def date_updated
372
377
  @properties['date_updated']
373
378
  end
374
379
 
375
380
  ##
376
- # @return [String] The unique ID of the FlexFlow
381
+ # @return [String] The unique string that identifies the resource
377
382
  def sid
378
383
  @properties['sid']
379
384
  end
380
385
 
381
386
  ##
382
- # @return [String] Human readable description of this FlexFlow
387
+ # @return [String] The string that you assigned to describe the resource
383
388
  def friendly_name
384
389
  @properties['friendly_name']
385
390
  end
386
391
 
387
392
  ##
388
- # @return [String] Service Sid.
393
+ # @return [String] The SID of the chat service
389
394
  def chat_service_sid
390
395
  @properties['chat_service_sid']
391
396
  end
392
397
 
393
398
  ##
394
- # @return [flex_flow.ChannelType] Channel type
399
+ # @return [flex_flow.ChannelType] The channel type
395
400
  def channel_type
396
401
  @properties['channel_type']
397
402
  end
398
403
 
399
404
  ##
400
- # @return [String] Channel contact Identity
405
+ # @return [String] The channel contact's Identity
401
406
  def contact_identity
402
407
  @properties['contact_identity']
403
408
  end
404
409
 
405
410
  ##
406
- # @return [Boolean] Boolean flag for enabling or disabling the FlexFlow
411
+ # @return [Boolean] Whether the FlexFlow is enabled
407
412
  def enabled
408
413
  @properties['enabled']
409
414
  end
410
415
 
411
416
  ##
412
- # @return [flex_flow.IntegrationType] Integration type
417
+ # @return [flex_flow.IntegrationType] The integration type
413
418
  def integration_type
414
419
  @properties['integration_type']
415
420
  end
416
421
 
417
422
  ##
418
- # @return [Hash] Integration block
423
+ # @return [Hash] An object that contains specific parameters for the integration
419
424
  def integration
420
425
  @properties['integration']
421
426
  end
422
427
 
423
428
  ##
424
- # @return [Boolean] Long Lived flag for new Channel
429
+ # @return [Boolean] Whether new channels are long-lived
425
430
  def long_lived
426
431
  @properties['long_lived']
427
432
  end
428
433
 
429
434
  ##
430
- # @return [String] The url
435
+ # @return [String] The absolute URL of the FlexFlow resource
431
436
  def url
432
437
  @properties['url']
433
438
  end
@@ -441,32 +446,33 @@ module Twilio
441
446
 
442
447
  ##
443
448
  # Update the FlexFlowInstance
444
- # @param [String] friendly_name Human readable description of this FlexFlow
445
- # @param [String] chat_service_sid The unique SID identifier of the chat service
446
- # @param [flex_flow.ChannelType] channel_type Channel type (web | facebook | sms)
447
- # @param [String] contact_identity Channel contact Identity (number / contact)
448
- # @param [Boolean] enabled Boolean flag for enabling or disabling the FlexFlow
449
- # @param [flex_flow.IntegrationType] integration_type Integration type (studio |
450
- # external | task)
451
- # @param [String] integration_flow_sid The unique SID identifier of the Flow for
452
- # Studio integration type
453
- # @param [String] integration_url External Webhook Url for External integration
454
- # type
455
- # @param [String] integration_workspace_sid Workspace Sid for a new task for Task
456
- # integration type
457
- # @param [String] integration_workflow_sid Workflow Sid for a new task for Task
458
- # integration type
459
- # @param [String] integration_channel Task Channel for a new task for Task
460
- # integration type (default is 'default')
461
- # @param [String] integration_timeout Task timeout in seconds for a new task for
462
- # Task integration type (default 86400)
463
- # @param [String] integration_priority Task priority for a new task for Task
464
- # integration type (default 0)
465
- # @param [Boolean] integration_creation_on_message Flag for task creation, either
466
- # creating task with the channel, or if true create task whwn first message
467
- # arrives (for Task integration type)
468
- # @param [Boolean] long_lived Default Flag defining whether the new channels
469
- # created are long lived or not
449
+ # @param [String] friendly_name A descriptive string that you create to describe
450
+ # the FlexFlow resource.
451
+ # @param [String] chat_service_sid The SID of the chat service.
452
+ # @param [flex_flow.ChannelType] channel_type The channel type. Can be: `web`,
453
+ # `facebook`, or `sms`.
454
+ # @param [String] contact_identity The channel contact's Identity.
455
+ # @param [Boolean] enabled Whether the FlexFlow is enabled.
456
+ # @param [flex_flow.IntegrationType] integration_type The integration type. Can
457
+ # be: `studio`, `external`, or `task`.
458
+ # @param [String] integration_flow_sid The SID of the Flow when `integration_type`
459
+ # is `studio`.
460
+ # @param [String] integration_url The External Webhook URL when `integration_type`
461
+ # is `external`.
462
+ # @param [String] integration_workspace_sid The Workspace SID for a new task when
463
+ # `integration_type` is `task`.
464
+ # @param [String] integration_workflow_sid The Workflow SID for a new task when
465
+ # `integration_type` is `task`.
466
+ # @param [String] integration_channel The task channel for a new task when
467
+ # `integration_type` is `task`. The default is `default`.
468
+ # @param [String] integration_timeout The task timeout in seconds for a new task
469
+ # when `integration_type` is `task`. The default is `86,400` seconds (24 hours).
470
+ # @param [String] integration_priority The task priority of a new task when
471
+ # `integration_type` is `task`. The default priority is `0`.
472
+ # @param [Boolean] integration_creation_on_message Whether to create a task when
473
+ # the first message arrives when `integration_type` is `task`. If `false`, the
474
+ # task is created with the channel.
475
+ # @param [Boolean] long_lived Whether new channels created are long-lived.
470
476
  # @return [FlexFlowInstance] Updated FlexFlowInstance
471
477
  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)
472
478
  context.update(