twilio-ruby 5.64.0 → 5.65.0

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: ac21b282f9cbe5b8fcf0409fa7640ee81595555b
4
- data.tar.gz: 64f19f3e30a9fa224cab24fa89aa7dea5e2ef66d
3
+ metadata.gz: 2e90fafb6816881836f5ceb1a9e9fbf4c8ab7b1f
4
+ data.tar.gz: 8506a936bb4d704851066cc99577b3a897a4c61a
5
5
  SHA512:
6
- metadata.gz: a1d43a8631f36c4d04a29cb54dff8ff980fcfcc27416f71466aed84144e99fa512e68894b245274f63f8c5b162dad597bcb420e462000e9f45438d842e7cd118
7
- data.tar.gz: 60dd90cdad8f348cce9185f13d7d78b0fa41e6d9e373a8ababbbf083ca30da0f85f2f00388f9e29f4dbae29c4daca28bb62806b32ae710bca449022c9cfc6253
6
+ metadata.gz: 6ed63525ff5e54ea2002e696432752125a26a80a3d0a73959d98e96247e09e9845906bc62d9b86a5026eef22fc05a36ab1dc3555d30c91db0ef3a442e78d18a8
7
+ data.tar.gz: cef0e7825363d18d6dae30e3ab444a9e1bd8187dcc46361f99c51d0258b161b693a4cbe600a259342109ef591f7649c4dc6ed7ad54788a119b4e27e4b3e3c29a
data/CHANGES.md CHANGED
@@ -1,6 +1,33 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2022-02-23] Version 5.65.0
5
+ ---------------------------
6
+ **Api**
7
+ - Add `uri` to `stream` resource
8
+ - Add A2P Registration Fee category (`a2p-registration-fee`) to usage records
9
+ - Detected a bug and removed optional boolean include_soft_deleted parameter to retrieve soft deleted recordings. **(breaking change)**
10
+ - Add optional boolean include_soft_deleted parameter to retrieve soft deleted recordings.
11
+
12
+ **Numbers**
13
+ - Unrevert valid_until and sort filter params added to List Bundles resource
14
+ - Revert valid_until and sort filter params added to List Bundles resource
15
+ - Update sorting params added to List Bundles resource in the previous release
16
+
17
+ **Preview**
18
+ - Moved `web_channels` from preview to beta under `flex-api` **(breaking change)**
19
+
20
+ **Taskrouter**
21
+ - Add `ETag` as Response Header to List of Task, Reservation & Worker
22
+
23
+ **Verify**
24
+ - Remove outdated documentation commentary to contact sales. Product is already in public beta.
25
+ - Add optional `metadata` to factors.
26
+
27
+ **Twiml**
28
+ - Add new Polly Neural voices
29
+
30
+
4
31
  [2022-02-09] Version 5.64.0
5
32
  ---------------------------
6
33
  **Library - Chore**
data/README.md CHANGED
@@ -36,13 +36,13 @@ This library supports the following Ruby implementations:
36
36
  To install using [Bundler][bundler] grab the latest stable version:
37
37
 
38
38
  ```ruby
39
- gem 'twilio-ruby', '~> 5.64.0'
39
+ gem 'twilio-ruby', '~> 5.65.0'
40
40
  ```
41
41
 
42
42
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
43
43
 
44
44
  ```bash
45
- gem install twilio-ruby -v 5.64.0
45
+ gem install twilio-ruby -v 5.65.0
46
46
  ```
47
47
 
48
48
  To build and install the development branch yourself from the latest source:
@@ -578,6 +578,7 @@ module Twilio
578
578
  'name' => payload['name'],
579
579
  'status' => payload['status'],
580
580
  'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
581
+ 'uri' => payload['uri'],
581
582
  }
582
583
 
583
584
  # Context
@@ -637,6 +638,12 @@ module Twilio
637
638
  @properties['date_updated']
638
639
  end
639
640
 
641
+ ##
642
+ # @return [String] The URI of the resource, relative to `https://api.twilio.com`
643
+ def uri
644
+ @properties['uri']
645
+ end
646
+
640
647
  ##
641
648
  # Update the SiprecInstance
642
649
  # @param [siprec.UpdateStatus] status The status. Must have the value `stopped`
@@ -578,6 +578,7 @@ module Twilio
578
578
  'name' => payload['name'],
579
579
  'status' => payload['status'],
580
580
  'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
581
+ 'uri' => payload['uri'],
581
582
  }
582
583
 
583
584
  # Context
@@ -637,6 +638,12 @@ module Twilio
637
638
  @properties['date_updated']
638
639
  end
639
640
 
641
+ ##
642
+ # @return [String] The URI of the resource, relative to `https://api.twilio.com`
643
+ def uri
644
+ @properties['uri']
645
+ end
646
+
640
647
  ##
641
648
  # Update the StreamInstance
642
649
  # @param [stream.UpdateStatus] status The status. Must have the value `stopped`
@@ -114,7 +114,7 @@ module Twilio
114
114
  # @param [Boolean] auto_creation_enabled Enable/Disable auto-creating
115
115
  # conversations for messages to this address
116
116
  # @param [address_configuration.AutoCreationType] auto_creation_type Type of Auto
117
- # Creation. Value can be one of `webhook`, `studio`, `default`.
117
+ # Creation. Value can be one of `webhook`, `studio` or `default`.
118
118
  # @param [String] auto_creation_conversation_service_sid Conversation Service for
119
119
  # the auto-created conversation. If not set, the conversation is created in the
120
120
  # default service.
@@ -123,9 +123,13 @@ module Twilio
123
123
  # @param [address_configuration.Method] auto_creation_webhook_method For type
124
124
  # `webhook`, the HTTP method to be used when sending a webhook request.
125
125
  # @param [Array[String]] auto_creation_webhook_filters The list of events, firing
126
- # webhook event for this Conversation.
126
+ # webhook event for this Conversation. Values can be any of the following:
127
+ # `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`,
128
+ # `onConversationUpdated`, `onConversationStateUpdated`, `onConversationRemoved`,
129
+ # `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`,
130
+ # `onDeliveryUpdated`
127
131
  # @param [String] auto_creation_studio_flow_sid For type `studio`, the studio flow
128
- # SID, where the webhook should be sent to.
132
+ # SID where the webhook should be sent to.
129
133
  # @param [String] auto_creation_studio_retry_count For type `studio`, number of
130
134
  # times to retry the webhook request
131
135
  # @return [AddressConfigurationInstance] Created AddressConfigurationInstance
@@ -216,7 +220,7 @@ module Twilio
216
220
  # @param [Boolean] auto_creation_enabled Enable/Disable auto-creating
217
221
  # conversations for messages to this address
218
222
  # @param [address_configuration.AutoCreationType] auto_creation_type Type of Auto
219
- # Creation. Value can be one of `webhook`, `studio`, `default`.
223
+ # Creation. Value can be one of `webhook`, `studio` or `default`.
220
224
  # @param [String] auto_creation_conversation_service_sid Conversation Service for
221
225
  # the auto-created conversation. If not set, the conversation is created in the
222
226
  # default service.
@@ -225,9 +229,13 @@ module Twilio
225
229
  # @param [address_configuration.Method] auto_creation_webhook_method For type
226
230
  # `webhook`, the HTTP method to be used when sending a webhook request.
227
231
  # @param [Array[String]] auto_creation_webhook_filters The list of events, firing
228
- # webhook event for this Conversation.
232
+ # webhook event for this Conversation. Values can be any of the following:
233
+ # `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`,
234
+ # `onConversationUpdated`, `onConversationStateUpdated`, `onConversationRemoved`,
235
+ # `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`,
236
+ # `onDeliveryUpdated`
229
237
  # @param [String] auto_creation_studio_flow_sid For type `studio`, the studio flow
230
- # SID, where the webhook should be sent to.
238
+ # SID where the webhook should be sent to.
231
239
  # @param [String] auto_creation_studio_retry_count For type `studio`, number of
232
240
  # times to retry the webhook request
233
241
  # @return [AddressConfigurationInstance] Updated AddressConfigurationInstance
@@ -324,7 +332,7 @@ module Twilio
324
332
  end
325
333
 
326
334
  ##
327
- # @return [String] Type of Address, value can be `whatsapp` or `sms`.
335
+ # @return [String] Type of Address.
328
336
  def type
329
337
  @properties['type']
330
338
  end
@@ -379,7 +387,7 @@ module Twilio
379
387
  # @param [Boolean] auto_creation_enabled Enable/Disable auto-creating
380
388
  # conversations for messages to this address
381
389
  # @param [address_configuration.AutoCreationType] auto_creation_type Type of Auto
382
- # Creation. Value can be one of `webhook`, `studio`, `default`.
390
+ # Creation. Value can be one of `webhook`, `studio` or `default`.
383
391
  # @param [String] auto_creation_conversation_service_sid Conversation Service for
384
392
  # the auto-created conversation. If not set, the conversation is created in the
385
393
  # default service.
@@ -388,9 +396,13 @@ module Twilio
388
396
  # @param [address_configuration.Method] auto_creation_webhook_method For type
389
397
  # `webhook`, the HTTP method to be used when sending a webhook request.
390
398
  # @param [Array[String]] auto_creation_webhook_filters The list of events, firing
391
- # webhook event for this Conversation.
399
+ # webhook event for this Conversation. Values can be any of the following:
400
+ # `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`,
401
+ # `onConversationUpdated`, `onConversationStateUpdated`, `onConversationRemoved`,
402
+ # `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`,
403
+ # `onDeliveryUpdated`
392
404
  # @param [String] auto_creation_studio_flow_sid For type `studio`, the studio flow
393
- # SID, where the webhook should be sent to.
405
+ # SID where the webhook should be sent to.
394
406
  # @param [String] auto_creation_studio_retry_count For type `studio`, number of
395
407
  # times to retry the webhook request
396
408
  # @return [AddressConfigurationInstance] Updated AddressConfigurationInstance
@@ -79,8 +79,8 @@ module Twilio
79
79
  # request. Can be `local`, `mobile`, `national`, or `tollfree`.
80
80
  # @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid
81
81
  # Bundle until a specified expiration date.
82
- # @param [bundle.SortBy] sort_by Can be `ValidUntilDate` or `DateUpdated`.
83
- # Defaults to `DateCreated`
82
+ # @param [bundle.SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults
83
+ # to `date-created`.
84
84
  # @param [bundle.SortDirection] sort_direction Default is `DESC`. Can be `ASC` or
85
85
  # `DESC`.
86
86
  # @param [Time] valid_until_date_before Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well.
@@ -131,8 +131,8 @@ module Twilio
131
131
  # request. Can be `local`, `mobile`, `national`, or `tollfree`.
132
132
  # @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid
133
133
  # Bundle until a specified expiration date.
134
- # @param [bundle.SortBy] sort_by Can be `ValidUntilDate` or `DateUpdated`.
135
- # Defaults to `DateCreated`
134
+ # @param [bundle.SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults
135
+ # to `date-created`.
136
136
  # @param [bundle.SortDirection] sort_direction Default is `DESC`. Can be `ASC` or
137
137
  # `DESC`.
138
138
  # @param [Time] valid_until_date_before Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well.
@@ -199,8 +199,8 @@ module Twilio
199
199
  # request. Can be `local`, `mobile`, `national`, or `tollfree`.
200
200
  # @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid
201
201
  # Bundle until a specified expiration date.
202
- # @param [bundle.SortBy] sort_by Can be `ValidUntilDate` or `DateUpdated`.
203
- # Defaults to `DateCreated`
202
+ # @param [bundle.SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults
203
+ # to `date-created`.
204
204
  # @param [bundle.SortDirection] sort_direction Default is `DESC`. Can be `ASC` or
205
205
  # `DESC`.
206
206
  # @param [Time] valid_until_date_before Date to filter Bundles having their `valid_until_date` before or after the specified date. Can be `ValidUntilDate>=` or `ValidUntilDate<=`. Both can be used in conjunction as well.
@@ -49,9 +49,9 @@ module Twilio
49
49
  # @param [Time] start_time Only include usage that occurred at or after this time,
50
50
  # specified in {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601] format. Default
51
51
  # is one month before the `end_time`.
52
- # @param [Time] end_time Only include usage that occurred before this time,
53
- # specified in {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601] format. Default
54
- # is the current time.
52
+ # @param [Time] end_time Only include usage that occurred before this time
53
+ # (exclusive), specified in {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601]
54
+ # format. Default is the current time.
55
55
  # @param [Integer] limit Upper limit for the number of records to return. stream()
56
56
  # guarantees to never return more than limit. Default is no limit
57
57
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -98,9 +98,9 @@ module Twilio
98
98
  # @param [Time] start_time Only include usage that occurred at or after this time,
99
99
  # specified in {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601] format. Default
100
100
  # is one month before the `end_time`.
101
- # @param [Time] end_time Only include usage that occurred before this time,
102
- # specified in {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601] format. Default
103
- # is the current time.
101
+ # @param [Time] end_time Only include usage that occurred before this time
102
+ # (exclusive), specified in {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601]
103
+ # format. Default is the current time.
104
104
  # @param [Integer] limit Upper limit for the number of records to return. stream()
105
105
  # guarantees to never return more than limit. Default is no limit.
106
106
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -163,9 +163,9 @@ module Twilio
163
163
  # @param [Time] start_time Only include usage that occurred at or after this time,
164
164
  # specified in {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601] format. Default
165
165
  # is one month before the `end_time`.
166
- # @param [Time] end_time Only include usage that occurred before this time,
167
- # specified in {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601] format. Default
168
- # is the current time.
166
+ # @param [Time] end_time Only include usage that occurred before this time
167
+ # (exclusive), specified in {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601]
168
+ # format. Default is the current time.
169
169
  # @param [String] page_token PageToken provided by the API
170
170
  # @param [Integer] page_number Page Number, this value is simply for client state
171
171
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -293,6 +293,7 @@ module Twilio
293
293
  'status' => payload['status'],
294
294
  'factor_type' => payload['factor_type'],
295
295
  'config' => payload['config'],
296
+ 'metadata' => payload['metadata'],
296
297
  'url' => payload['url'],
297
298
  }
298
299
 
@@ -383,6 +384,12 @@ module Twilio
383
384
  @properties['config']
384
385
  end
385
386
 
387
+ ##
388
+ # @return [Hash] Metadata of the factor.
389
+ def metadata
390
+ @properties['metadata']
391
+ end
392
+
386
393
  ##
387
394
  # @return [String] The URL of this resource.
388
395
  def url
@@ -41,9 +41,7 @@ module Twilio
41
41
  # constructing the `binding.uri` property.
42
42
  # At the same time, we recommend avoiding providing PII.
43
43
  # @param [new_factor.FactorTypes] factor_type The Type of this Factor. Currently
44
- # `push` and `totp` are supported. For `totp` to work, you need to contact {Twilio
45
- # sales}[https://www.twilio.com/help/sales] first to have the Verify TOTP feature
46
- # enabled for your Twilio account.
44
+ # `push` and `totp` are supported.
47
45
  # @param [String] binding_alg The algorithm used when `factor_type` is `push`.
48
46
  # Algorithm supported: `ES256`
49
47
  # @param [String] binding_public_key The Ecdsa public key in PKIX, ASN.1 DER
@@ -96,8 +94,12 @@ module Twilio
96
94
  # TOTP codes. Can be `sha1`, `sha256` or `sha512`. Defaults to `sha1`.
97
95
  #
98
96
  # Used when `factor_type` is `totp`
97
+ # @param [Hash] metadata Custom metadata associated with the factor. This is added
98
+ # by the Device/SDK directly to allow for the inclusion of device information. It
99
+ # must be a stringified JSON with only strings values eg. `{"os": "Android"}`. Can
100
+ # be up to 1024 characters in length.
99
101
  # @return [NewFactorInstance] Created NewFactorInstance
100
- def create(friendly_name: nil, factor_type: nil, binding_alg: :unset, binding_public_key: :unset, config_app_id: :unset, config_notification_platform: :unset, config_notification_token: :unset, config_sdk_version: :unset, binding_secret: :unset, config_time_step: :unset, config_skew: :unset, config_code_length: :unset, config_alg: :unset)
102
+ def create(friendly_name: nil, factor_type: nil, binding_alg: :unset, binding_public_key: :unset, config_app_id: :unset, config_notification_platform: :unset, config_notification_token: :unset, config_sdk_version: :unset, binding_secret: :unset, config_time_step: :unset, config_skew: :unset, config_code_length: :unset, config_alg: :unset, metadata: :unset)
101
103
  data = Twilio::Values.of({
102
104
  'FriendlyName' => friendly_name,
103
105
  'FactorType' => factor_type,
@@ -112,6 +114,7 @@ module Twilio
112
114
  'Config.Skew' => config_skew,
113
115
  'Config.CodeLength' => config_code_length,
114
116
  'Config.Alg' => config_alg,
117
+ 'Metadata' => Twilio.serialize_object(metadata),
115
118
  })
116
119
 
117
120
  payload = @version.create('POST', @uri, data: data)
@@ -197,6 +200,7 @@ module Twilio
197
200
  'status' => payload['status'],
198
201
  'factor_type' => payload['factor_type'],
199
202
  'config' => payload['config'],
203
+ 'metadata' => payload['metadata'],
200
204
  'url' => payload['url'],
201
205
  }
202
206
  end
@@ -232,7 +236,7 @@ module Twilio
232
236
  end
233
237
 
234
238
  ##
235
- # @return [Hash] Unique external identifier of the Entity
239
+ # @return [Hash] Binding of the factor
236
240
  def binding
237
241
  @properties['binding']
238
242
  end
@@ -268,11 +272,17 @@ module Twilio
268
272
  end
269
273
 
270
274
  ##
271
- # @return [Hash] Binding for a `factor_type`.
275
+ # @return [Hash] Configurations for a `factor_type`.
272
276
  def config
273
277
  @properties['config']
274
278
  end
275
279
 
280
+ ##
281
+ # @return [Hash] Metadata of the factor.
282
+ def metadata
283
+ @properties['metadata']
284
+ end
285
+
276
286
  ##
277
287
  # @return [String] The URL of this resource.
278
288
  def url
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.64.0'
2
+ VERSION = '5.65.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilio-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.64.0
4
+ version: 5.65.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twilio API Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-09 00:00:00.000000000 Z
11
+ date: 2022-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt