twilio-ruby 6.8.2 → 6.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +6 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +4 -4
- data/lib/twilio-ruby/rest/content/v1/content.rb +1 -1
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -1
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +2 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +2 -2
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +1 -1
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
- data/lib/twilio-ruby/rest/notify/v1/service.rb +4 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +4 -4
- data/lib/twilio-ruby/rest/verify/v2/service.rb +19 -3
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93f72d289553ee06f2eeed03379838f0f7bf0aaf
|
4
|
+
data.tar.gz: b1e45d1f753beb689ca6c7ca49ad10679e29fac5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 590d26035fb79b388d13488a9c6afedbb0c6150e455a89b94e8ac66a096bcf39bdcdb9a72c07430f0471f61e80b2c6b0143b54c316d47935a115652a19caa264
|
7
|
+
data.tar.gz: e48cea4a7378ef1e6d491ebd0ade12778db8ee494ea5751f135f67b35134f015a2519fe53f8bb77c2fd4624e61c232dd52d96ac3636ac7d7095068eaddc678ce
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,12 @@
|
|
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
|
+
|
4
10
|
[2023-11-17] Version 6.8.2
|
5
11
|
--------------------------
|
6
12
|
**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.
|
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.
|
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/
|
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/
|
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/
|
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/
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
@@ -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
|
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
|
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
|
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
|
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
|
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/
|
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/
|
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/
|
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/
|
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/
|
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/
|
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/
|
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/
|
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/
|
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/
|
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
|
@@ -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
|
data/lib/twilio-ruby/version.rb
CHANGED
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.
|
4
|
+
version: 6.8.3
|
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
|
+
date: 2023-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|