twilio-ruby 5.27.0 → 5.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.dockerignore +1 -0
- data/CHANGES.md +13 -0
- data/CONTRIBUTING.md +2 -0
- data/Dockerfile +2 -2
- data/README.md +2 -2
- data/lib/twilio-ruby/http/http_client.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +18 -18
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +9 -9
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -9
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +5 -5
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +1 -1
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -12
- data/lib/twilio-ruby/rest/flex_api.rb +6 -3
- data/lib/twilio-ruby/rest/flex_api/v1.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +23 -23
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +39 -37
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +102 -96
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +20 -20
- data/lib/twilio-ruby/rest/messaging.rb +3 -2
- data/lib/twilio-ruby/rest/messaging/v1.rb +2 -3
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +124 -91
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +22 -18
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +22 -16
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +18 -20
- data/lib/twilio-ruby/rest/messaging/v1/session.rb +48 -44
- data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +46 -48
- data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +55 -62
- data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +61 -65
- data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +30 -36
- data/lib/twilio-ruby/rest/monitor.rb +4 -2
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -2
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +45 -57
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +47 -50
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +8 -8
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -3
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +6 -6
- data/lib/twilio-ruby/rest/preview/trusted_comms/device.rb +1 -1
- data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +55 -55
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +4 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/serverless.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1.rb +1 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +27 -28
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +25 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +26 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +21 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +31 -31
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +35 -35
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +22 -22
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +12 -12
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +15 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +15 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -6
- data/lib/twilio-ruby/rest/taskrouter.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +102 -95
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +52 -44
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +90 -81
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +152 -136
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +35 -29
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +96 -89
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +61 -61
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +27 -21
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +46 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +57 -64
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +98 -79
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +41 -39
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +39 -33
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +32 -31
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +16 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +42 -42
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +75 -72
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +59 -51
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +24 -18
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +54 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +48 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +17 -17
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +44 -42
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +24 -18
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +3 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +1 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +1 -2
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +12 -12
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
- data/lib/twilio-ruby/rest/video.rb +8 -8
- data/lib/twilio-ruby/rest/video/v1.rb +4 -7
- data/lib/twilio-ruby/rest/video/v1/composition.rb +89 -98
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +224 -195
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +34 -34
- data/lib/twilio-ruby/rest/video/v1/recording.rb +53 -55
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +32 -32
- data/lib/twilio-ruby/rest/video/v1/room.rb +71 -61
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +45 -33
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +56 -57
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +25 -22
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +10 -10
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +24 -23
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +5 -5
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +2 -2
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/conversations/v1/conversation/message_spec.rb +58 -0
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 3e83808d846b8e8beaef1ac91c237b5b4abc5836b04606faec7b47d1d360e9a3
|
|
4
|
+
data.tar.gz: ab8700209a80759c0a5c3572395d826cdac1896d3fccf69fae9b1a62f3792b17
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a9e69978d25fd39b226689011b091e5084f3b6223712300a1200b31b344160c05de052dc8e43e8c3d7b0b60eb57f9072e45dfad77fd0239776be1bb204db84ce
|
|
7
|
+
data.tar.gz: 655550d2e0e1410a9ca6cf6db0c0a4c1612dc8123274c79d3b7ee447b5d7ce829f880fd7b6efb98ae0730999d0c1c0bb7338125af6a8c7c6136018adfe1edb6b
|
data/.dockerignore
ADDED
|
@@ -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**
|
data/CONTRIBUTING.md
CHANGED
|
@@ -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
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.
|
|
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.
|
|
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:
|
|
@@ -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
|
|
191
|
-
# @param [Time] start_time Only include calls that started on
|
|
192
|
-
# @param [Time] start_time_after Only include calls that started on
|
|
193
|
-
# @param [Time] end_time_before Only include
|
|
194
|
-
# @param [Time] end_time Only include
|
|
195
|
-
# @param [Time] end_time_after Only include
|
|
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
|
|
234
|
-
# @param [Time] start_time Only include calls that started on
|
|
235
|
-
# @param [Time] start_time_after Only include calls that started on
|
|
236
|
-
# @param [Time] end_time_before Only include
|
|
237
|
-
# @param [Time] end_time Only include
|
|
238
|
-
# @param [Time] end_time_after Only include
|
|
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
|
|
293
|
-
# @param [Time] start_time Only include calls that started on
|
|
294
|
-
# @param [Time] start_time_after Only include calls that started on
|
|
295
|
-
# @param [Time] end_time_before Only include
|
|
296
|
-
# @param [Time] end_time Only include
|
|
297
|
-
# @param [Time] end_time_after Only include
|
|
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
|
|
38
|
-
# @param [Time] date_created
|
|
39
|
-
# @param [Time] date_created_after
|
|
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
|
|
62
|
-
# @param [Time] date_created
|
|
63
|
-
# @param [Time] date_created_after
|
|
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
|
|
102
|
-
# @param [Time] date_created
|
|
103
|
-
# @param [Time] date_created_after
|
|
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
|
|
35
|
-
# @param [Time] date_created
|
|
36
|
-
# @param [Time] date_created_after
|
|
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
|
|
65
|
-
# @param [Time] date_created
|
|
66
|
-
# @param [Time] date_created_after
|
|
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
|
|
111
|
-
# @param [Time] date_created
|
|
112
|
-
# @param [Time] date_created_after
|
|
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
|
-
# `
|
|
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
|
-
# `
|
|
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
|
-
# `
|
|
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: `
|
|
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: `
|
|
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/
|
|
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
|
|
164
|
-
#
|
|
165
|
-
#
|
|
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/
|
|
168
|
-
#
|
|
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/
|
|
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/
|
|
289
|
-
#
|
|
290
|
-
#
|
|
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/
|
|
514
|
-
#
|
|
515
|
-
#
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
112
|
-
# @param [String] identity
|
|
113
|
-
#
|
|
114
|
-
#
|
|
115
|
-
# @param [String] chat_friendly_name
|
|
116
|
-
# @param [String] target Target Contact Identity, for example phone number
|
|
117
|
-
#
|
|
118
|
-
# @param [String]
|
|
119
|
-
# @param [String]
|
|
120
|
-
# @param [String]
|
|
121
|
-
#
|
|
122
|
-
#
|
|
123
|
-
#
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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]
|
|
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]
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|