twilio-ruby 6.8.2 → 6.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +30 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +0 -14
  5. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +4 -4
  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/events/v1/event_type.rb +0 -2
  12. data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +0 -2
  13. data/lib/twilio-ruby/rest/events/v1/schema.rb +0 -2
  14. data/lib/twilio-ruby/rest/events/v1/sink.rb +0 -2
  15. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +4 -6
  16. data/lib/twilio-ruby/rest/events/v1/subscription.rb +0 -2
  17. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +4 -4
  18. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +1 -1
  19. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
  20. data/lib/twilio-ruby/rest/notify/v1/service.rb +4 -4
  21. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +245 -0
  22. data/lib/twilio-ruby/rest/numbers/v1.rb +15 -0
  23. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +1 -1
  24. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +1 -1
  25. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +4 -4
  26. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +6 -0
  27. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +6 -0
  28. data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +59 -2
  29. data/lib/twilio-ruby/rest/verify/v2/service.rb +19 -3
  30. data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +1 -1
  31. data/lib/twilio-ruby/version.rb +1 -1
  32. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f65014678404b1e02f90c80ab33784138e47f307
4
- data.tar.gz: 76d0c8217c4c5a5ba2b12705082615178482ecf2
3
+ metadata.gz: 5940e1a9e503399cd8005c296a5b2aca2be6824a
4
+ data.tar.gz: d4662a6202207667e369d54c72dd29258b9273d5
5
5
  SHA512:
6
- metadata.gz: ca776d1afec063d1e8275792eee9b6d613460210841dacba412c144ddb8ad8ef637e08a6a0d8dfa3d7457c223cb2e4a2018775974612e51aea39055705290a64
7
- data.tar.gz: e9d7fe8dd97f7416bce97a14edf553ec931aa601067f8f5414bec6870d66e784769ebde946c542d6c7258b21cf2a1c64790a0023a59dbcea5d9e25f9c46da3fc
6
+ metadata.gz: '091b6be8f4a24aea0397c5811dce00e9fd09b742bf7d0c2095dab428f1b7a4cd4c5914f3bf387a26e3c19cdf717272ff678b42dff02bd2a704d89174eded90bc'
7
+ data.tar.gz: 1841f2201242ac99a614357318543b55a56582555cb23b7a31fd9b4202a9095ce1dbfa08503146e0949eed3e754fe728e67a362d907cf07ad04976289ef951d3
data/CHANGES.md CHANGED
@@ -1,6 +1,36 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2023-12-14] Version 6.9.0
5
+ --------------------------
6
+ **Api**
7
+ - Updated service base url for connect apps and authorized connect apps APIs **(breaking change)**
8
+
9
+ **Events**
10
+ - Marked as GA
11
+
12
+ **Insights**
13
+ - decommission voice-qualitystats-endpoint role
14
+
15
+ **Numbers**
16
+ - Add Get Port In request api
17
+
18
+ **Taskrouter**
19
+ - Add `jitter_buffer_size` param in update reservation
20
+
21
+ **Trusthub**
22
+ - Add additional optional fields in compliance_tollfree_inquiry.json
23
+
24
+ **Verify**
25
+ - Remove `Tags` from Public Docs **(breaking change)**
26
+
27
+
28
+ [2023-12-01] Version 6.8.3
29
+ --------------------------
30
+ **Verify**
31
+ - Add `VerifyEventSubscriptionEnabled` parameter to service create and update endpoints.
32
+
33
+
4
34
  [2023-11-17] Version 6.8.2
5
35
  --------------------------
6
36
  **Library - Chore**
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.2'
42
+ gem 'twilio-ruby', '~> 6.9.0'
43
43
  ```
44
44
 
45
45
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
46
46
 
47
47
  ```bash
48
- gem install twilio-ruby -v 6.8.2
48
+ gem install twilio-ruby -v 6.9.0
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
@@ -220,8 +220,6 @@ module Twilio
220
220
  'connect_app_friendly_name' => payload['connect_app_friendly_name'],
221
221
  'connect_app_homepage_url' => payload['connect_app_homepage_url'],
222
222
  'connect_app_sid' => payload['connect_app_sid'],
223
- 'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
224
- 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
225
223
  'permissions' => payload['permissions'],
226
224
  'uri' => payload['uri'],
227
225
  }
@@ -278,18 +276,6 @@ module Twilio
278
276
  @properties['connect_app_sid']
279
277
  end
280
278
 
281
- ##
282
- # @return [Time] The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
283
- def date_created
284
- @properties['date_created']
285
- end
286
-
287
- ##
288
- # @return [Time] The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
289
- def date_updated
290
- @properties['date_updated']
291
- end
292
-
293
279
  ##
294
280
  # @return [Array<Permission>] The set of permissions that you authorized for the Connect App. Can be: `get-all` or `post-all`.
295
281
  def permissions
@@ -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
@@ -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
@@ -129,8 +129,6 @@ module Twilio
129
129
  end
130
130
 
131
131
 
132
- ##
133
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
134
132
  class EventTypeContext < InstanceContext
135
133
  ##
136
134
  # Initialize the EventTypeContext
@@ -125,8 +125,6 @@ module Twilio
125
125
  end
126
126
 
127
127
 
128
- ##
129
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
130
128
  class SchemaVersionContext < InstanceContext
131
129
  ##
132
130
  # Initialize the SchemaVersionContext
@@ -39,8 +39,6 @@ module Twilio
39
39
  end
40
40
 
41
41
 
42
- ##
43
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
44
42
  class SchemaContext < InstanceContext
45
43
  ##
46
44
  # Initialize the SchemaContext
@@ -160,8 +160,6 @@ module Twilio
160
160
  end
161
161
 
162
162
 
163
- ##
164
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
165
163
  class SinkContext < InstanceContext
166
164
  ##
167
165
  # Initialize the SinkContext
@@ -34,7 +34,7 @@ module Twilio
34
34
  ##
35
35
  # Create the SubscribedEventInstance
36
36
  # @param [String] type Type of event being subscribed to.
37
- # @param [String] schema_version The schema version that the subscription should use.
37
+ # @param [String] schema_version The schema version that the Subscription should use.
38
38
  # @return [SubscribedEventInstance] Created SubscribedEventInstance
39
39
  def create(
40
40
  type: nil,
@@ -148,8 +148,6 @@ module Twilio
148
148
  end
149
149
 
150
150
 
151
- ##
152
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
153
151
  class SubscribedEventContext < InstanceContext
154
152
  ##
155
153
  # Initialize the SubscribedEventContext
@@ -190,7 +188,7 @@ module Twilio
190
188
 
191
189
  ##
192
190
  # Update the SubscribedEventInstance
193
- # @param [String] schema_version The schema version that the subscription should use.
191
+ # @param [String] schema_version The schema version that the Subscription should use.
194
192
  # @return [SubscribedEventInstance] Updated SubscribedEventInstance
195
193
  def update(
196
194
  schema_version: :unset
@@ -304,7 +302,7 @@ module Twilio
304
302
  end
305
303
 
306
304
  ##
307
- # @return [String] The schema version that the subscription should use.
305
+ # @return [String] The schema version that the Subscription should use.
308
306
  def schema_version
309
307
  @properties['schema_version']
310
308
  end
@@ -339,7 +337,7 @@ module Twilio
339
337
 
340
338
  ##
341
339
  # Update the SubscribedEventInstance
342
- # @param [String] schema_version The schema version that the subscription should use.
340
+ # @param [String] schema_version The schema version that the Subscription should use.
343
341
  # @return [SubscribedEventInstance] Updated SubscribedEventInstance
344
342
  def update(
345
343
  schema_version: :unset
@@ -154,8 +154,6 @@ module Twilio
154
154
  end
155
155
 
156
156
 
157
- ##
158
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
159
157
  class SubscriptionContext < InstanceContext
160
158
  ##
161
159
  # Initialize the SubscriptionContext
@@ -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
@@ -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.
@@ -0,0 +1,245 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Numbers
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 Numbers < NumbersBase
19
+ class V1 < Version
20
+ class PortingPortInFetchList < ListResource
21
+ ##
22
+ # Initialize the PortingPortInFetchList
23
+ # @param [Version] version Version that contains the resource
24
+ # @return [PortingPortInFetchList] PortingPortInFetchList
25
+ def initialize(version)
26
+ super(version)
27
+ # Path Solution
28
+ @solution = { }
29
+
30
+
31
+ end
32
+
33
+
34
+
35
+ # Provide a user friendly representation
36
+ def to_s
37
+ '#<Twilio.Numbers.V1.PortingPortInFetchList>'
38
+ end
39
+ end
40
+
41
+
42
+ ##
43
+ #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
44
+ class PortingPortInFetchContext < InstanceContext
45
+ ##
46
+ # Initialize the PortingPortInFetchContext
47
+ # @param [Version] version Version that contains the resource
48
+ # @param [String] port_in_request_sid The SID of the Port In request. This is a unique identifier of the port in request.
49
+ # @return [PortingPortInFetchContext] PortingPortInFetchContext
50
+ def initialize(version, port_in_request_sid)
51
+ super(version)
52
+
53
+ # Path Solution
54
+ @solution = { port_in_request_sid: port_in_request_sid, }
55
+ @uri = "/Porting/PortIn/#{@solution[:port_in_request_sid]}"
56
+
57
+
58
+ end
59
+ ##
60
+ # Fetch the PortingPortInFetchInstance
61
+ # @return [PortingPortInFetchInstance] Fetched PortingPortInFetchInstance
62
+ def fetch
63
+
64
+ payload = @version.fetch('GET', @uri)
65
+ PortingPortInFetchInstance.new(
66
+ @version,
67
+ payload,
68
+ port_in_request_sid: @solution[:port_in_request_sid],
69
+ )
70
+ end
71
+
72
+
73
+ ##
74
+ # Provide a user friendly representation
75
+ def to_s
76
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
77
+ "#<Twilio.Numbers.V1.PortingPortInFetchContext #{context}>"
78
+ end
79
+
80
+ ##
81
+ # Provide a detailed, user friendly representation
82
+ def inspect
83
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
84
+ "#<Twilio.Numbers.V1.PortingPortInFetchContext #{context}>"
85
+ end
86
+ end
87
+
88
+ class PortingPortInFetchPage < Page
89
+ ##
90
+ # Initialize the PortingPortInFetchPage
91
+ # @param [Version] version Version that contains the resource
92
+ # @param [Response] response Response from the API
93
+ # @param [Hash] solution Path solution for the resource
94
+ # @return [PortingPortInFetchPage] PortingPortInFetchPage
95
+ def initialize(version, response, solution)
96
+ super(version, response)
97
+
98
+ # Path Solution
99
+ @solution = solution
100
+ end
101
+
102
+ ##
103
+ # Build an instance of PortingPortInFetchInstance
104
+ # @param [Hash] payload Payload response from the API
105
+ # @return [PortingPortInFetchInstance] PortingPortInFetchInstance
106
+ def get_instance(payload)
107
+ PortingPortInFetchInstance.new(@version, payload)
108
+ end
109
+
110
+ ##
111
+ # Provide a user friendly representation
112
+ def to_s
113
+ '<Twilio.Numbers.V1.PortingPortInFetchPage>'
114
+ end
115
+ end
116
+ class PortingPortInFetchInstance < InstanceResource
117
+ ##
118
+ # Initialize the PortingPortInFetchInstance
119
+ # @param [Version] version Version that contains the resource
120
+ # @param [Hash] payload payload that contains response from Twilio
121
+ # @param [String] account_sid The SID of the
122
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this PortingPortInFetch
123
+ # resource.
124
+ # @param [String] sid The SID of the Call resource to fetch.
125
+ # @return [PortingPortInFetchInstance] PortingPortInFetchInstance
126
+ def initialize(version, payload , port_in_request_sid: nil)
127
+ super(version)
128
+
129
+ # Marshaled Properties
130
+ @properties = {
131
+ 'port_in_request_sid' => payload['port_in_request_sid'],
132
+ 'url' => payload['url'],
133
+ 'account_sid' => payload['account_sid'],
134
+ 'notification_emails' => payload['notification_emails'],
135
+ 'target_port_in_date' => Twilio.deserialize_iso8601_date(payload['target_port_in_date']),
136
+ 'target_port_in_time_range_start' => payload['target_port_in_time_range_start'],
137
+ 'target_port_in_time_range_end' => payload['target_port_in_time_range_end'],
138
+ 'losing_carrier_information' => payload['losing_carrier_information'],
139
+ 'phone_numbers' => payload['phone_numbers'],
140
+ 'documents' => payload['documents'],
141
+ }
142
+
143
+ # Context
144
+ @instance_context = nil
145
+ @params = { 'port_in_request_sid' => port_in_request_sid || @properties['port_in_request_sid'] , }
146
+ end
147
+
148
+ ##
149
+ # Generate an instance context for the instance, the context is capable of
150
+ # performing various actions. All instance actions are proxied to the context
151
+ # @return [PortingPortInFetchContext] CallContext for this CallInstance
152
+ def context
153
+ unless @instance_context
154
+ @instance_context = PortingPortInFetchContext.new(@version , @params['port_in_request_sid'])
155
+ end
156
+ @instance_context
157
+ end
158
+
159
+ ##
160
+ # @return [String] The SID of the Port In request. This is a unique identifier of the port in request.
161
+ def port_in_request_sid
162
+ @properties['port_in_request_sid']
163
+ end
164
+
165
+ ##
166
+ # @return [String] The URL of this Port In request
167
+ def url
168
+ @properties['url']
169
+ end
170
+
171
+ ##
172
+ # @return [String] The Account SID that the numbers will be added to after they are ported into Twilio.
173
+ def account_sid
174
+ @properties['account_sid']
175
+ end
176
+
177
+ ##
178
+ # @return [Array<String>] List of emails for getting notifications about the LOA signing process. Allowed Max 10 emails.
179
+ def notification_emails
180
+ @properties['notification_emails']
181
+ end
182
+
183
+ ##
184
+ # @return [Date] Minimum number of days in the future (at least 2 days) needs to be established with the Ops team for validation.
185
+ def target_port_in_date
186
+ @properties['target_port_in_date']
187
+ end
188
+
189
+ ##
190
+ # @return [String] Minimum hour in the future needs to be established with the Ops team for validation.
191
+ def target_port_in_time_range_start
192
+ @properties['target_port_in_time_range_start']
193
+ end
194
+
195
+ ##
196
+ # @return [String] Maximum hour in the future needs to be established with the Ops team for validation.
197
+ def target_port_in_time_range_end
198
+ @properties['target_port_in_time_range_end']
199
+ end
200
+
201
+ ##
202
+ # @return [Hash] The information for the losing carrier.
203
+ def losing_carrier_information
204
+ @properties['losing_carrier_information']
205
+ end
206
+
207
+ ##
208
+ # @return [Array<Hash>] The list of phone numbers to Port in. Phone numbers are in E.164 format (e.g. +16175551212).
209
+ def phone_numbers
210
+ @properties['phone_numbers']
211
+ end
212
+
213
+ ##
214
+ # @return [Array<String>] The list of documents SID referencing a utility bills
215
+ def documents
216
+ @properties['documents']
217
+ end
218
+
219
+ ##
220
+ # Fetch the PortingPortInFetchInstance
221
+ # @return [PortingPortInFetchInstance] Fetched PortingPortInFetchInstance
222
+ def fetch
223
+
224
+ context.fetch
225
+ end
226
+
227
+ ##
228
+ # Provide a user friendly representation
229
+ def to_s
230
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
231
+ "<Twilio.Numbers.V1.PortingPortInFetchInstance #{values}>"
232
+ end
233
+
234
+ ##
235
+ # Provide a detailed, user friendly representation
236
+ def inspect
237
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
238
+ "<Twilio.Numbers.V1.PortingPortInFetchInstance #{values}>"
239
+ end
240
+ end
241
+
242
+ end
243
+ end
244
+ end
245
+ end
@@ -23,6 +23,7 @@ module Twilio
23
23
  @version = 'v1'
24
24
  @bulk_eligibilities = nil
25
25
  @porting_bulk_portabilities = nil
26
+ @porting_port_ins = nil
26
27
  @porting_portabilities = nil
27
28
  end
28
29
 
@@ -55,6 +56,20 @@ module Twilio
55
56
  end
56
57
  end
57
58
  ##
59
+ # @param [String] port_in_request_sid The SID of the Port In request. This is a unique identifier of the port in request.
60
+ # @return [Twilio::REST::Numbers::V1::PortingPortInFetchContext] if portInRequestSid was passed.
61
+ # @return [Twilio::REST::Numbers::V1::PortingPortInFetchList]
62
+ def porting_port_ins(port_in_request_sid=:unset)
63
+ if port_in_request_sid.nil?
64
+ raise ArgumentError, 'port_in_request_sid cannot be nil'
65
+ end
66
+ if port_in_request_sid == :unset
67
+ @porting_port_ins ||= PortingPortInFetchList.new self
68
+ else
69
+ PortingPortInFetchContext.new(self, port_in_request_sid)
70
+ end
71
+ end
72
+ ##
58
73
  # @param [String] phone_number The phone number which portability is to be checked. Phone numbers are in E.164 format (e.g. +16175551212).
59
74
  # @return [Twilio::REST::Numbers::V1::PortingPortabilityContext] if phoneNumber was passed.
60
75
  # @return [Twilio::REST::Numbers::V1::PortingPortabilityList]
@@ -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
@@ -225,6 +225,7 @@ module Twilio
225
225
  # @param [String] supervisor The Supervisor SID/URI when executing the Supervise instruction.
226
226
  # @param [Boolean] end_conference_on_customer_exit Whether to end the conference when the customer leaves.
227
227
  # @param [Boolean] beep_on_customer_entrance Whether to play a notification beep when the customer joins.
228
+ # @param [String] jitter_buffer_size The jitter buffer size for conference. Can be: `small`, `medium`, `large`, `off`.
228
229
  # @param [String] if_match The If-Match HTTP request header
229
230
  # @return [ReservationInstance] Updated ReservationInstance
230
231
  def update(
@@ -281,6 +282,7 @@ module Twilio
281
282
  supervisor: :unset,
282
283
  end_conference_on_customer_exit: :unset,
283
284
  beep_on_customer_entrance: :unset,
285
+ jitter_buffer_size: :unset,
284
286
  if_match: :unset
285
287
  )
286
288
 
@@ -338,6 +340,7 @@ module Twilio
338
340
  'Supervisor' => supervisor,
339
341
  'EndConferenceOnCustomerExit' => end_conference_on_customer_exit,
340
342
  'BeepOnCustomerEntrance' => beep_on_customer_entrance,
343
+ 'JitterBufferSize' => jitter_buffer_size,
341
344
  })
342
345
 
343
346
  headers = Twilio::Values.of({ 'If-Match' => if_match, })
@@ -568,6 +571,7 @@ module Twilio
568
571
  # @param [String] supervisor The Supervisor SID/URI when executing the Supervise instruction.
569
572
  # @param [Boolean] end_conference_on_customer_exit Whether to end the conference when the customer leaves.
570
573
  # @param [Boolean] beep_on_customer_entrance Whether to play a notification beep when the customer joins.
574
+ # @param [String] jitter_buffer_size The jitter buffer size for conference. Can be: `small`, `medium`, `large`, `off`.
571
575
  # @param [String] if_match The If-Match HTTP request header
572
576
  # @return [ReservationInstance] Updated ReservationInstance
573
577
  def update(
@@ -624,6 +628,7 @@ module Twilio
624
628
  supervisor: :unset,
625
629
  end_conference_on_customer_exit: :unset,
626
630
  beep_on_customer_entrance: :unset,
631
+ jitter_buffer_size: :unset,
627
632
  if_match: :unset
628
633
  )
629
634
 
@@ -681,6 +686,7 @@ module Twilio
681
686
  supervisor: supervisor,
682
687
  end_conference_on_customer_exit: end_conference_on_customer_exit,
683
688
  beep_on_customer_entrance: beep_on_customer_entrance,
689
+ jitter_buffer_size: jitter_buffer_size,
684
690
  if_match: if_match,
685
691
  )
686
692
  end
@@ -217,6 +217,7 @@ module Twilio
217
217
  # @param [String] post_work_activity_sid The new worker activity SID after executing a Conference instruction.
218
218
  # @param [Boolean] end_conference_on_customer_exit Whether to end the conference when the customer leaves.
219
219
  # @param [Boolean] beep_on_customer_entrance Whether to play a notification beep when the customer joins.
220
+ # @param [String] jitter_buffer_size The jitter buffer size for conference. Can be: `small`, `medium`, `large`, `off`.
220
221
  # @param [String] if_match The If-Match HTTP request header
221
222
  # @return [ReservationInstance] Updated ReservationInstance
222
223
  def update(
@@ -271,6 +272,7 @@ module Twilio
271
272
  post_work_activity_sid: :unset,
272
273
  end_conference_on_customer_exit: :unset,
273
274
  beep_on_customer_entrance: :unset,
275
+ jitter_buffer_size: :unset,
274
276
  if_match: :unset
275
277
  )
276
278
 
@@ -326,6 +328,7 @@ module Twilio
326
328
  'PostWorkActivitySid' => post_work_activity_sid,
327
329
  'EndConferenceOnCustomerExit' => end_conference_on_customer_exit,
328
330
  'BeepOnCustomerEntrance' => beep_on_customer_entrance,
331
+ 'JitterBufferSize' => jitter_buffer_size,
329
332
  })
330
333
 
331
334
  headers = Twilio::Values.of({ 'If-Match' => if_match, })
@@ -554,6 +557,7 @@ module Twilio
554
557
  # @param [String] post_work_activity_sid The new worker activity SID after executing a Conference instruction.
555
558
  # @param [Boolean] end_conference_on_customer_exit Whether to end the conference when the customer leaves.
556
559
  # @param [Boolean] beep_on_customer_entrance Whether to play a notification beep when the customer joins.
560
+ # @param [String] jitter_buffer_size The jitter buffer size for conference. Can be: `small`, `medium`, `large`, `off`.
557
561
  # @param [String] if_match The If-Match HTTP request header
558
562
  # @return [ReservationInstance] Updated ReservationInstance
559
563
  def update(
@@ -608,6 +612,7 @@ module Twilio
608
612
  post_work_activity_sid: :unset,
609
613
  end_conference_on_customer_exit: :unset,
610
614
  beep_on_customer_entrance: :unset,
615
+ jitter_buffer_size: :unset,
611
616
  if_match: :unset
612
617
  )
613
618
 
@@ -663,6 +668,7 @@ module Twilio
663
668
  post_work_activity_sid: post_work_activity_sid,
664
669
  end_conference_on_customer_exit: end_conference_on_customer_exit,
665
670
  beep_on_customer_entrance: beep_on_customer_entrance,
671
+ jitter_buffer_size: jitter_buffer_size,
666
672
  if_match: if_match,
667
673
  )
668
674
  end
@@ -32,16 +32,73 @@ module Twilio
32
32
  ##
33
33
  # Create the ComplianceTollfreeInquiriesInstance
34
34
  # @param [String] tollfree_phone_number The Tollfree phone number to be verified
35
- # @param [String] notification_email The notification email to be triggered when verification status is changed
35
+ # @param [String] notification_email The email address to receive the notification about the verification result.
36
+ # @param [String] business_name The name of the business or organization using the Tollfree number.
37
+ # @param [String] business_website The website of the business or organization using the Tollfree number.
38
+ # @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many are applicable..
39
+ # @param [String] use_case_summary Use this to further explain how messaging is used by the business or organization.
40
+ # @param [String] production_message_sample An example of message content, i.e. a sample message.
41
+ # @param [Array[String]] opt_in_image_urls Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
42
+ # @param [OptInType] opt_in_type
43
+ # @param [String] message_volume Estimate monthly volume of messages from the Tollfree Number.
44
+ # @param [String] business_street_address The address of the business or organization using the Tollfree number.
45
+ # @param [String] business_street_address2 The address of the business or organization using the Tollfree number.
46
+ # @param [String] business_city The city of the business or organization using the Tollfree number.
47
+ # @param [String] business_state_province_region The state/province/region of the business or organization using the Tollfree number.
48
+ # @param [String] business_postal_code The postal code of the business or organization using the Tollfree number.
49
+ # @param [String] business_country The country of the business or organization using the Tollfree number.
50
+ # @param [String] additional_information Additional information to be provided for verification.
51
+ # @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number.
52
+ # @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
53
+ # @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
54
+ # @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number.
36
55
  # @return [ComplianceTollfreeInquiriesInstance] Created ComplianceTollfreeInquiriesInstance
37
56
  def create(
38
57
  tollfree_phone_number: nil,
39
- notification_email: nil
58
+ notification_email: nil,
59
+ business_name: :unset,
60
+ business_website: :unset,
61
+ use_case_categories: :unset,
62
+ use_case_summary: :unset,
63
+ production_message_sample: :unset,
64
+ opt_in_image_urls: :unset,
65
+ opt_in_type: :unset,
66
+ message_volume: :unset,
67
+ business_street_address: :unset,
68
+ business_street_address2: :unset,
69
+ business_city: :unset,
70
+ business_state_province_region: :unset,
71
+ business_postal_code: :unset,
72
+ business_country: :unset,
73
+ additional_information: :unset,
74
+ business_contact_first_name: :unset,
75
+ business_contact_last_name: :unset,
76
+ business_contact_email: :unset,
77
+ business_contact_phone: :unset
40
78
  )
41
79
 
42
80
  data = Twilio::Values.of({
43
81
  'TollfreePhoneNumber' => tollfree_phone_number,
44
82
  'NotificationEmail' => notification_email,
83
+ 'BusinessName' => business_name,
84
+ 'BusinessWebsite' => business_website,
85
+ 'UseCaseCategories' => Twilio.serialize_list(use_case_categories) { |e| e },
86
+ 'UseCaseSummary' => use_case_summary,
87
+ 'ProductionMessageSample' => production_message_sample,
88
+ 'OptInImageUrls' => Twilio.serialize_list(opt_in_image_urls) { |e| e },
89
+ 'OptInType' => opt_in_type,
90
+ 'MessageVolume' => message_volume,
91
+ 'BusinessStreetAddress' => business_street_address,
92
+ 'BusinessStreetAddress2' => business_street_address2,
93
+ 'BusinessCity' => business_city,
94
+ 'BusinessStateProvinceRegion' => business_state_province_region,
95
+ 'BusinessPostalCode' => business_postal_code,
96
+ 'BusinessCountry' => business_country,
97
+ 'AdditionalInformation' => additional_information,
98
+ 'BusinessContactFirstName' => business_contact_first_name,
99
+ 'BusinessContactLastName' => business_contact_last_name,
100
+ 'BusinessContactEmail' => business_contact_email,
101
+ 'BusinessContactPhone' => business_contact_phone,
45
102
  })
46
103
 
47
104
  payload = @version.create('POST', @uri, data: data)
@@ -48,6 +48,7 @@ module Twilio
48
48
  # @param [String] totp_code_length Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6
49
49
  # @param [String] totp_skew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1
50
50
  # @param [String] default_template_sid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only.
51
+ # @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
51
52
  # @return [ServiceInstance] Created ServiceInstance
52
53
  def create(
53
54
  friendly_name: nil,
@@ -66,7 +67,8 @@ module Twilio
66
67
  totp_time_step: :unset,
67
68
  totp_code_length: :unset,
68
69
  totp_skew: :unset,
69
- default_template_sid: :unset
70
+ default_template_sid: :unset,
71
+ verify_event_subscription_enabled: :unset
70
72
  )
71
73
 
72
74
  data = Twilio::Values.of({
@@ -87,6 +89,7 @@ module Twilio
87
89
  'Totp.CodeLength' => totp_code_length,
88
90
  'Totp.Skew' => totp_skew,
89
91
  'DefaultTemplateSid' => default_template_sid,
92
+ 'VerifyEventSubscriptionEnabled' => verify_event_subscription_enabled,
90
93
  })
91
94
 
92
95
  payload = @version.create('POST', @uri, data: data)
@@ -252,6 +255,7 @@ module Twilio
252
255
  # @param [String] totp_code_length Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6
253
256
  # @param [String] totp_skew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1
254
257
  # @param [String] default_template_sid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only.
258
+ # @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
255
259
  # @return [ServiceInstance] Updated ServiceInstance
256
260
  def update(
257
261
  friendly_name: :unset,
@@ -270,7 +274,8 @@ module Twilio
270
274
  totp_time_step: :unset,
271
275
  totp_code_length: :unset,
272
276
  totp_skew: :unset,
273
- default_template_sid: :unset
277
+ default_template_sid: :unset,
278
+ verify_event_subscription_enabled: :unset
274
279
  )
275
280
 
276
281
  data = Twilio::Values.of({
@@ -291,6 +296,7 @@ module Twilio
291
296
  'Totp.CodeLength' => totp_code_length,
292
297
  'Totp.Skew' => totp_skew,
293
298
  'DefaultTemplateSid' => default_template_sid,
299
+ 'VerifyEventSubscriptionEnabled' => verify_event_subscription_enabled,
294
300
  })
295
301
 
296
302
  payload = @version.update('POST', @uri, data: data)
@@ -499,6 +505,7 @@ module Twilio
499
505
  'push' => payload['push'],
500
506
  'totp' => payload['totp'],
501
507
  'default_template_sid' => payload['default_template_sid'],
508
+ 'verify_event_subscription_enabled' => payload['verify_event_subscription_enabled'],
502
509
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
503
510
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
504
511
  'url' => payload['url'],
@@ -605,6 +612,12 @@ module Twilio
605
612
  @properties['default_template_sid']
606
613
  end
607
614
 
615
+ ##
616
+ # @return [Boolean] Whether to allow verifications from the service to reach the stream-events sinks if configured
617
+ def verify_event_subscription_enabled
618
+ @properties['verify_event_subscription_enabled']
619
+ end
620
+
608
621
  ##
609
622
  # @return [Time] The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
610
623
  def date_created
@@ -664,6 +677,7 @@ module Twilio
664
677
  # @param [String] totp_code_length Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6
665
678
  # @param [String] totp_skew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1
666
679
  # @param [String] default_template_sid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only.
680
+ # @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
667
681
  # @return [ServiceInstance] Updated ServiceInstance
668
682
  def update(
669
683
  friendly_name: :unset,
@@ -682,7 +696,8 @@ module Twilio
682
696
  totp_time_step: :unset,
683
697
  totp_code_length: :unset,
684
698
  totp_skew: :unset,
685
- default_template_sid: :unset
699
+ default_template_sid: :unset,
700
+ verify_event_subscription_enabled: :unset
686
701
  )
687
702
 
688
703
  context.update(
@@ -703,6 +718,7 @@ module Twilio
703
718
  totp_code_length: totp_code_length,
704
719
  totp_skew: totp_skew,
705
720
  default_template_sid: default_template_sid,
721
+ verify_event_subscription_enabled: verify_event_subscription_enabled,
706
722
  )
707
723
  end
708
724
 
@@ -336,7 +336,7 @@ module Twilio
336
336
  end
337
337
 
338
338
  ##
339
- # @return [Hash] An object containing the charge for this verification attempt related to the channel costs and the currency used. The costs related to the succeeded verifications are not included. May not be immediately available. More information on pricing is available [here](https://www.twilio.com/verify/pricing).
339
+ # @return [Hash] An object containing the charge for this verification attempt related to the channel costs and the currency used. The costs related to the succeeded verifications are not included. May not be immediately available. More information on pricing is available [here](https://www.twilio.com/en-us/verify/pricing).
340
340
  def price
341
341
  @properties['price']
342
342
  end
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '6.8.2'
2
+ VERSION = '6.9.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: 6.8.2
4
+ version: 6.9.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: 2023-11-17 00:00:00.000000000 Z
11
+ date: 2023-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -573,6 +573,7 @@ files:
573
573
  - lib/twilio-ruby/rest/numbers/v1.rb
574
574
  - lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb
575
575
  - lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb
576
+ - lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb
576
577
  - lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
577
578
  - lib/twilio-ruby/rest/numbers/v2.rb
578
579
  - lib/twilio-ruby/rest/numbers/v2/authorization_document.rb