twilio-ruby 7.0.0 → 7.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a4a38fd0b06c066f1abfd88ed48d87b6851d097
4
- data.tar.gz: 31af551dd25aef5f129dc1c8d27046bb4431ca7b
3
+ metadata.gz: 7b9b24187aba76a770f60364e3e1ffa57e3c88a6
4
+ data.tar.gz: 7c31889135293f5c47a7721116945a581a81d3a7
5
5
  SHA512:
6
- metadata.gz: 7bbd9b7c5ad4e884713d782cf99b7fca4db1e0dbcd70f6031e47b4f46eddbe9d5ccbf6a6133c2ba1158de4a395195d8b7d9510008afb6b9f73db5809fe921c27
7
- data.tar.gz: 4972f0169ad698d82348b659a6c50b5e59374e7537f40b99c48f0993a0b24d44ed022928a3379ada39c95c7e347e4d9cb953755cfe281ca8e5660c448b2e4ea0
6
+ metadata.gz: 750c2f3b5a765c73c1107cd3730bcf964ce73518f4db98a577b8ef0ddc8ce149c403081345d229f659a7a7e88c74e0487d10ed58ec82070d1583cc06642584ce
7
+ data.tar.gz: 406e6722646f066f6145c2552f07d0db03cffe8b7d24c2f5e24883fa66a0e02a5b51922fe0015e6440dbd674abf31425ec6d00e88eeb25644ea05d8cfac6338f
data/CHANGES.md CHANGED
@@ -1,6 +1,43 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2024-04-18] Version 7.0.2
5
+ --------------------------
6
+ **Flex**
7
+ - Add header `ui_version` to `web_channels` API
8
+
9
+ **Messaging**
10
+ - Redeploy after failed pipeline
11
+
12
+ **Numbers**
13
+ - Add Delete Port In request phone number api and Add Delete Port In request api
14
+
15
+
16
+ [2024-04-04] Version 7.0.1
17
+ --------------------------
18
+ **Api**
19
+ - Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC.
20
+
21
+ **Flex**
22
+ - Remove optional parameter from `plugins` and it to `plugin_versions`
23
+
24
+ **Lookups**
25
+ - Add new `pre_fill` package to the lookup response
26
+
27
+ **Messaging**
28
+ - Cleanup api.messaging.next-gen from Messaging Services endpoints
29
+ - Readd Sending-Window after fixing test failure
30
+
31
+ **Verify**
32
+ - Add `whatsapp.msg_service_sid` and `whatsapp.from` parameters to create, update, get and list of services endpoints
33
+
34
+ **Voice**
35
+ - Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC.
36
+
37
+ **Twiml**
38
+ - Add new `token_type` value `payment-method` for `Pay` verb
39
+
40
+
4
41
  [2024-04-01] Version 7.0.0
5
42
  --------------------------
6
43
  **Note:** This release contains breaking changes, check our [upgrade guide](./UPGRADE.md#2024-01-19-6xx-to-7xx) for detailed migration notes.
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.2'
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.2
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
@@ -35,11 +35,11 @@ module Twilio
35
35
  end
36
36
  ##
37
37
  # Create the StreamInstance
38
- # @param [String] url Relative or absolute url where WebSocket connection will be established.
39
- # @param [String] name The user-specified name of this Stream, if one was given when the Stream was created. This may be used to stop the Stream.
38
+ # @param [String] url Relative or absolute URL where WebSocket connection will be established.
39
+ # @param [String] name The user-specified name of this Stream, if one was given when the Stream was created. This can be used to stop the Stream.
40
40
  # @param [Track] track
41
- # @param [String] status_callback Absolute URL of the status callback.
42
- # @param [String] status_callback_method The http method for the status_callback (one of GET, POST).
41
+ # @param [String] status_callback Absolute URL to which Twilio sends status callback HTTP requests.
42
+ # @param [String] status_callback_method The HTTP method Twilio uses when sending `status_callback` requests. Possible values are `GET` and `POST`. Default is `POST`.
43
43
  # @param [String] parameter1_name Parameter name
44
44
  # @param [String] parameter1_value Parameter value
45
45
  # @param [String] parameter2_name Parameter name
@@ -677,7 +677,7 @@ module Twilio
677
677
  # @param [Version] version Version that contains the resource
678
678
  # @param [String] account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Stream resource.
679
679
  # @param [String] call_sid The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Stream resource is associated with.
680
- # @param [String] sid The SID of the Stream resource, or the `name` used when creating the resource
680
+ # @param [String] sid The SID or the `name` of the Stream resource to be stopped
681
681
  # @return [StreamContext] StreamContext
682
682
  def initialize(version, account_sid, call_sid, sid)
683
683
  super(version)
@@ -814,7 +814,7 @@ module Twilio
814
814
  end
815
815
 
816
816
  ##
817
- # @return [String] The user-specified name of this Stream, if one was given when the Stream was created. This may be used to stop the Stream.
817
+ # @return [String] The user-specified name of this Stream, if one was given when the Stream was created. This can be used to stop the Stream.
818
818
  def name
819
819
  @properties['name']
820
820
  end
@@ -37,12 +37,12 @@ module Twilio
37
37
  # Lists ConferenceInstance records from the API as a list.
38
38
  # Unlike stream(), this operation is eager and will load `limit` records into
39
39
  # memory before returning.
40
- # @param [Date] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
41
- # @param [Date] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
42
- # @param [Date] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
43
- # @param [Date] date_updated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
44
- # @param [Date] date_updated_before The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
45
- # @param [Date] date_updated_after The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
40
+ # @param [Date] date_created Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
41
+ # @param [Date] date_created_before Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
42
+ # @param [Date] date_created_after Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
43
+ # @param [Date] date_updated Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
44
+ # @param [Date] date_updated_before Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
45
+ # @param [Date] date_updated_after Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
46
46
  # @param [String] friendly_name The string that identifies the Conference resources to read.
47
47
  # @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
48
48
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -71,12 +71,12 @@ module Twilio
71
71
  # Streams Instance records from the API as an Enumerable.
72
72
  # This operation lazily loads records as efficiently as possible until the limit
73
73
  # is reached.
74
- # @param [Date] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
75
- # @param [Date] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
76
- # @param [Date] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
77
- # @param [Date] date_updated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
78
- # @param [Date] date_updated_before The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
79
- # @param [Date] date_updated_after The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
74
+ # @param [Date] date_created Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
75
+ # @param [Date] date_created_before Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
76
+ # @param [Date] date_created_after Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
77
+ # @param [Date] date_updated Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
78
+ # @param [Date] date_updated_before Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
79
+ # @param [Date] date_updated_after Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
80
80
  # @param [String] friendly_name The string that identifies the Conference resources to read.
81
81
  # @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
82
82
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -120,12 +120,12 @@ module Twilio
120
120
  ##
121
121
  # Retrieve a single page of ConferenceInstance records from the API.
122
122
  # Request is executed immediately.
123
- # @param [Date] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
124
- # @param [Date] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
125
- # @param [Date] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
126
- # @param [Date] date_updated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
127
- # @param [Date] date_updated_before The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
128
- # @param [Date] date_updated_after The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
123
+ # @param [Date] date_created Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
124
+ # @param [Date] date_created_before Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
125
+ # @param [Date] date_created_after Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
126
+ # @param [Date] date_updated Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
127
+ # @param [Date] date_updated_before Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
128
+ # @param [Date] date_updated_after Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
129
129
  # @param [String] friendly_name The string that identifies the Conference resources to read.
130
130
  # @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
131
131
  # @param [String] page_token PageToken provided by the API
@@ -369,13 +369,13 @@ module Twilio
369
369
  end
370
370
 
371
371
  ##
372
- # @return [Time] The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
372
+ # @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.
373
373
  def date_created
374
374
  @properties['date_created']
375
375
  end
376
376
 
377
377
  ##
378
- # @return [Time] The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
378
+ # @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.
379
379
  def date_updated
380
380
  @properties['date_updated']
381
381
  end
@@ -387,7 +387,7 @@ module Twilio
387
387
  end
388
388
 
389
389
  ##
390
- # @return [String] A string that you assigned to describe this conference room. Maxiumum length is 128 characters.
390
+ # @return [String] A string that you assigned to describe this conference room. Maximum length is 128 characters.
391
391
  def friendly_name
392
392
  @properties['friendly_name']
393
393
  end
@@ -399,7 +399,7 @@ module Twilio
399
399
  end
400
400
 
401
401
  ##
402
- # @return [String] The unique string that that we created to identify this Conference resource.
402
+ # @return [String] The unique, Twilio-provided string used to identify this Conference resource.
403
403
  def sid
404
404
  @properties['sid']
405
405
  end
@@ -88,8 +88,8 @@ module Twilio
88
88
  # Lists ConversationInstance records from the API as a list.
89
89
  # Unlike stream(), this operation is eager and will load `limit` records into
90
90
  # memory before returning.
91
- # @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
92
- # @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
91
+ # @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.
92
+ # @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.
93
93
  # @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
94
94
  # @param [Integer] limit Upper limit for the number of records to return. stream()
95
95
  # guarantees to never return more than limit. Default is no limit
@@ -112,8 +112,8 @@ module Twilio
112
112
  # Streams Instance records from the API as an Enumerable.
113
113
  # This operation lazily loads records as efficiently as possible until the limit
114
114
  # is reached.
115
- # @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
116
- # @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
115
+ # @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.
116
+ # @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.
117
117
  # @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
118
118
  # @param [Integer] limit Upper limit for the number of records to return. stream()
119
119
  # guarantees to never return more than limit. Default is no limit
@@ -151,8 +151,8 @@ module Twilio
151
151
  ##
152
152
  # Retrieve a single page of ConversationInstance records from the API.
153
153
  # Request is executed immediately.
154
- # @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
155
- # @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
154
+ # @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.
155
+ # @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.
156
156
  # @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
157
157
  # @param [String] page_token PageToken provided by the API
158
158
  # @param [Integer] page_number Page Number, this value is simply for client state
@@ -38,6 +38,8 @@ module Twilio
38
38
  # @param [String] plugin_url The URL of the Flex Plugin Version bundle
39
39
  # @param [String] changelog The changelog of the Flex Plugin Version.
40
40
  # @param [Boolean] private Whether this Flex Plugin Version requires authorization.
41
+ # @param [String] cli_version The version of Flex Plugins CLI used to create this plugin
42
+ # @param [String] validate_status The validation status of the plugin, indicating whether it has been validated
41
43
  # @param [String] flex_metadata The Flex-Metadata HTTP request header
42
44
  # @return [PluginVersionsInstance] Created PluginVersionsInstance
43
45
  def create(
@@ -45,6 +47,8 @@ module Twilio
45
47
  plugin_url: nil,
46
48
  changelog: :unset,
47
49
  private: :unset,
50
+ cli_version: :unset,
51
+ validate_status: :unset,
48
52
  flex_metadata: :unset
49
53
  )
50
54
 
@@ -53,6 +57,8 @@ module Twilio
53
57
  'PluginUrl' => plugin_url,
54
58
  'Changelog' => changelog,
55
59
  'Private' => private,
60
+ 'CliVersion' => cli_version,
61
+ 'ValidateStatus' => validate_status,
56
62
  })
57
63
 
58
64
 
@@ -35,16 +35,12 @@ 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
40
38
  # @param [String] flex_metadata The Flex-Metadata HTTP request header
41
39
  # @return [PluginInstance] Created PluginInstance
42
40
  def create(
43
41
  unique_name: nil,
44
42
  friendly_name: :unset,
45
43
  description: :unset,
46
- cli_version: :unset,
47
- validate_status: :unset,
48
44
  flex_metadata: :unset
49
45
  )
50
46
 
@@ -52,8 +48,6 @@ module Twilio
52
48
  'UniqueName' => unique_name,
53
49
  'FriendlyName' => friendly_name,
54
50
  'Description' => description,
55
- 'CliVersion' => cli_version,
56
- 'ValidateStatus' => validate_status,
57
51
  })
58
52
 
59
53
 
@@ -0,0 +1,289 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Flex
8
+ # This is the public Twilio REST API.
9
+ #
10
+ # NOTE: This class is auto generated by OpenAPI Generator.
11
+ # https://openapi-generator.tech
12
+ # Do not edit the class manually.
13
+ #
14
+
15
+
16
+ module Twilio
17
+ module REST
18
+ class FlexApi < FlexApiBase
19
+ class V2 < Version
20
+ class FlexUserList < ListResource
21
+
22
+ ##
23
+ # Initialize the FlexUserList
24
+ # @param [Version] version Version that contains the resource
25
+ # @return [FlexUserList] FlexUserList
26
+ def initialize(version)
27
+ super(version)
28
+ # Path Solution
29
+ @solution = { }
30
+
31
+
32
+ end
33
+
34
+
35
+
36
+ # Provide a user friendly representation
37
+ def to_s
38
+ '#<Twilio.FlexApi.V2.FlexUserList>'
39
+ end
40
+ end
41
+
42
+
43
+ class FlexUserContext < InstanceContext
44
+ ##
45
+ # Initialize the FlexUserContext
46
+ # @param [Version] version Version that contains the resource
47
+ # @param [String] instance_sid The unique ID created by Twilio to identify a Flex instance.
48
+ # @param [String] flex_user_sid The unique id for the flex user to be retrieved.
49
+ # @return [FlexUserContext] FlexUserContext
50
+ def initialize(version, instance_sid, flex_user_sid)
51
+ super(version)
52
+
53
+ # Path Solution
54
+ @solution = { instance_sid: instance_sid, flex_user_sid: flex_user_sid, }
55
+ @uri = "/Instances/#{@solution[:instance_sid]}/Users/#{@solution[:flex_user_sid]}"
56
+
57
+
58
+ end
59
+ ##
60
+ # Fetch the FlexUserInstance
61
+ # @return [FlexUserInstance] Fetched FlexUserInstance
62
+ def fetch
63
+
64
+
65
+ payload = @version.fetch('GET', @uri)
66
+ FlexUserInstance.new(
67
+ @version,
68
+ payload,
69
+ instance_sid: @solution[:instance_sid],
70
+ flex_user_sid: @solution[:flex_user_sid],
71
+ )
72
+ end
73
+
74
+
75
+ ##
76
+ # Provide a user friendly representation
77
+ def to_s
78
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
79
+ "#<Twilio.FlexApi.V2.FlexUserContext #{context}>"
80
+ end
81
+
82
+ ##
83
+ # Provide a detailed, user friendly representation
84
+ def inspect
85
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
86
+ "#<Twilio.FlexApi.V2.FlexUserContext #{context}>"
87
+ end
88
+ end
89
+
90
+ class FlexUserPage < Page
91
+ ##
92
+ # Initialize the FlexUserPage
93
+ # @param [Version] version Version that contains the resource
94
+ # @param [Response] response Response from the API
95
+ # @param [Hash] solution Path solution for the resource
96
+ # @return [FlexUserPage] FlexUserPage
97
+ def initialize(version, response, solution)
98
+ super(version, response)
99
+
100
+ # Path Solution
101
+ @solution = solution
102
+ end
103
+
104
+ ##
105
+ # Build an instance of FlexUserInstance
106
+ # @param [Hash] payload Payload response from the API
107
+ # @return [FlexUserInstance] FlexUserInstance
108
+ def get_instance(payload)
109
+ FlexUserInstance.new(@version, payload)
110
+ end
111
+
112
+ ##
113
+ # Provide a user friendly representation
114
+ def to_s
115
+ '<Twilio.FlexApi.V2.FlexUserPage>'
116
+ end
117
+ end
118
+ class FlexUserInstance < InstanceResource
119
+ ##
120
+ # Initialize the FlexUserInstance
121
+ # @param [Version] version Version that contains the resource
122
+ # @param [Hash] payload payload that contains response from Twilio
123
+ # @param [String] account_sid The SID of the
124
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this FlexUser
125
+ # resource.
126
+ # @param [String] sid The SID of the Call resource to fetch.
127
+ # @return [FlexUserInstance] FlexUserInstance
128
+ def initialize(version, payload , instance_sid: nil, flex_user_sid: nil)
129
+ super(version)
130
+
131
+ # Marshaled Properties
132
+ @properties = {
133
+ 'account_sid' => payload['account_sid'],
134
+ 'instance_sid' => payload['instance_sid'],
135
+ 'user_sid' => payload['user_sid'],
136
+ 'flex_user_sid' => payload['flex_user_sid'],
137
+ 'worker_sid' => payload['worker_sid'],
138
+ 'workspace_sid' => payload['workspace_sid'],
139
+ 'flex_team_sid' => payload['flex_team_sid'],
140
+ 'first_name' => payload['first_name'],
141
+ 'last_name' => payload['last_name'],
142
+ 'username' => payload['username'],
143
+ 'email' => payload['email'],
144
+ 'friendly_name' => payload['friendly_name'],
145
+ 'created_date' => Twilio.deserialize_iso8601_datetime(payload['created_date']),
146
+ 'updated_date' => Twilio.deserialize_iso8601_datetime(payload['updated_date']),
147
+ 'version' => payload['version'] == nil ? payload['version'] : payload['version'].to_i,
148
+ 'url' => payload['url'],
149
+ }
150
+
151
+ # Context
152
+ @instance_context = nil
153
+ @params = { 'instance_sid' => instance_sid || @properties['instance_sid'] ,'flex_user_sid' => flex_user_sid || @properties['flex_user_sid'] , }
154
+ end
155
+
156
+ ##
157
+ # Generate an instance context for the instance, the context is capable of
158
+ # performing various actions. All instance actions are proxied to the context
159
+ # @return [FlexUserContext] CallContext for this CallInstance
160
+ def context
161
+ unless @instance_context
162
+ @instance_context = FlexUserContext.new(@version , @params['instance_sid'], @params['flex_user_sid'])
163
+ end
164
+ @instance_context
165
+ end
166
+
167
+ ##
168
+ # @return [String] The unique SID of the account that created the resource.
169
+ def account_sid
170
+ @properties['account_sid']
171
+ end
172
+
173
+ ##
174
+ # @return [String] The unique ID created by Twilio to identify a Flex instance.
175
+ def instance_sid
176
+ @properties['instance_sid']
177
+ end
178
+
179
+ ##
180
+ # @return [String] The unique SID identifier of the Twilio Unified User.
181
+ def user_sid
182
+ @properties['user_sid']
183
+ end
184
+
185
+ ##
186
+ # @return [String] The unique SID identifier of the Flex User.
187
+ def flex_user_sid
188
+ @properties['flex_user_sid']
189
+ end
190
+
191
+ ##
192
+ # @return [String] The unique SID identifier of the worker.
193
+ def worker_sid
194
+ @properties['worker_sid']
195
+ end
196
+
197
+ ##
198
+ # @return [String] The unique SID identifier of the workspace.
199
+ def workspace_sid
200
+ @properties['workspace_sid']
201
+ end
202
+
203
+ ##
204
+ # @return [String] The unique SID identifier of the Flex Team.
205
+ def flex_team_sid
206
+ @properties['flex_team_sid']
207
+ end
208
+
209
+ ##
210
+ # @return [String] First name of the User.
211
+ def first_name
212
+ @properties['first_name']
213
+ end
214
+
215
+ ##
216
+ # @return [String] Last name of the User.
217
+ def last_name
218
+ @properties['last_name']
219
+ end
220
+
221
+ ##
222
+ # @return [String] Username of the User.
223
+ def username
224
+ @properties['username']
225
+ end
226
+
227
+ ##
228
+ # @return [String] Email of the User.
229
+ def email
230
+ @properties['email']
231
+ end
232
+
233
+ ##
234
+ # @return [String] Friendly name of the User.
235
+ def friendly_name
236
+ @properties['friendly_name']
237
+ end
238
+
239
+ ##
240
+ # @return [Time] The date that this user was created, given in ISO 8601 format.
241
+ def created_date
242
+ @properties['created_date']
243
+ end
244
+
245
+ ##
246
+ # @return [Time] The date that this user was updated, given in ISO 8601 format.
247
+ def updated_date
248
+ @properties['updated_date']
249
+ end
250
+
251
+ ##
252
+ # @return [String] The current version of the user.
253
+ def version
254
+ @properties['version']
255
+ end
256
+
257
+ ##
258
+ # @return [String]
259
+ def url
260
+ @properties['url']
261
+ end
262
+
263
+ ##
264
+ # Fetch the FlexUserInstance
265
+ # @return [FlexUserInstance] Fetched FlexUserInstance
266
+ def fetch
267
+
268
+ context.fetch
269
+ end
270
+
271
+ ##
272
+ # Provide a user friendly representation
273
+ def to_s
274
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
275
+ "<Twilio.FlexApi.V2.FlexUserInstance #{values}>"
276
+ end
277
+
278
+ ##
279
+ # Provide a detailed, user friendly representation
280
+ def inspect
281
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
282
+ "<Twilio.FlexApi.V2.FlexUserInstance #{values}>"
283
+ end
284
+ end
285
+
286
+ end
287
+ end
288
+ end
289
+ end