twilio-ruby 6.8.1 → 6.8.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +29 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +4 -4
  5. data/lib/twilio-ruby/rest/client.rb +0 -5
  6. data/lib/twilio-ruby/rest/content/v1/content.rb +1 -1
  7. data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -1
  8. data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -1
  9. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +2 -2
  10. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +2 -2
  11. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +1 -1
  12. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +4 -4
  13. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +1 -1
  14. data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +1 -1
  15. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +15 -2
  16. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
  17. data/lib/twilio-ruby/rest/notify/v1/service.rb +4 -4
  18. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +1 -1
  19. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +1 -1
  20. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +4 -4
  21. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +4 -4
  22. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -0
  23. data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +12 -90
  24. data/lib/twilio-ruby/rest/trusthub/v1.rb +2 -11
  25. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +4 -1
  26. data/lib/twilio-ruby/rest/verify/v2/service.rb +19 -3
  27. data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +1 -1
  28. data/lib/twilio-ruby/version.rb +1 -1
  29. metadata +2 -10
  30. data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +0 -171
  31. data/lib/twilio-ruby/rest/oauth/v1/oauth.rb +0 -185
  32. data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +0 -262
  33. data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -179
  34. data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +0 -213
  35. data/lib/twilio-ruby/rest/oauth/v1.rb +0 -64
  36. data/lib/twilio-ruby/rest/oauth.rb +0 -33
  37. data/lib/twilio-ruby/rest/oauth_base.rb +0 -38
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37aec8731226e8f1fb72e201f37238afeb644208
4
- data.tar.gz: 7ca93edd7f9b3466bc70e6c34da25f184559767e
3
+ metadata.gz: 93f72d289553ee06f2eeed03379838f0f7bf0aaf
4
+ data.tar.gz: b1e45d1f753beb689ca6c7ca49ad10679e29fac5
5
5
  SHA512:
6
- metadata.gz: 8c16240f3b8e169ef9dee9b1eaf4d363cd901748a1207a2c9d631785983a683603989793cae092ed55d4e075285cac8cdebdd75fdb177368d12c0bcb49661597
7
- data.tar.gz: c670f597c3bc5c7de93898c1372309bab764d1f945b407d8f42855f5c4f0b97299856200505d3c288346b73d435f909220372ca6ba40ebe9e25958e800d46e3d
6
+ metadata.gz: 590d26035fb79b388d13488a9c6afedbb0c6150e455a89b94e8ac66a096bcf39bdcdb9a72c07430f0471f61e80b2c6b0143b54c316d47935a115652a19caa264
7
+ data.tar.gz: e48cea4a7378ef1e6d491ebd0ade12778db8ee494ea5751f135f67b35134f015a2519fe53f8bb77c2fd4624e61c232dd52d96ac3636ac7d7095068eaddc678ce
data/CHANGES.md CHANGED
@@ -1,6 +1,35 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2023-12-01] Version 6.8.3
5
+ --------------------------
6
+ **Verify**
7
+ - Add `VerifyEventSubscriptionEnabled` parameter to service create and update endpoints.
8
+
9
+
10
+ [2023-11-17] Version 6.8.2
11
+ --------------------------
12
+ **Library - Chore**
13
+ - [PR #687](https://github.com/twilio/twilio-ruby/pull/687): remove more oauth refrences. Thanks to [@KobeBrooks](https://github.com/KobeBrooks)!
14
+
15
+ **Api**
16
+ - Update documentation to reflect RiskCheck GA
17
+
18
+ **Messaging**
19
+ - Add tollfree edit_allowed and edit_reason fields
20
+ - Update Phone Number, Short Code, Alpha Sender, US A2P and Channel Sender documentation
21
+
22
+ **Taskrouter**
23
+ - Add container attribute to task_queue_bulk_real_time_statistics endpoint
24
+
25
+ **Trusthub**
26
+ - Rename did to tollfree_phone_number in compliance_tollfree_inquiry.json
27
+ - Add new optional field notification_email to compliance_tollfree_inquiry.json
28
+
29
+ **Verify**
30
+ - Add `Tags` optional parameter on Verification creation.
31
+
32
+
4
33
  [2023-11-06] Version 6.8.1
5
34
  --------------------------
6
35
  **Flex**
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', '~> 6.8.1'
42
+ gem 'twilio-ruby', '~> 6.8.3'
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 6.8.1
48
+ gem install twilio-ruby -v 6.8.3
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
@@ -45,16 +45,16 @@ module Twilio
45
45
  # @param [AddressRetention] address_retention
46
46
  # @param [Boolean] smart_encoded Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: `true` or `false`.
47
47
  # @param [Array[String]] persistent_action Rich actions for non-SMS/MMS channels. Used for [sending location in WhatsApp messages](https://www.twilio.com/docs/whatsapp/message-features#location-messages-with-whatsapp).
48
- # @param [Boolean] shorten_urls For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/how-to-configure-link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided.
48
+ # @param [Boolean] shorten_urls For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided.
49
49
  # @param [ScheduleType] schedule_type
50
50
  # @param [Time] send_at The time that Twilio will send the message. Must be in ISO 8601 format.
51
51
  # @param [Boolean] send_as_mms If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media.
52
52
  # @param [String] content_variables For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used.
53
53
  # @param [RiskCheck] risk_check
54
- # @param [String] from The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
54
+ # @param [String] from The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
55
55
  # @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) you want to associate with the Message. When this parameter is provided and the `from` parameter is omitted, Twilio selects the optimal sender from the Messaging Service's Sender Pool. You may also provide a `from` parameter if you want to use a specific Sender from the Sender Pool.
56
56
  # @param [String] body The text content of the outgoing message. Can be up to 1,600 characters in length. SMS only: If the `body` contains more than 160 [GSM-7](https://www.twilio.com/docs/glossary/what-is-gsm-7-character-encoding) characters (or 70 [UCS-2](https://www.twilio.com/docs/glossary/what-is-ucs-2-character-encoding) characters), the message is segmented and charged accordingly. For long `body` text, consider using the [send_as_mms parameter](https://www.twilio.com/blog/mms-for-long-text-messages).
57
- # @param [Array[String]] media_url The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply.
57
+ # @param [Array[String]] media_url The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/messaging/guides/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply.
58
58
  # @param [String] content_sid For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio's response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources).
59
59
  # @return [MessageInstance] Created MessageInstance
60
60
  def create(
@@ -451,7 +451,7 @@ module Twilio
451
451
  end
452
452
 
453
453
  ##
454
- # @return [String] The sender's phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent.
454
+ # @return [String] The sender's phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent.
455
455
  def from
456
456
  @properties['from']
457
457
  end
@@ -117,11 +117,6 @@ module Twilio
117
117
  @numbers ||= Numbers.new self
118
118
  end
119
119
  ##
120
- # Access the Oauth Twilio Domain
121
- def oauth
122
- @oauth ||= Oauth.new self
123
- end
124
- ##
125
120
  # Access the Preview Twilio Domain
126
121
  def preview
127
122
  @preview ||= Preview.new self
@@ -302,7 +302,7 @@ module Twilio
302
302
  end
303
303
 
304
304
  ##
305
- # @return [Hash] The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
305
+ # @return [Hash] The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
306
306
  def types
307
307
  @properties['types']
308
308
  end
@@ -221,7 +221,7 @@ module Twilio
221
221
  end
222
222
 
223
223
  ##
224
- # @return [Hash] The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
224
+ # @return [Hash] The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
225
225
  def types
226
226
  @properties['types']
227
227
  end
@@ -223,7 +223,7 @@ module Twilio
223
223
  end
224
224
 
225
225
  ##
226
- # @return [Hash] The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
226
+ # @return [Hash] The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
227
227
  def types
228
228
  @properties['types']
229
229
  end
@@ -39,7 +39,7 @@ module Twilio
39
39
  # @param [Time] date_updated The date that this resource was last updated. `null` if the message has not been edited.
40
40
  # @param [String] attributes A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned.
41
41
  # @param [String] media_sid The Media SID to be attached to the new Message.
42
- # @param [String] content_sid The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored.
42
+ # @param [String] content_sid The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored.
43
43
  # @param [String] content_variables A structurally valid JSON string that contains values to resolve Rich Content template variables.
44
44
  # @param [String] subject The subject of the message, can be up to 256 characters long.
45
45
  # @param [ConversationMessageEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
@@ -456,7 +456,7 @@ module Twilio
456
456
  end
457
457
 
458
458
  ##
459
- # @return [String] The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template.
459
+ # @return [String] The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template.
460
460
  def content_sid
461
461
  @properties['content_sid']
462
462
  end
@@ -40,7 +40,7 @@ module Twilio
40
40
  # @param [Time] date_updated The date that this resource was last updated. `null` if the message has not been edited.
41
41
  # @param [String] attributes A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned.
42
42
  # @param [String] media_sid The Media SID to be attached to the new Message.
43
- # @param [String] content_sid The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored.
43
+ # @param [String] content_sid The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored.
44
44
  # @param [String] content_variables A structurally valid JSON string that contains values to resolve Rich Content template variables.
45
45
  # @param [String] subject The subject of the message, can be up to 256 characters long.
46
46
  # @param [ServiceConversationMessageEnumWebhookEnabledType] x_twilio_webhook_enabled The X-Twilio-Webhook-Enabled HTTP request header
@@ -468,7 +468,7 @@ module Twilio
468
468
  end
469
469
 
470
470
  ##
471
- # @return [String] The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template.
471
+ # @return [String] The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template.
472
472
  def content_sid
473
473
  @properties['content_sid']
474
474
  end
@@ -251,7 +251,7 @@ module Twilio
251
251
  end
252
252
 
253
253
  ##
254
- # @return [String] The URL of this resource.
254
+ # @return [String]
255
255
  def url
256
256
  @properties['url']
257
257
  end
@@ -33,7 +33,7 @@ module Twilio
33
33
  # Create the ServiceInstance
34
34
  # @param [String] unique_name Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
35
35
  # @param [Boolean] auto_transcribe Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
36
- # @param [Boolean] data_logging Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models.
36
+ # @param [Boolean] data_logging Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
37
37
  # @param [String] friendly_name A human readable description of this resource, up to 64 characters.
38
38
  # @param [String] language_code The default language code of the audio.
39
39
  # @param [Boolean] auto_redaction Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
@@ -207,7 +207,7 @@ module Twilio
207
207
  ##
208
208
  # Update the ServiceInstance
209
209
  # @param [Boolean] auto_transcribe Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
210
- # @param [Boolean] data_logging Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models.
210
+ # @param [Boolean] data_logging Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
211
211
  # @param [String] friendly_name A human readable description of this resource, up to 64 characters.
212
212
  # @param [String] language_code The default language code of the audio.
213
213
  # @param [String] unique_name Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
@@ -368,7 +368,7 @@ module Twilio
368
368
  end
369
369
 
370
370
  ##
371
- # @return [Boolean] Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models.
371
+ # @return [Boolean] Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
372
372
  def data_logging
373
373
  @properties['data_logging']
374
374
  end
@@ -452,7 +452,7 @@ module Twilio
452
452
  ##
453
453
  # Update the ServiceInstance
454
454
  # @param [Boolean] auto_transcribe Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
455
- # @param [Boolean] data_logging Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models.
455
+ # @param [Boolean] data_logging Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
456
456
  # @param [String] friendly_name A human readable description of this resource, up to 64 characters.
457
457
  # @param [String] language_code The default language code of the audio.
458
458
  # @param [String] unique_name Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
@@ -415,7 +415,7 @@ module Twilio
415
415
  end
416
416
 
417
417
  ##
418
- # @return [Boolean] Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models.
418
+ # @return [Boolean] Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
419
419
  def data_logging
420
420
  @properties['data_logging']
421
421
  end
@@ -292,7 +292,7 @@ module Twilio
292
292
  end
293
293
 
294
294
  ##
295
- # @return [String]
295
+ # @return [String] The absolute URL of the ChannelSender resource.
296
296
  def url
297
297
  @properties['url']
298
298
  end
@@ -280,6 +280,7 @@ module Twilio
280
280
  # @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
281
281
  # @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
282
282
  # @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number.
283
+ # @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
283
284
  # @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance
284
285
  def update(
285
286
  business_name: :unset,
@@ -301,7 +302,8 @@ module Twilio
301
302
  business_contact_first_name: :unset,
302
303
  business_contact_last_name: :unset,
303
304
  business_contact_email: :unset,
304
- business_contact_phone: :unset
305
+ business_contact_phone: :unset,
306
+ edit_reason: :unset
305
307
  )
306
308
 
307
309
  data = Twilio::Values.of({
@@ -325,6 +327,7 @@ module Twilio
325
327
  'BusinessContactLastName' => business_contact_last_name,
326
328
  'BusinessContactEmail' => business_contact_email,
327
329
  'BusinessContactPhone' => business_contact_phone,
330
+ 'EditReason' => edit_reason,
328
331
  })
329
332
 
330
333
  payload = @version.update('POST', @uri, data: data)
@@ -427,6 +430,7 @@ module Twilio
427
430
  'rejection_reason' => payload['rejection_reason'],
428
431
  'error_code' => payload['error_code'] == nil ? payload['error_code'] : payload['error_code'].to_i,
429
432
  'edit_expiration' => Twilio.deserialize_iso8601_datetime(payload['edit_expiration']),
433
+ 'edit_allowed' => payload['edit_allowed'],
430
434
  'resource_links' => payload['resource_links'],
431
435
  'external_reference_id' => payload['external_reference_id'],
432
436
  }
@@ -645,6 +649,12 @@ module Twilio
645
649
  @properties['edit_expiration']
646
650
  end
647
651
 
652
+ ##
653
+ # @return [Boolean] If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not.
654
+ def edit_allowed
655
+ @properties['edit_allowed']
656
+ end
657
+
648
658
  ##
649
659
  # @return [Hash] The URLs of the documents associated with the Tollfree Verification resource.
650
660
  def resource_links
@@ -695,6 +705,7 @@ module Twilio
695
705
  # @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
696
706
  # @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
697
707
  # @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number.
708
+ # @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
698
709
  # @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance
699
710
  def update(
700
711
  business_name: :unset,
@@ -716,7 +727,8 @@ module Twilio
716
727
  business_contact_first_name: :unset,
717
728
  business_contact_last_name: :unset,
718
729
  business_contact_email: :unset,
719
- business_contact_phone: :unset
730
+ business_contact_phone: :unset,
731
+ edit_reason: :unset
720
732
  )
721
733
 
722
734
  context.update(
@@ -740,6 +752,7 @@ module Twilio
740
752
  business_contact_last_name: business_contact_last_name,
741
753
  business_contact_email: business_contact_email,
742
754
  business_contact_phone: business_contact_phone,
755
+ edit_reason: edit_reason,
743
756
  )
744
757
  end
745
758
 
@@ -42,7 +42,7 @@ module Twilio
42
42
  # @param [Object] data The custom key-value pairs of the notification's payload. For FCM and GCM, this value translates to `data` in the FCM and GCM payloads. FCM and GCM [reserve certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref) that cannot be used in those channels. For APNS, attributes of `data` are inserted into the APNS payload as custom properties outside of the `aps` dictionary. In all channels, we reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed and are rejected as 400 Bad request with no delivery attempted. For SMS, this parameter is not supported and is omitted from deliveries to those channels.
43
43
  # @param [Object] apn The APNS-specific payload that overrides corresponding attributes in the generic payload for APNS Bindings. This property maps to the APNS `Payload` item, therefore the `aps` key must be used to change standard attributes. Adds custom key-value pairs to the root of the dictionary. See the [APNS documentation](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html) for more details. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed.
44
44
  # @param [Object] gcm The GCM-specific payload that overrides corresponding attributes in the generic payload for GCM Bindings. This property maps to the root JSON dictionary. See the [GCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref) for more details. Target parameters `to`, `registration_ids`, and `notification_key` are not allowed. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. GCM also [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref).
45
- # @param [Object] sms The SMS-specific payload that overrides corresponding attributes in the generic payload for SMS Bindings. Each attribute in this value maps to the corresponding `form` parameter of the Twilio [Message](https://www.twilio.com/docs/sms/send-messages) resource. These parameters of the Message resource are supported in snake case format: `body`, `media_urls`, `status_callback`, and `max_price`. The `status_callback` parameter overrides the corresponding parameter in the messaging service, if configured. The `media_urls` property expects a JSON array.
45
+ # @param [Object] sms The SMS-specific payload that overrides corresponding attributes in the generic payload for SMS Bindings. Each attribute in this value maps to the corresponding `form` parameter of the Twilio [Message](https://www.twilio.com/docs/sms/quickstart) resource. These parameters of the Message resource are supported in snake case format: `body`, `media_urls`, `status_callback`, and `max_price`. The `status_callback` parameter overrides the corresponding parameter in the messaging service, if configured. The `media_urls` property expects a JSON array.
46
46
  # @param [Object] facebook_messenger Deprecated.
47
47
  # @param [Object] fcm The FCM-specific payload that overrides corresponding attributes in the generic payload for FCM Bindings. This property maps to the root JSON dictionary. See the [FCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref#downstream) for more details. Target parameters `to`, `registration_ids`, `condition`, and `notification_key` are not allowed in this parameter. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. FCM also [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref), which cannot be used in that channel.
48
48
  # @param [Array[String]] segment The Segment resource is deprecated. Use the `tag` parameter, instead.
@@ -34,7 +34,7 @@ module Twilio
34
34
  # @param [String] friendly_name A descriptive string that you create to describe the resource. It can be up to 64 characters long.
35
35
  # @param [String] apn_credential_sid The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings.
36
36
  # @param [String] gcm_credential_sid The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings.
37
- # @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications.
37
+ # @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/sms/quickstart#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications.
38
38
  # @param [String] facebook_messenger_page_id Deprecated.
39
39
  # @param [String] default_apn_notification_protocol_version The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource.
40
40
  # @param [String] default_gcm_notification_protocol_version The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource.
@@ -232,7 +232,7 @@ module Twilio
232
232
  # @param [String] friendly_name A descriptive string that you create to describe the resource. It can be up to 64 characters long.
233
233
  # @param [String] apn_credential_sid The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings.
234
234
  # @param [String] gcm_credential_sid The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings.
235
- # @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications.
235
+ # @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/sms/quickstart#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications.
236
236
  # @param [String] facebook_messenger_page_id Deprecated.
237
237
  # @param [String] default_apn_notification_protocol_version The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource.
238
238
  # @param [String] default_gcm_notification_protocol_version The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource.
@@ -462,7 +462,7 @@ module Twilio
462
462
  end
463
463
 
464
464
  ##
465
- # @return [String] The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. In order to send SMS notifications this parameter has to be set.
465
+ # @return [String] The SID of the [Messaging Service](https://www.twilio.com/docs/sms/quickstart#messaging-services) to use for SMS Bindings. In order to send SMS notifications this parameter has to be set.
466
466
  def messaging_service_sid
467
467
  @properties['messaging_service_sid']
468
468
  end
@@ -554,7 +554,7 @@ module Twilio
554
554
  # @param [String] friendly_name A descriptive string that you create to describe the resource. It can be up to 64 characters long.
555
555
  # @param [String] apn_credential_sid The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings.
556
556
  # @param [String] gcm_credential_sid The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings.
557
- # @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications.
557
+ # @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/sms/quickstart#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications.
558
558
  # @param [String] facebook_messenger_page_id Deprecated.
559
559
  # @param [String] default_apn_notification_protocol_version The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource.
560
560
  # @param [String] default_gcm_notification_protocol_version The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource.
@@ -307,7 +307,7 @@ module Twilio
307
307
  end
308
308
 
309
309
  ##
310
- # @return [String] The SID of the inbound resource; either the [Call](https://www.twilio.com/docs/voice/api/call-resource) or [Message](https://www.twilio.com/docs/sms/api/message.
310
+ # @return [String] The SID of the inbound resource; either the [Call](https://www.twilio.com/docs/voice/api/call-resource) or [Message](https://www.twilio.com/docs/sms/api/message-resource).
311
311
  def inbound_resource_sid
312
312
  @properties['inbound_resource_sid']
313
313
  end
@@ -33,7 +33,7 @@ module Twilio
33
33
  end
34
34
  ##
35
35
  # Create the ShortCodeInstance
36
- # @param [String] sid The SID of a Twilio [ShortCode](https://www.twilio.com/docs/sms/api/short-code) resource that represents the short code you would like to assign to your Proxy Service.
36
+ # @param [String] sid The SID of a Twilio [ShortCode](https://www.twilio.com/en-us/messaging/channels/sms/short-codes) resource that represents the short code you would like to assign to your Proxy Service.
37
37
  # @return [ShortCodeInstance] Created ShortCodeInstance
38
38
  def create(
39
39
  sid: nil
@@ -63,7 +63,7 @@ module Twilio
63
63
  # Unlike stream(), this operation is eager and will load `limit` records into
64
64
  # memory before returning.
65
65
  # @param [String] eid List the eSIM Profiles that have been associated with an EId.
66
- # @param [String] sim_sid Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/wireless/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
66
+ # @param [String] sim_sid Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
67
67
  # @param [Status] status List the eSIM Profiles that are in a given status.
68
68
  # @param [Integer] limit Upper limit for the number of records to return. stream()
69
69
  # guarantees to never return more than limit. Default is no limit
@@ -87,7 +87,7 @@ module Twilio
87
87
  # This operation lazily loads records as efficiently as possible until the limit
88
88
  # is reached.
89
89
  # @param [String] eid List the eSIM Profiles that have been associated with an EId.
90
- # @param [String] sim_sid Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/wireless/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
90
+ # @param [String] sim_sid Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
91
91
  # @param [Status] status List the eSIM Profiles that are in a given status.
92
92
  # @param [Integer] limit Upper limit for the number of records to return. stream()
93
93
  # guarantees to never return more than limit. Default is no limit
@@ -126,7 +126,7 @@ module Twilio
126
126
  # Retrieve a single page of EsimProfileInstance records from the API.
127
127
  # Request is executed immediately.
128
128
  # @param [String] eid List the eSIM Profiles that have been associated with an EId.
129
- # @param [String] sim_sid Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/wireless/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
129
+ # @param [String] sim_sid Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
130
130
  # @param [Status] status List the eSIM Profiles that are in a given status.
131
131
  # @param [String] page_token PageToken provided by the API
132
132
  # @param [Integer] page_number Page Number, this value is simply for client state
@@ -309,7 +309,7 @@ module Twilio
309
309
  end
310
310
 
311
311
  ##
312
- # @return [String] The SID of the [Sim](https://www.twilio.com/docs/iot/wireless/api/sim-resource) resource that this eSIM Profile controls.
312
+ # @return [String] The SID of the [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource that this eSIM Profile controls.
313
313
  def sim_sid
314
314
  @properties['sim_sid']
315
315
  end
@@ -79,7 +79,7 @@ module Twilio
79
79
  # @param [String] task_queue_name The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name.
80
80
  # @param [String] evaluate_task_attributes The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter.
81
81
  # @param [String] ordering How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime.
82
- # @param [Boolean] has_addons Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons.
82
+ # @param [Boolean] has_addons Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons.
83
83
  # @param [Integer] limit Upper limit for the number of records to return. stream()
84
84
  # guarantees to never return more than limit. Default is no limit
85
85
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -115,7 +115,7 @@ module Twilio
115
115
  # @param [String] task_queue_name The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name.
116
116
  # @param [String] evaluate_task_attributes The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter.
117
117
  # @param [String] ordering How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime.
118
- # @param [Boolean] has_addons Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons.
118
+ # @param [Boolean] has_addons Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons.
119
119
  # @param [Integer] limit Upper limit for the number of records to return. stream()
120
120
  # guarantees to never return more than limit. Default is no limit
121
121
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -166,7 +166,7 @@ module Twilio
166
166
  # @param [String] task_queue_name The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name.
167
167
  # @param [String] evaluate_task_attributes The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter.
168
168
  # @param [String] ordering How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime.
169
- # @param [Boolean] has_addons Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons.
169
+ # @param [Boolean] has_addons Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons.
170
170
  # @param [String] page_token PageToken provided by the API
171
171
  # @param [Integer] page_number Page Number, this value is simply for client state
172
172
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -440,7 +440,7 @@ module Twilio
440
440
  end
441
441
 
442
442
  ##
443
- # @return [String] An object that contains the [addon](https://www.twilio.com/docs/taskrouter/marketplace) data for all installed addons.
443
+ # @return [String] An object that contains the [Add-on](https://www.twilio.com/docs/add-ons) data for all installed Add-ons.
444
444
  def addons
445
445
  @properties['addons']
446
446
  end
@@ -31,6 +31,7 @@ module Twilio
31
31
  @uri = "/Workspaces/#{@solution[:workspace_sid]}/TaskQueues"
32
32
  # Components
33
33
  @statistics = nil
34
+ @bulk_real_time_statistics = nil
34
35
  end
35
36
  ##
36
37
  # Create the TaskQueueInstance
@@ -184,6 +185,13 @@ module Twilio
184
185
  def statistics
185
186
  @statistics ||= TaskQueuesStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid] )
186
187
  end
188
+ ##
189
+ # Access the bulk_real_time_statistics
190
+ # @return [TaskQueueBulkRealTimeStatisticsList]
191
+ # @return [TaskQueueBulkRealTimeStatisticsContext]
192
+ def bulk_real_time_statistics
193
+ @bulk_real_time_statistics ||= TaskQueueBulkRealTimeStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid] )
194
+ end
187
195
 
188
196
  # Provide a user friendly representation
189
197
  def to_s