twilio-ruby 7.0.0.pre.rc.3 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +70 -23
- data/README.md +2 -2
- data/UPGRADE.md +3 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +22 -22
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +7 -0
- data/lib/twilio-ruby/rest/client.rb +0 -5
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +6 -6
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +11 -11
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +6 -6
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +6 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +7 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +10 -4
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +95 -4
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +18 -18
- data/lib/twilio-ruby/rest/trusthub/v1.rb +12 -3
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +4 -11
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -424
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -405
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -255
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -436
- data/lib/twilio-ruby/rest/media/v1.rb +0 -79
- data/lib/twilio-ruby/rest/media.rb +0 -35
- data/lib/twilio-ruby/rest/media_base.rb +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a4a38fd0b06c066f1abfd88ed48d87b6851d097
|
4
|
+
data.tar.gz: 31af551dd25aef5f129dc1c8d27046bb4431ca7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bbd9b7c5ad4e884713d782cf99b7fca4db1e0dbcd70f6031e47b4f46eddbe9d5ccbf6a6133c2ba1158de4a395195d8b7d9510008afb6b9f73db5809fe921c27
|
7
|
+
data.tar.gz: 4972f0169ad698d82348b659a6c50b5e59374e7537f40b99c48f0993a0b24d44ed022928a3379ada39c95c7e347e4d9cb953755cfe281ca8e5660c448b2e4ea0
|
data/CHANGES.md
CHANGED
@@ -1,37 +1,66 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2024-04-01] Version 7.0.0
|
5
|
+
--------------------------
|
6
|
+
**Note:** This release contains breaking changes, check our [upgrade guide](./UPGRADE.md#2024-01-19-6xx-to-7xx) for detailed migration notes.
|
7
|
+
|
8
|
+
**Library - Feature**
|
9
|
+
- [PR #719](https://github.com/twilio/twilio-ruby/pull/719): Merge '7.0.0-rc' into main. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)! **(breaking change)**
|
10
|
+
|
11
|
+
**Library - Chore**
|
12
|
+
- [PR #715](https://github.com/twilio/twilio-ruby/pull/715): remove media endpoint. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
|
13
|
+
|
14
|
+
**Api**
|
15
|
+
- Add property `queue_time` to conference participant resource
|
16
|
+
- Update RiskCheck documentation
|
17
|
+
- Correct call filtering by start and end time documentation, clarifying that times are UTC.
|
18
|
+
|
19
|
+
**Flex**
|
20
|
+
- Adding optional parameter to `plugins`
|
21
|
+
|
22
|
+
**Media**
|
23
|
+
- Remove API: MediaProcessor
|
24
|
+
|
25
|
+
**Messaging**
|
26
|
+
- Remove Sending-Window due to test failure
|
27
|
+
- Add Sending-Window as a response property to Messaging Services, gated by a beta feature flag
|
28
|
+
|
29
|
+
**Numbers**
|
30
|
+
- Correct valid_until_date field to be visible in Bundles resource
|
31
|
+
- Adding port_in_status field to the Port In resource and phone_number_status and sid fields to the Port In Phone Number resource
|
4
32
|
|
5
|
-
[2024-03-14] Version 7.0.0-rc.3
|
6
|
-
-------------------------------
|
7
33
|
**Oauth**
|
34
|
+
- Modified token endpoint response
|
35
|
+
- Added refresh_token and scope as optional parameter to token endpoint
|
8
36
|
- Add new APIs for vendor authorize and token endpoints
|
9
37
|
|
38
|
+
**Trusthub**
|
39
|
+
- Add update inquiry endpoint in compliance_registration.
|
40
|
+
- Add new field in themeSetId in compliance_registration.
|
41
|
+
|
42
|
+
**Voice**
|
43
|
+
- Correct call filtering by start and end time documentation, clarifying that times are UTC.
|
44
|
+
|
45
|
+
**Twiml**
|
46
|
+
- Add support for new Google voices (Q1 2024) for `Say` verb - gu-IN voices
|
47
|
+
- Add support for new Amazon Polly and Google voices (Q1 2024) for `Say` verb - Niamh (en-IE) and Sofie (da-DK) voices
|
10
48
|
|
11
|
-
[2024-03-12] Version 7.0.0-rc.2
|
12
|
-
-------------------------------
|
13
|
-
**Library - Chore**
|
14
|
-
- [PR #714](https://github.com/twilio/twilio-ruby/pull/714): enable cluster test. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
|
15
49
|
|
50
|
+
[2024-03-12] Version 6.12.1
|
51
|
+
---------------------------
|
16
52
|
**Api**
|
17
53
|
- Correct precedence documentation for application_sid vs status_callback in message creation
|
18
54
|
- Mark MaxPrice as deprecated
|
19
|
-
- remove feedback and feedback summary from call resource
|
20
55
|
|
21
56
|
**Flex**
|
22
57
|
- Making `plugins` visibility to public
|
23
|
-
- Adding `routing_properties` to Interactions Channels Participant
|
24
|
-
|
25
|
-
**Lookups**
|
26
|
-
- Add new `line_status` package to the lookup response
|
27
|
-
- Remove `live_activity` package from the lookup response **(breaking change)**
|
28
58
|
|
29
59
|
**Messaging**
|
30
60
|
- Add new `errors` attribute to the Brand Registration resource.
|
31
61
|
- Mark `brand_feedback` attribute as deprecated.
|
32
62
|
- Mark `failure_reason` attribute as deprecated.
|
33
63
|
- The new `errors` attribute is expected to provide additional information about Brand registration failures and feedback (if any has been provided by The Campaign Registry). Consumers should use this attribute instead of `brand_feedback` and `failure_reason`.
|
34
|
-
- Add tollfree multiple rejection reasons response array
|
35
64
|
|
36
65
|
**Numbers**
|
37
66
|
- Correcting mount_name for porting port in fetch API
|
@@ -39,20 +68,43 @@ twilio-ruby changelog
|
|
39
68
|
**Trusthub**
|
40
69
|
- Add new field in statusCallbackUrl in compliance_registration.
|
41
70
|
- Add new field in isvRegisteringForSelfOrTenant in compliance_registration.
|
71
|
+
|
72
|
+
**Twiml**
|
73
|
+
- Expanded description of Action parameter for Message verb
|
74
|
+
|
75
|
+
|
76
|
+
[2024-02-27] Version 6.12.0
|
77
|
+
---------------------------
|
78
|
+
**Library - Chore**
|
79
|
+
- [PR #712](https://github.com/twilio/twilio-ruby/pull/712): cluster tests enabled. Thanks to [@sbansla](https://github.com/sbansla)!
|
80
|
+
|
81
|
+
**Api**
|
82
|
+
- remove feedback and feedback summary from call resource
|
83
|
+
|
84
|
+
**Flex**
|
85
|
+
- Adding `routing_properties` to Interactions Channels Participant
|
86
|
+
|
87
|
+
**Lookups**
|
88
|
+
- Add new `line_status` package to the lookup response
|
89
|
+
- Remove `live_activity` package from the lookup response **(breaking change)**
|
90
|
+
|
91
|
+
**Messaging**
|
92
|
+
- Add tollfree multiple rejection reasons response array
|
93
|
+
|
94
|
+
**Trusthub**
|
42
95
|
- Add ENUM for businessRegistrationAuthority in compliance_registration. **(breaking change)**
|
43
96
|
- Add new field in isIsvEmbed in compliance_registration.
|
44
97
|
- Add additional optional fields in compliance_registration for Individual business type.
|
45
98
|
|
46
99
|
**Twiml**
|
47
|
-
- Expanded description of Action parameter for Message verb
|
48
100
|
- Add support for new Amazon Polly and Google voices (Q1 2024) for `Say` verb
|
49
101
|
|
50
102
|
|
51
|
-
[2024-02-09] Version
|
52
|
-
|
103
|
+
[2024-02-09] Version 6.11.0
|
104
|
+
---------------------------
|
53
105
|
**Library - Chore**
|
54
|
-
- [PR #
|
55
|
-
- [PR #
|
106
|
+
- [PR #710](https://github.com/twilio/twilio-ruby/pull/710): remove live media endpoint. Thanks to [@califlower](https://github.com/califlower)!
|
107
|
+
- [PR #708](https://github.com/twilio/twilio-ruby/pull/708): removing oauth and autopilot references. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
|
56
108
|
|
57
109
|
**Api**
|
58
110
|
- Updated service base url for connect apps and authorized connect apps APIs **(breaking change)**
|
@@ -112,11 +164,6 @@ twilio-ruby changelog
|
|
112
164
|
- Update Verify TOTP maturity to GA.
|
113
165
|
|
114
166
|
|
115
|
-
[2024-01-26] Version 7.0.0-rc.0
|
116
|
-
--------------------------
|
117
|
-
- Release Candidate preparation
|
118
|
-
|
119
|
-
|
120
167
|
[2024-01-25] Version 6.10.0
|
121
168
|
---------------------------
|
122
169
|
**Oauth**
|
data/README.md
CHANGED
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
|
|
39
39
|
To install using [Bundler][bundler] grab the latest stable version:
|
40
40
|
|
41
41
|
```ruby
|
42
|
-
gem 'twilio-ruby', '~> 7.0.0
|
42
|
+
gem 'twilio-ruby', '~> 7.0.0'
|
43
43
|
```
|
44
44
|
|
45
45
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
46
46
|
|
47
47
|
```bash
|
48
|
-
gem install twilio-ruby -v 7.0.0
|
48
|
+
gem install twilio-ruby -v 7.0.0
|
49
49
|
```
|
50
50
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
data/UPGRADE.md
CHANGED
@@ -7,9 +7,10 @@ posted here._
|
|
7
7
|
-----------------------------
|
8
8
|
### Overview
|
9
9
|
|
10
|
-
##### Twilio Ruby Helper Library’s major version 7.0.0
|
10
|
+
##### Twilio Ruby Helper Library’s major version 7.0.0 is now available. We ensured that you can upgrade to Ruby helper Library 7.0.0 version without any breaking changes of existing apis
|
11
11
|
|
12
|
-
|
12
|
+
Behind the scenes Ruby Helper is now auto-generated via OpenAPI with this release. This enables us to rapidly add new features and enhance consistency across versions and languages.
|
13
|
+
We're pleased to inform you that version 7.0.0 adds support for the application/json content type in the request body.
|
13
14
|
|
14
15
|
To learn more about the Ruby Helper Library, check out [our docs](https://www.twilio.com/docs/libraries/ruby).
|
15
16
|
|
@@ -164,12 +164,12 @@ module Twilio
|
|
164
164
|
# @param [String] from Only include calls from this phone number, SIP address, Client identifier or SIM SID.
|
165
165
|
# @param [String] parent_call_sid Only include calls spawned by calls with this SID.
|
166
166
|
# @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
|
167
|
-
# @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in
|
168
|
-
# @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in
|
169
|
-
# @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in
|
170
|
-
# @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in
|
171
|
-
# @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in
|
172
|
-
# @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in
|
167
|
+
# @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
168
|
+
# @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
169
|
+
# @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
170
|
+
# @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
171
|
+
# @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
172
|
+
# @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
173
173
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
174
174
|
# guarantees to never return more than limit. Default is no limit
|
175
175
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -202,12 +202,12 @@ module Twilio
|
|
202
202
|
# @param [String] from Only include calls from this phone number, SIP address, Client identifier or SIM SID.
|
203
203
|
# @param [String] parent_call_sid Only include calls spawned by calls with this SID.
|
204
204
|
# @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
|
205
|
-
# @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in
|
206
|
-
# @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in
|
207
|
-
# @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in
|
208
|
-
# @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in
|
209
|
-
# @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in
|
210
|
-
# @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in
|
205
|
+
# @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
206
|
+
# @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
207
|
+
# @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
208
|
+
# @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
209
|
+
# @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
210
|
+
# @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
211
211
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
212
212
|
# guarantees to never return more than limit. Default is no limit
|
213
213
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -255,12 +255,12 @@ module Twilio
|
|
255
255
|
# @param [String] from Only include calls from this phone number, SIP address, Client identifier or SIM SID.
|
256
256
|
# @param [String] parent_call_sid Only include calls spawned by calls with this SID.
|
257
257
|
# @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
|
258
|
-
# @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in
|
259
|
-
# @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in
|
260
|
-
# @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in
|
261
|
-
# @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in
|
262
|
-
# @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in
|
263
|
-
# @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in
|
258
|
+
# @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
259
|
+
# @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
260
|
+
# @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
|
261
|
+
# @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
262
|
+
# @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
263
|
+
# @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
|
264
264
|
# @param [String] page_token PageToken provided by the API
|
265
265
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
266
266
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -649,13 +649,13 @@ module Twilio
|
|
649
649
|
end
|
650
650
|
|
651
651
|
##
|
652
|
-
# @return [Time] The date and time in
|
652
|
+
# @return [Time] The date and time in UTC that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
653
653
|
def date_created
|
654
654
|
@properties['date_created']
|
655
655
|
end
|
656
656
|
|
657
657
|
##
|
658
|
-
# @return [Time] The date and time in
|
658
|
+
# @return [Time] The date and time in UTC that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
659
659
|
def date_updated
|
660
660
|
@properties['date_updated']
|
661
661
|
end
|
@@ -709,13 +709,13 @@ module Twilio
|
|
709
709
|
end
|
710
710
|
|
711
711
|
##
|
712
|
-
# @return [Time] The start time of the call, given as
|
712
|
+
# @return [Time] The start time of the call, given as UTC in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed.
|
713
713
|
def start_time
|
714
714
|
@properties['start_time']
|
715
715
|
end
|
716
716
|
|
717
717
|
##
|
718
|
-
# @return [Time] The time the call ended, given as
|
718
|
+
# @return [Time] The time the call ended, given as UTC in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully.
|
719
719
|
def end_time
|
720
720
|
@properties['end_time']
|
721
721
|
end
|
@@ -478,6 +478,7 @@ module Twilio
|
|
478
478
|
'hold' => payload['hold'],
|
479
479
|
'start_conference_on_enter' => payload['start_conference_on_enter'],
|
480
480
|
'status' => payload['status'],
|
481
|
+
'queue_time' => payload['queue_time'],
|
481
482
|
'uri' => payload['uri'],
|
482
483
|
}
|
483
484
|
|
@@ -575,6 +576,12 @@ module Twilio
|
|
575
576
|
@properties['status']
|
576
577
|
end
|
577
578
|
|
579
|
+
##
|
580
|
+
# @return [String] The wait time in milliseconds before participant's call is placed. Only available in the response to a create participant request.
|
581
|
+
def queue_time
|
582
|
+
@properties['queue_time']
|
583
|
+
end
|
584
|
+
|
578
585
|
##
|
579
586
|
# @return [String] The URI of the resource, relative to `https://api.twilio.com`.
|
580
587
|
def uri
|
@@ -82,11 +82,6 @@ module Twilio
|
|
82
82
|
@lookups ||= Lookups.new self
|
83
83
|
end
|
84
84
|
##
|
85
|
-
# Access the Media Twilio Domain
|
86
|
-
def media
|
87
|
-
@media ||= Media.new self
|
88
|
-
end
|
89
|
-
##
|
90
85
|
# Access the PreviewMessaging Twilio Domain
|
91
86
|
def preview_messaging
|
92
87
|
@preview_messaging ||= PreviewMessaging.new self
|
@@ -41,11 +41,11 @@ module Twilio
|
|
41
41
|
# Initialize the ApprovalCreateList
|
42
42
|
# @param [Version] version Version that contains the resource
|
43
43
|
# @return [ApprovalCreateList] ApprovalCreateList
|
44
|
-
def initialize(version,
|
44
|
+
def initialize(version, content_sid: nil)
|
45
45
|
super(version)
|
46
46
|
# Path Solution
|
47
|
-
@solution = {
|
48
|
-
@uri = "/Content/#{@solution[:
|
47
|
+
@solution = { content_sid: content_sid }
|
48
|
+
@uri = "/Content/#{@solution[:content_sid]}/ApprovalRequests/whatsapp"
|
49
49
|
|
50
50
|
end
|
51
51
|
##
|
@@ -60,7 +60,7 @@ module Twilio
|
|
60
60
|
ApprovalCreateInstance.new(
|
61
61
|
@version,
|
62
62
|
payload,
|
63
|
-
|
63
|
+
content_sid: @solution[:content_sid],
|
64
64
|
)
|
65
65
|
end
|
66
66
|
|
@@ -92,7 +92,7 @@ module Twilio
|
|
92
92
|
# @param [Hash] payload Payload response from the API
|
93
93
|
# @return [ApprovalCreateInstance] ApprovalCreateInstance
|
94
94
|
def get_instance(payload)
|
95
|
-
ApprovalCreateInstance.new(@version, payload,
|
95
|
+
ApprovalCreateInstance.new(@version, payload, content_sid: @solution[:content_sid])
|
96
96
|
end
|
97
97
|
|
98
98
|
##
|
@@ -111,7 +111,7 @@ module Twilio
|
|
111
111
|
# resource.
|
112
112
|
# @param [String] sid The SID of the Call resource to fetch.
|
113
113
|
# @return [ApprovalCreateInstance] ApprovalCreateInstance
|
114
|
-
def initialize(version, payload ,
|
114
|
+
def initialize(version, payload , content_sid: nil)
|
115
115
|
super(version)
|
116
116
|
|
117
117
|
# Marshaled Properties
|
@@ -25,10 +25,10 @@ module Twilio
|
|
25
25
|
# Initialize the ApprovalFetchList
|
26
26
|
# @param [Version] version Version that contains the resource
|
27
27
|
# @return [ApprovalFetchList] ApprovalFetchList
|
28
|
-
def initialize(version,
|
28
|
+
def initialize(version, content_sid: nil)
|
29
29
|
super(version)
|
30
30
|
# Path Solution
|
31
|
-
@solution = {
|
31
|
+
@solution = { content_sid: content_sid }
|
32
32
|
|
33
33
|
|
34
34
|
end
|
@@ -46,14 +46,14 @@ module Twilio
|
|
46
46
|
##
|
47
47
|
# Initialize the ApprovalFetchContext
|
48
48
|
# @param [Version] version Version that contains the resource
|
49
|
-
# @param [String]
|
49
|
+
# @param [String] content_sid The Twilio-provided string that uniquely identifies the Content resource whose approval information to fetch.
|
50
50
|
# @return [ApprovalFetchContext] ApprovalFetchContext
|
51
|
-
def initialize(version,
|
51
|
+
def initialize(version, content_sid)
|
52
52
|
super(version)
|
53
53
|
|
54
54
|
# Path Solution
|
55
|
-
@solution = {
|
56
|
-
@uri = "/Content/#{@solution[:
|
55
|
+
@solution = { content_sid: content_sid, }
|
56
|
+
@uri = "/Content/#{@solution[:content_sid]}/ApprovalRequests"
|
57
57
|
|
58
58
|
|
59
59
|
end
|
@@ -67,7 +67,7 @@ module Twilio
|
|
67
67
|
ApprovalFetchInstance.new(
|
68
68
|
@version,
|
69
69
|
payload,
|
70
|
-
|
70
|
+
content_sid: @solution[:content_sid],
|
71
71
|
)
|
72
72
|
end
|
73
73
|
|
@@ -106,7 +106,7 @@ module Twilio
|
|
106
106
|
# @param [Hash] payload Payload response from the API
|
107
107
|
# @return [ApprovalFetchInstance] ApprovalFetchInstance
|
108
108
|
def get_instance(payload)
|
109
|
-
ApprovalFetchInstance.new(@version, payload,
|
109
|
+
ApprovalFetchInstance.new(@version, payload, content_sid: @solution[:content_sid])
|
110
110
|
end
|
111
111
|
|
112
112
|
##
|
@@ -125,7 +125,7 @@ module Twilio
|
|
125
125
|
# resource.
|
126
126
|
# @param [String] sid The SID of the Call resource to fetch.
|
127
127
|
# @return [ApprovalFetchInstance] ApprovalFetchInstance
|
128
|
-
def initialize(version, payload ,
|
128
|
+
def initialize(version, payload , content_sid: nil)
|
129
129
|
super(version)
|
130
130
|
|
131
131
|
# Marshaled Properties
|
@@ -138,7 +138,7 @@ module Twilio
|
|
138
138
|
|
139
139
|
# Context
|
140
140
|
@instance_context = nil
|
141
|
-
@params = { '
|
141
|
+
@params = { 'content_sid' => content_sid || @properties['content_sid'] , }
|
142
142
|
end
|
143
143
|
|
144
144
|
##
|
@@ -147,7 +147,7 @@ module Twilio
|
|
147
147
|
# @return [ApprovalFetchContext] CallContext for this CallInstance
|
148
148
|
def context
|
149
149
|
unless @instance_context
|
150
|
-
@instance_context = ApprovalFetchContext.new(@version , @params['
|
150
|
+
@instance_context = ApprovalFetchContext.new(@version , @params['content_sid'])
|
151
151
|
end
|
152
152
|
@instance_context
|
153
153
|
end
|
@@ -91,8 +91,8 @@ module Twilio
|
|
91
91
|
# Lists ConversationInstance records from the API as a list.
|
92
92
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
93
93
|
# memory before returning.
|
94
|
-
# @param [String] start_date
|
95
|
-
# @param [String] end_date
|
94
|
+
# @param [String] start_date Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
|
95
|
+
# @param [String] end_date Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
|
96
96
|
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
|
97
97
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
98
98
|
# guarantees to never return more than limit. Default is no limit
|
@@ -115,8 +115,8 @@ module Twilio
|
|
115
115
|
# Streams Instance records from the API as an Enumerable.
|
116
116
|
# This operation lazily loads records as efficiently as possible until the limit
|
117
117
|
# is reached.
|
118
|
-
# @param [String] start_date
|
119
|
-
# @param [String] end_date
|
118
|
+
# @param [String] start_date Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
|
119
|
+
# @param [String] end_date Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
|
120
120
|
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
|
121
121
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
122
122
|
# guarantees to never return more than limit. Default is no limit
|
@@ -154,8 +154,8 @@ module Twilio
|
|
154
154
|
##
|
155
155
|
# Retrieve a single page of ConversationInstance records from the API.
|
156
156
|
# Request is executed immediately.
|
157
|
-
# @param [String] start_date
|
158
|
-
# @param [String] end_date
|
157
|
+
# @param [String] start_date Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
|
158
|
+
# @param [String] end_date Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
|
159
159
|
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
|
160
160
|
# @param [String] page_token PageToken provided by the API
|
161
161
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
@@ -35,12 +35,16 @@ module Twilio
|
|
35
35
|
# @param [String] unique_name The Flex Plugin's unique name.
|
36
36
|
# @param [String] friendly_name The Flex Plugin's friendly name.
|
37
37
|
# @param [String] description A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long
|
38
|
+
# @param [String] cli_version The version of Flex Plugins CLI used to create this plugin
|
39
|
+
# @param [String] validate_status The validation status of the plugin, indicating whether it has been validated
|
38
40
|
# @param [String] flex_metadata The Flex-Metadata HTTP request header
|
39
41
|
# @return [PluginInstance] Created PluginInstance
|
40
42
|
def create(
|
41
43
|
unique_name: nil,
|
42
44
|
friendly_name: :unset,
|
43
45
|
description: :unset,
|
46
|
+
cli_version: :unset,
|
47
|
+
validate_status: :unset,
|
44
48
|
flex_metadata: :unset
|
45
49
|
)
|
46
50
|
|
@@ -48,6 +52,8 @@ module Twilio
|
|
48
52
|
'UniqueName' => unique_name,
|
49
53
|
'FriendlyName' => friendly_name,
|
50
54
|
'Description' => description,
|
55
|
+
'CliVersion' => cli_version,
|
56
|
+
'ValidateStatus' => validate_status,
|
51
57
|
})
|
52
58
|
|
53
59
|
|
@@ -135,6 +135,7 @@ module Twilio
|
|
135
135
|
'target_port_in_date' => Twilio.deserialize_iso8601_date(payload['target_port_in_date']),
|
136
136
|
'target_port_in_time_range_start' => payload['target_port_in_time_range_start'],
|
137
137
|
'target_port_in_time_range_end' => payload['target_port_in_time_range_end'],
|
138
|
+
'port_in_request_status' => payload['port_in_request_status'],
|
138
139
|
'losing_carrier_information' => payload['losing_carrier_information'],
|
139
140
|
'phone_numbers' => payload['phone_numbers'],
|
140
141
|
'documents' => payload['documents'],
|
@@ -198,6 +199,12 @@ module Twilio
|
|
198
199
|
@properties['target_port_in_time_range_end']
|
199
200
|
end
|
200
201
|
|
202
|
+
##
|
203
|
+
# @return [String] The status of the port in request. The possible values are: In progress, Completed, Expired, In review, Waiting for Signature, Action Required, and Canceled.
|
204
|
+
def port_in_request_status
|
205
|
+
@properties['port_in_request_status']
|
206
|
+
end
|
207
|
+
|
201
208
|
##
|
202
209
|
# @return [Hash] The information for the losing carrier.
|
203
210
|
def losing_carrier_information
|
@@ -38,14 +38,18 @@ module Twilio
|
|
38
38
|
# @param [String] code JWT token related to the authorization code grant type.
|
39
39
|
# @param [String] redirect_uri The redirect uri
|
40
40
|
# @param [String] audience The targeted audience uri
|
41
|
+
# @param [String] refresh_token JWT token related to refresh access token.
|
42
|
+
# @param [String] scope The scope of token
|
41
43
|
# @return [TokenInstance] Created TokenInstance
|
42
44
|
def create(
|
43
45
|
grant_type: nil,
|
44
46
|
client_id: nil,
|
45
|
-
client_secret:
|
47
|
+
client_secret: :unset,
|
46
48
|
code: :unset,
|
47
49
|
redirect_uri: :unset,
|
48
|
-
audience: :unset
|
50
|
+
audience: :unset,
|
51
|
+
refresh_token: :unset,
|
52
|
+
scope: :unset
|
49
53
|
)
|
50
54
|
|
51
55
|
data = Twilio::Values.of({
|
@@ -55,6 +59,8 @@ module Twilio
|
|
55
59
|
'Code' => code,
|
56
60
|
'RedirectUri' => redirect_uri,
|
57
61
|
'Audience' => audience,
|
62
|
+
'RefreshToken' => refresh_token,
|
63
|
+
'Scope' => scope,
|
58
64
|
})
|
59
65
|
|
60
66
|
|
@@ -121,7 +127,7 @@ module Twilio
|
|
121
127
|
'refresh_token' => payload['refresh_token'],
|
122
128
|
'id_token' => payload['id_token'],
|
123
129
|
'token_type' => payload['token_type'],
|
124
|
-
'expires_in' =>
|
130
|
+
'expires_in' => payload['expires_in'],
|
125
131
|
}
|
126
132
|
end
|
127
133
|
|
@@ -151,7 +157,7 @@ module Twilio
|
|
151
157
|
end
|
152
158
|
|
153
159
|
##
|
154
|
-
# @return [
|
160
|
+
# @return [String]
|
155
161
|
def expires_in
|
156
162
|
@properties['expires_in']
|
157
163
|
end
|