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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: baa7dce555a4ad4de4227461d7a72ec110497c8b
4
- data.tar.gz: bbc2be81ddf4ba27d70771882365d9a7e6f37e1e
2
+ SHA256:
3
+ metadata.gz: 3e83808d846b8e8beaef1ac91c237b5b4abc5836b04606faec7b47d1d360e9a3
4
+ data.tar.gz: ab8700209a80759c0a5c3572395d826cdac1896d3fccf69fae9b1a62f3792b17
5
5
  SHA512:
6
- metadata.gz: a5346f6f6ca92b82f445cd38581da67d1db3fd3c4dd23b8e05c14a59473ce2bf6e4cc523b070bd747d01391ec14bb9c2219a4383eeba01878f7dc08c83e1edf0
7
- data.tar.gz: 9c4308bdc71dc730ec1aee203759aa5d0c00f56889efe315d37b0e95cef5a0d0cc6e338923afd0ebbdba1fd6fcd0c0a511a64a2c31a733bfc60bae34d1b353eb
6
+ metadata.gz: a9e69978d25fd39b226689011b091e5084f3b6223712300a1200b31b344160c05de052dc8e43e8c3d7b0b60eb57f9072e45dfad77fd0239776be1bb204db84ce
7
+ data.tar.gz: 655550d2e0e1410a9ca6cf6db0c0a4c1612dc8123274c79d3b7ee447b5d7ce829f880fd7b6efb98ae0730999d0c1c0bb7338125af6a8c7c6136018adfe1edb6b
@@ -0,0 +1 @@
1
+ Gemfile.lock
data/CHANGES.md CHANGED
@@ -1,6 +1,19 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2019-10-02] Version 5.27.1
5
+ ---------------------------
6
+ **Library**
7
+ - [PR #473](https://github.com/twilio/twilio-ruby/pull/473): Wrap any Faraday error as a TwilioError. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
8
+ - [PR #472](https://github.com/twilio/twilio-ruby/pull/472): Fix the Dockerfile to use the latest Ruby 2.4 and ignore the Gem lock file. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
9
+
10
+ **Conversations**
11
+ - Add media to Conversations Message resource
12
+
13
+ **Supersim**
14
+ - Add List endpoint to Sims resource for Super Sim Pilot
15
+
16
+
4
17
  [2019-09-18] Version 5.27.0
5
18
  ----------------------------
6
19
  **Library**
@@ -11,6 +11,7 @@ even better than it is today! Here are the guidelines we'd like you to follow:
11
11
  - [Submission Guidelines](#submit)
12
12
  - [Coding Rules](#rules)
13
13
 
14
+
14
15
  ## <a name="coc"></a> Code of Conduct
15
16
 
16
17
  Help us keep `twilio-ruby` open and inclusive. Please be kind to and considerate
@@ -154,6 +155,7 @@ you are working:
154
155
  * All features or bug fixes **must be tested** by one or more tests.
155
156
  * All classes and methods **must be documented**.
156
157
 
158
+
157
159
  [docs-link]: https://www.twilio.com/docs/libraries/ruby
158
160
  [issue-link]: https://github.com/twilio/twilio-ruby/issues/new
159
161
  [github]: https://github.com/twilio/twilio-ruby
data/Dockerfile CHANGED
@@ -1,9 +1,9 @@
1
- FROM ruby:2.4.0
1
+ FROM ruby:2.4
2
2
 
3
3
  RUN mkdir /twilio
4
4
  WORKDIR /twilio
5
5
 
6
6
  COPY . .
7
7
 
8
- RUN bundle install
8
+ RUN bundle install
9
9
  RUN bundle exec rake install
data/README.md CHANGED
@@ -29,13 +29,13 @@ in-line code documentation here in the library.
29
29
  To install using [Bundler][bundler] grab the latest stable version:
30
30
 
31
31
  ```ruby
32
- gem 'twilio-ruby', '~> 5.27.0'
32
+ gem 'twilio-ruby', '~> 5.27.1'
33
33
  ```
34
34
 
35
35
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
36
36
 
37
37
  ```bash
38
- gem install twilio-ruby -v 5.27.0
38
+ gem install twilio-ruby -v 5.27.1
39
39
  ```
40
40
 
41
41
  To build and install the development branch yourself from the latest source:
@@ -54,7 +54,7 @@ module Twilio
54
54
  @connection.send(request.method.downcase.to_sym,
55
55
  request.url,
56
56
  request.method == 'GET' ? request.params : request.data)
57
- rescue Faraday::ClientError => e
57
+ rescue Faraday::Error => e
58
58
  raise Twilio::REST::TwilioError, e
59
59
  end
60
60
 
@@ -187,12 +187,12 @@ module Twilio
187
187
  # @param [call.Status] status The status of the calls to include. Can be:
188
188
  # `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`,
189
189
  # or `no-answer`.
190
- # @param [Time] start_time_before Only include calls that started on or after this date
191
- # @param [Time] start_time Only include calls that started on or after this date
192
- # @param [Time] start_time_after Only include calls that started on or after this date
193
- # @param [Time] end_time_before Only include usage that occurred on or before this date
194
- # @param [Time] end_time Only include usage that occurred on or before this date
195
- # @param [Time] end_time_after Only include usage that occurred on or before this date
190
+ # @param [Time] start_time_before Only include calls that started on this date
191
+ # @param [Time] start_time Only include calls that started on this date
192
+ # @param [Time] start_time_after Only include calls that started on this date
193
+ # @param [Time] end_time_before Only include calls that ended on this date
194
+ # @param [Time] end_time Only include calls that ended on this date
195
+ # @param [Time] end_time_after Only include calls that ended on this date
196
196
  # @param [Integer] limit Upper limit for the number of records to return. stream()
197
197
  # guarantees to never return more than limit. Default is no limit
198
198
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -230,12 +230,12 @@ module Twilio
230
230
  # @param [call.Status] status The status of the calls to include. Can be:
231
231
  # `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`,
232
232
  # or `no-answer`.
233
- # @param [Time] start_time_before Only include calls that started on or after this date
234
- # @param [Time] start_time Only include calls that started on or after this date
235
- # @param [Time] start_time_after Only include calls that started on or after this date
236
- # @param [Time] end_time_before Only include usage that occurred on or before this date
237
- # @param [Time] end_time Only include usage that occurred on or before this date
238
- # @param [Time] end_time_after Only include usage that occurred on or before this date
233
+ # @param [Time] start_time_before Only include calls that started on this date
234
+ # @param [Time] start_time Only include calls that started on this date
235
+ # @param [Time] start_time_after Only include calls that started on this date
236
+ # @param [Time] end_time_before Only include calls that ended on this date
237
+ # @param [Time] end_time Only include calls that ended on this date
238
+ # @param [Time] end_time_after Only include calls that ended on this date
239
239
  # @param [Integer] limit Upper limit for the number of records to return. stream()
240
240
  # guarantees to never return more than limit. Default is no limit.
241
241
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -289,12 +289,12 @@ module Twilio
289
289
  # @param [call.Status] status The status of the calls to include. Can be:
290
290
  # `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`,
291
291
  # or `no-answer`.
292
- # @param [Time] start_time_before Only include calls that started on or after this date
293
- # @param [Time] start_time Only include calls that started on or after this date
294
- # @param [Time] start_time_after Only include calls that started on or after this date
295
- # @param [Time] end_time_before Only include usage that occurred on or before this date
296
- # @param [Time] end_time Only include usage that occurred on or before this date
297
- # @param [Time] end_time_after Only include usage that occurred on or before this date
292
+ # @param [Time] start_time_before Only include calls that started on this date
293
+ # @param [Time] start_time Only include calls that started on this date
294
+ # @param [Time] start_time_after Only include calls that started on this date
295
+ # @param [Time] end_time_before Only include calls that ended on this date
296
+ # @param [Time] end_time Only include calls that ended on this date
297
+ # @param [Time] end_time_after Only include calls that ended on this date
298
298
  # @param [String] page_token PageToken provided by the API
299
299
  # @param [Integer] page_number Page Number, this value is simply for client state
300
300
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -34,9 +34,9 @@ module Twilio
34
34
  # Lists MediaInstance records from the API as a list.
35
35
  # Unlike stream(), this operation is eager and will load `limit` records into
36
36
  # memory before returning.
37
- # @param [Time] date_created_before The `YYYY-MM-DD` value of the resources to read
38
- # @param [Time] date_created The `YYYY-MM-DD` value of the resources to read
39
- # @param [Time] date_created_after The `YYYY-MM-DD` value of the resources to read
37
+ # @param [Time] date_created_before Only include media that was created on this date
38
+ # @param [Time] date_created Only include media that was created on this date
39
+ # @param [Time] date_created_after Only include media that was created on this date
40
40
  # @param [Integer] limit Upper limit for the number of records to return. stream()
41
41
  # guarantees to never return more than limit. Default is no limit
42
42
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -58,9 +58,9 @@ module Twilio
58
58
  # Streams MediaInstance records from the API as an Enumerable.
59
59
  # This operation lazily loads records as efficiently as possible until the limit
60
60
  # is reached.
61
- # @param [Time] date_created_before The `YYYY-MM-DD` value of the resources to read
62
- # @param [Time] date_created The `YYYY-MM-DD` value of the resources to read
63
- # @param [Time] date_created_after The `YYYY-MM-DD` value of the resources to read
61
+ # @param [Time] date_created_before Only include media that was created on this date
62
+ # @param [Time] date_created Only include media that was created on this date
63
+ # @param [Time] date_created_after Only include media that was created on this date
64
64
  # @param [Integer] limit Upper limit for the number of records to return. stream()
65
65
  # guarantees to never return more than limit. Default is no limit.
66
66
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -98,9 +98,9 @@ module Twilio
98
98
  ##
99
99
  # Retrieve a single page of MediaInstance records from the API.
100
100
  # Request is executed immediately.
101
- # @param [Time] date_created_before The `YYYY-MM-DD` value of the resources to read
102
- # @param [Time] date_created The `YYYY-MM-DD` value of the resources to read
103
- # @param [Time] date_created_after The `YYYY-MM-DD` value of the resources to read
101
+ # @param [Time] date_created_before Only include media that was created on this date
102
+ # @param [Time] date_created Only include media that was created on this date
103
+ # @param [Time] date_created_after Only include media that was created on this date
104
104
  # @param [String] page_token PageToken provided by the API
105
105
  # @param [Integer] page_number Page Number, this value is simply for client state
106
106
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -31,9 +31,9 @@ module Twilio
31
31
  # Lists RecordingInstance records from the API as a list.
32
32
  # Unlike stream(), this operation is eager and will load `limit` records into
33
33
  # memory before returning.
34
- # @param [Time] date_created_before The `YYYY-MM-DD` value of the resources to read
35
- # @param [Time] date_created The `YYYY-MM-DD` value of the resources to read
36
- # @param [Time] date_created_after The `YYYY-MM-DD` value of the resources to read
34
+ # @param [Time] date_created_before Only include recordings that were created on this date
35
+ # @param [Time] date_created Only include recordings that were created on this date
36
+ # @param [Time] date_created_after Only include recordings that were created on this date
37
37
  # @param [String] call_sid The [Call](https://www.twilio.com/docs/voice/api/call)
38
38
  # SID of the resources to read.
39
39
  # @param [String] conference_sid The Conference SID that identifies the conference
@@ -61,9 +61,9 @@ module Twilio
61
61
  # Streams RecordingInstance records from the API as an Enumerable.
62
62
  # This operation lazily loads records as efficiently as possible until the limit
63
63
  # is reached.
64
- # @param [Time] date_created_before The `YYYY-MM-DD` value of the resources to read
65
- # @param [Time] date_created The `YYYY-MM-DD` value of the resources to read
66
- # @param [Time] date_created_after The `YYYY-MM-DD` value of the resources to read
64
+ # @param [Time] date_created_before Only include recordings that were created on this date
65
+ # @param [Time] date_created Only include recordings that were created on this date
66
+ # @param [Time] date_created_after Only include recordings that were created on this date
67
67
  # @param [String] call_sid The [Call](https://www.twilio.com/docs/voice/api/call)
68
68
  # SID of the resources to read.
69
69
  # @param [String] conference_sid The Conference SID that identifies the conference
@@ -107,9 +107,9 @@ module Twilio
107
107
  ##
108
108
  # Retrieve a single page of RecordingInstance records from the API.
109
109
  # Request is executed immediately.
110
- # @param [Time] date_created_before The `YYYY-MM-DD` value of the resources to read
111
- # @param [Time] date_created The `YYYY-MM-DD` value of the resources to read
112
- # @param [Time] date_created_after The `YYYY-MM-DD` value of the resources to read
110
+ # @param [Time] date_created_before Only include recordings that were created on this date
111
+ # @param [Time] date_created Only include recordings that were created on this date
112
+ # @param [Time] date_created_after Only include recordings that were created on this date
113
113
  # @param [String] call_sid The [Call](https://www.twilio.com/docs/voice/api/call)
114
114
  # SID of the resources to read.
115
115
  # @param [String] conference_sid The Conference SID that identifies the conference
@@ -38,7 +38,7 @@ module Twilio
38
38
  # @param [String] model_build The SID or unique name of the [Model
39
39
  # Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried.
40
40
  # @param [String] status The status of the resources to read. Can be:
41
- # `pending_review`, `reviewed`, or `discarded`
41
+ # `pending-review`, `reviewed`, or `discarded`
42
42
  # @param [Integer] limit Upper limit for the number of records to return. stream()
43
43
  # guarantees to never return more than limit. Default is no limit
44
44
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -65,7 +65,7 @@ module Twilio
65
65
  # @param [String] model_build The SID or unique name of the [Model
66
66
  # Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried.
67
67
  # @param [String] status The status of the resources to read. Can be:
68
- # `pending_review`, `reviewed`, or `discarded`
68
+ # `pending-review`, `reviewed`, or `discarded`
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
@@ -108,7 +108,7 @@ module Twilio
108
108
  # @param [String] model_build The SID or unique name of the [Model
109
109
  # Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried.
110
110
  # @param [String] status The status of the resources to read. Can be:
111
- # `pending_review`, `reviewed`, or `discarded`
111
+ # `pending-review`, `reviewed`, or `discarded`
112
112
  # @param [String] page_token PageToken provided by the API
113
113
  # @param [Integer] page_number Page Number, this value is simply for client state
114
114
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -252,7 +252,7 @@ module Twilio
252
252
  # @param [String] sample_sid The SID of an optional reference to the
253
253
  # [Sample](https://www.twilio.com/docs/autopilot/api/task-sample) created from the
254
254
  # query.
255
- # @param [String] status The new status of the resource. Can be: `pending_review`,
255
+ # @param [String] status The new status of the resource. Can be: `pending-review`,
256
256
  # `reviewed`, or `discarded`
257
257
  # @return [QueryInstance] Updated QueryInstance
258
258
  def update(sample_sid: :unset, status: :unset)
@@ -428,7 +428,7 @@ module Twilio
428
428
  # @param [String] sample_sid The SID of an optional reference to the
429
429
  # [Sample](https://www.twilio.com/docs/autopilot/api/task-sample) created from the
430
430
  # query.
431
- # @param [String] status The new status of the resource. Can be: `pending_review`,
431
+ # @param [String] status The new status of the resource. Can be: `pending-review`,
432
432
  # `reviewed`, or `discarded`
433
433
  # @return [QueryInstance] Updated QueryInstance
434
434
  def update(sample_sid: :unset, status: :unset)
@@ -41,14 +41,16 @@ module Twilio
41
41
  # @param [String] attributes A string metadata field you can use to store any data
42
42
  # you wish. The string value must contain structurally valid JSON if specified.
43
43
  # **Note** that if the attributes are not set "{}" will be returned.
44
+ # @param [String] media_sid The Media Sid to be attached to the new Message.
44
45
  # @return [MessageInstance] Newly created MessageInstance
45
- def create(author: :unset, body: :unset, date_created: :unset, date_updated: :unset, attributes: :unset)
46
+ def create(author: :unset, body: :unset, date_created: :unset, date_updated: :unset, attributes: :unset, media_sid: :unset)
46
47
  data = Twilio::Values.of({
47
48
  'Author' => author,
48
49
  'Body' => body,
49
50
  'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
50
51
  'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
51
52
  'Attributes' => attributes,
53
+ 'MediaSid' => media_sid,
52
54
  })
53
55
 
54
56
  payload = @version.create(
@@ -300,6 +302,7 @@ module Twilio
300
302
  'index' => payload['index'].to_i,
301
303
  'author' => payload['author'],
302
304
  'body' => payload['body'],
305
+ 'media' => payload['media'],
303
306
  'attributes' => payload['attributes'],
304
307
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
305
308
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
@@ -358,6 +361,12 @@ module Twilio
358
361
  @properties['body']
359
362
  end
360
363
 
364
+ ##
365
+ # @return [Hash] An array of objects that describe the Message's media if attached, otherwise, null.
366
+ def media
367
+ @properties['media']
368
+ end
369
+
361
370
  ##
362
371
  # @return [String] A string metadata field you can use to store any data you wish.
363
372
  def attributes
@@ -32,7 +32,7 @@ module Twilio
32
32
  # Retrieve a single page of ParticipantInstance records from the API.
33
33
  # Request is executed immediately.
34
34
  # @param [String] identity A unique string identifier for the conversation
35
- # participant as [Chat User](https://www.twilio.com/docs/api/chat/rest/users).
35
+ # participant as [Chat User](https://www.twilio.com/docs/chat/rest/user-resource).
36
36
  # This parameter is non-null if (and only if) the participant is using the
37
37
  # Programmable Chat SDK to communicate. Limited to 256 characters.
38
38
  # @param [String] messaging_binding_address The address of the participant's
@@ -160,16 +160,16 @@ module Twilio
160
160
  # @param [String] to The phone number to receive the fax in
161
161
  # [E.164](https://www.twilio.com/docs/glossary/what-e164) format or the
162
162
  # recipient's SIP URI.
163
- # @param [String] media_url The Twilio-hosted URL of the PDF that contains the
164
- # fax. See our [security](https://www.twilio.com/docs/usage/security) page for
165
- # information on how to ensure the request for your media comes from Twilio.
163
+ # @param [String] media_url The URL of the PDF that contains the fax. See our
164
+ # [security](https://www.twilio.com/docs/usage/security) page for information on
165
+ # how to ensure the request for your media comes from Twilio.
166
166
  # @param [fax.Quality] quality The [Fax Quality
167
- # value](https://www.twilio.com/docs/fax/api/faxes-resource#fax-quality-values)
168
- # that describes the fax quality. Can be: `standard`, `fine`, or `superfine` and
167
+ # value](https://www.twilio.com/docs/fax/api/fax-resource#fax-quality-values) that
168
+ # describes the fax quality. Can be: `standard`, `fine`, or `superfine` and
169
169
  # defaults to `fine`.
170
170
  # @param [String] status_callback The URL we should call using the `POST` method
171
171
  # to send [status
172
- # information](https://www.twilio.com/docs/fax/api/faxes-resource#fax-status-callback) to your application when the status of the fax changes.
172
+ # information](https://www.twilio.com/docs/fax/api/fax-resource#fax-status-callback) to your application when the status of the fax changes.
173
173
  # @param [String] from The number the fax was sent from. Can be the phone number
174
174
  # in [E.164](https://www.twilio.com/docs/glossary/what-e164) format or the SIP
175
175
  # `from` value. The caller ID displayed to the recipient uses this value. If this
@@ -285,9 +285,9 @@ module Twilio
285
285
  ##
286
286
  # Update the FaxInstance
287
287
  # @param [fax.UpdateStatus] status The new
288
- # [status](https://www.twilio.com/docs/fax/api/faxes-resource#fax-status-values)
289
- # of the resource. Can be only `canceled`. This may fail if transmission has
290
- # already started.
288
+ # [status](https://www.twilio.com/docs/fax/api/fax-resource#fax-status-values) of
289
+ # the resource. Can be only `canceled`. This may fail if transmission has already
290
+ # started.
291
291
  # @return [FaxInstance] Updated FaxInstance
292
292
  def update(status: :unset)
293
293
  data = Twilio::Values.of({'Status' => status, })
@@ -510,9 +510,9 @@ module Twilio
510
510
  ##
511
511
  # Update the FaxInstance
512
512
  # @param [fax.UpdateStatus] status The new
513
- # [status](https://www.twilio.com/docs/fax/api/faxes-resource#fax-status-values)
514
- # of the resource. Can be only `canceled`. This may fail if transmission has
515
- # already started.
513
+ # [status](https://www.twilio.com/docs/fax/api/fax-resource#fax-status-values) of
514
+ # the resource. Can be only `canceled`. This may fail if transmission has already
515
+ # started.
516
516
  # @return [FaxInstance] Updated FaxInstance
517
517
  def update(status: :unset)
518
518
  context.update(status: status, )
@@ -29,7 +29,8 @@ module Twilio
29
29
  end
30
30
 
31
31
  ##
32
- # @param [String] sid The unique ID of the FlexFlow
32
+ # @param [String] sid The unique string that we created to identify the FlexFlow
33
+ # resource.
33
34
  # @return [Twilio::REST::Flex_api::V1::FlexFlowInstance] if sid was passed.
34
35
  # @return [Twilio::REST::Flex_api::V1::FlexFlowList]
35
36
  def flex_flow(sid=:unset)
@@ -37,7 +38,8 @@ module Twilio
37
38
  end
38
39
 
39
40
  ##
40
- # @param [String] sid The unique SID identifier of the Flex Chat Channel
41
+ # @param [String] sid The unique string that we created to identify the Channel
42
+ # resource.
41
43
  # @return [Twilio::REST::Flex_api::V1::ChannelInstance] if sid was passed.
42
44
  # @return [Twilio::REST::Flex_api::V1::ChannelList]
43
45
  def channel(sid=:unset)
@@ -45,7 +47,8 @@ module Twilio
45
47
  end
46
48
 
47
49
  ##
48
- # @param [String] sid The unique SID identifier of the Flex Chat Channel
50
+ # @param [String] sid The unique string that we created to identify the WebChannel
51
+ # resource.
49
52
  # @return [Twilio::REST::Flex_api::V1::WebChannelInstance] if sid was passed.
50
53
  # @return [Twilio::REST::Flex_api::V1::WebChannelList]
51
54
  def web_channel(sid=:unset)
@@ -22,7 +22,7 @@ module Twilio
22
22
  end
23
23
 
24
24
  ##
25
- # @param [String] sid The unique ID of the FlexFlow
25
+ # @param [String] sid The SID of the FlexFlow resource to fetch.
26
26
  # @return [Twilio::REST::Flex_api::V1::FlexFlowContext] if sid was passed.
27
27
  # @return [Twilio::REST::Flex_api::V1::FlexFlowList]
28
28
  def flex_flow(sid=:unset)
@@ -36,7 +36,7 @@ module Twilio
36
36
  end
37
37
 
38
38
  ##
39
- # @param [String] sid The unique SID identifier of the Flex Chat Channel
39
+ # @param [String] sid The SID of the Flex chat channel resource to fetch.
40
40
  # @return [Twilio::REST::Flex_api::V1::ChannelContext] if sid was passed.
41
41
  # @return [Twilio::REST::Flex_api::V1::ChannelList]
42
42
  def channel(sid=:unset)
@@ -50,7 +50,7 @@ module Twilio
50
50
  end
51
51
 
52
52
  ##
53
- # @param [String] sid The unique SID identifier of the Flex Chat Channel
53
+ # @param [String] sid The SID of the WebChannel resource to fetch.
54
54
  # @return [Twilio::REST::Flex_api::V1::WebChannelContext] if sid was passed.
55
55
  # @return [Twilio::REST::Flex_api::V1::WebChannelList]
56
56
  def web_channel(sid=:unset)
@@ -108,19 +108,19 @@ module Twilio
108
108
  ##
109
109
  # Retrieve a single page of ChannelInstance records from the API.
110
110
  # Request is executed immediately.
111
- # @param [String] flex_flow_sid The unique ID of the FlexFlow
112
- # @param [String] identity Chat User identity
113
- # @param [String] chat_user_friendly_name Customer friendly name (chat
114
- # participant)
115
- # @param [String] chat_friendly_name Chat channel friendly name
116
- # @param [String] target Target Contact Identity, for example phone number for SMS
117
- # @param [String] chat_unique_name Chat channel unique name
118
- # @param [String] pre_engagement_data Pre-engagement data
119
- # @param [String] task_sid The unique SID identifier of the Taskrouter task
120
- # @param [String] task_attributes Task attributes to be added for the TaskRouter
121
- # Task
122
- # @param [Boolean] long_lived Boolean flag determining whether channel is created
123
- # as long lived or not
111
+ # @param [String] flex_flow_sid The SID of the FlexFlow.
112
+ # @param [String] identity The `identity` value that uniquely identifies the new
113
+ # resource's chat User.
114
+ # @param [String] chat_user_friendly_name The chat participant's friendly name.
115
+ # @param [String] chat_friendly_name The chat channel's friendly name.
116
+ # @param [String] target The Target Contact Identity, for example the phone number
117
+ # of an SMS.
118
+ # @param [String] chat_unique_name The chat channel's unique name.
119
+ # @param [String] pre_engagement_data The pre-engagement data.
120
+ # @param [String] task_sid The SID of the TaskRouter task.
121
+ # @param [String] task_attributes The task attributes to be added for the
122
+ # TaskRouter Task.
123
+ # @param [Boolean] long_lived Whether to create the channel as long-lived.
124
124
  # @return [ChannelInstance] Newly created ChannelInstance
125
125
  def create(flex_flow_sid: nil, identity: nil, chat_user_friendly_name: nil, chat_friendly_name: nil, target: :unset, chat_unique_name: :unset, pre_engagement_data: :unset, task_sid: :unset, task_attributes: :unset, long_lived: :unset)
126
126
  data = Twilio::Values.of({
@@ -185,7 +185,7 @@ module Twilio
185
185
  ##
186
186
  # Initialize the ChannelContext
187
187
  # @param [Version] version Version that contains the resource
188
- # @param [String] sid The unique SID identifier of the Flex Chat Channel
188
+ # @param [String] sid The SID of the Flex chat channel resource to fetch.
189
189
  # @return [ChannelContext] ChannelContext
190
190
  def initialize(version, sid)
191
191
  super(version)
@@ -237,7 +237,7 @@ module Twilio
237
237
  # Initialize the ChannelInstance
238
238
  # @param [Version] version Version that contains the resource
239
239
  # @param [Hash] payload payload that contains response from Twilio
240
- # @param [String] sid The unique SID identifier of the Flex Chat Channel
240
+ # @param [String] sid The SID of the Flex chat channel resource to fetch.
241
241
  # @return [ChannelInstance] ChannelInstance
242
242
  def initialize(version, payload, sid: nil)
243
243
  super(version)
@@ -271,49 +271,49 @@ module Twilio
271
271
  end
272
272
 
273
273
  ##
274
- # @return [String] The ID of the account that owns this Workflow
274
+ # @return [String] The SID of the Account that created the resource and owns this Workflow
275
275
  def account_sid
276
276
  @properties['account_sid']
277
277
  end
278
278
 
279
279
  ##
280
- # @return [String] The unique ID of the FlexFlow
280
+ # @return [String] The SID of the FlexFlow
281
281
  def flex_flow_sid
282
282
  @properties['flex_flow_sid']
283
283
  end
284
284
 
285
285
  ##
286
- # @return [String] Flex Chat Channel Sid
286
+ # @return [String] The unique string that identifies the resource
287
287
  def sid
288
288
  @properties['sid']
289
289
  end
290
290
 
291
291
  ##
292
- # @return [String] Chat User Sid.
292
+ # @return [String] The SID of the chat user
293
293
  def user_sid
294
294
  @properties['user_sid']
295
295
  end
296
296
 
297
297
  ##
298
- # @return [String] TaskRouter Task Sid.
298
+ # @return [String] The SID of the TaskRouter task
299
299
  def task_sid
300
300
  @properties['task_sid']
301
301
  end
302
302
 
303
303
  ##
304
- # @return [String] The url
304
+ # @return [String] The absolute URL of the Flex chat channel resource
305
305
  def url
306
306
  @properties['url']
307
307
  end
308
308
 
309
309
  ##
310
- # @return [Time] The time the Flex Chat Channel was created, given as GMT in ISO 8601 format.
310
+ # @return [Time] The ISO 8601 date and time in GMT when the Flex chat channel was created
311
311
  def date_created
312
312
  @properties['date_created']
313
313
  end
314
314
 
315
315
  ##
316
- # @return [Time] The time the Flex Chat Channel was last updated, given as GMT in ISO 8601 format.
316
+ # @return [Time] The ISO 8601 date and time in GMT when the Flex chat channel was last updated
317
317
  def date_updated
318
318
  @properties['date_updated']
319
319
  end