twilio-ruby 6.12.1 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/test-and-deploy.yml +5 -5
- data/CHANGES.md +72 -1
- data/README.md +2 -2
- data/UPGRADE.md +11 -0
- data/lib/twilio-ruby/framework/request.rb +8 -1
- data/lib/twilio-ruby/http/http_client.rb +10 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +22 -22
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +22 -22
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +0 -2
- data/lib/twilio-ruby/rest/client.rb +8 -3
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +184 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +11 -13
- data/lib/twilio-ruby/rest/content/v1/content.rb +422 -3
- 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.rb +6 -6
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +6 -6
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +26 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -2
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +6 -0
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -2
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +0 -2
- data/lib/twilio-ruby/rest/insights/v1/room.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/service.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +0 -2
- data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +0 -2
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +17 -6
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +0 -2
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +7 -2
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -2
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -2
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -2
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +0 -2
- data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +16 -3
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +127 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +134 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +7 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1.rb +12 -0
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +16 -3
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +0 -2
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +143 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +181 -0
- data/lib/twilio-ruby/rest/oauth/v1.rb +46 -0
- data/lib/twilio-ruby/rest/{media.rb → oauth.rb} +1 -1
- data/lib/twilio-ruby/rest/{media_base.rb → oauth_base.rb} +6 -6
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +0 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -2
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -2
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -2
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -2
- data/lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb +164 -0
- data/lib/twilio-ruby/rest/preview_messaging/v1/message.rb +235 -0
- data/lib/twilio-ruby/rest/preview_messaging/v1.rb +46 -0
- data/lib/twilio-ruby/rest/preview_messaging.rb +12 -0
- data/lib/twilio-ruby/rest/preview_messaging_base.rb +38 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +0 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +0 -2
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +0 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +163 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -8
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +95 -4
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +9 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +9 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +18 -18
- data/lib/twilio-ruby/rest/trusthub/v1.rb +12 -3
- data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -2
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -2
- data/lib/twilio-ruby/rest/verify/v2/service.rb +25 -0
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +0 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -2
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +16 -9
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -424
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -407
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -255
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -436
- data/lib/twilio-ruby/rest/media/v1.rb +0 -79
|
@@ -33,8 +33,8 @@ module Twilio
|
|
|
33
33
|
##
|
|
34
34
|
# Create the TrustProductsInstance
|
|
35
35
|
# @param [String] friendly_name The string that you assigned to describe the resource.
|
|
36
|
-
# @param [String] email The email address that will receive updates when the
|
|
37
|
-
# @param [String] policy_sid The unique string of a policy that is associated to the
|
|
36
|
+
# @param [String] email The email address that will receive updates when the Trust Product resource changes status.
|
|
37
|
+
# @param [String] policy_sid The unique string of a policy that is associated to the Trust Product resource.
|
|
38
38
|
# @param [String] status_callback The URL we call to inform your application of status changes.
|
|
39
39
|
# @return [TrustProductsInstance] Created TrustProductsInstance
|
|
40
40
|
def create(
|
|
@@ -64,9 +64,9 @@ module Twilio
|
|
|
64
64
|
# Lists TrustProductsInstance records from the API as a list.
|
|
65
65
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
66
66
|
# memory before returning.
|
|
67
|
-
# @param [Status] status The verification status of the
|
|
67
|
+
# @param [Status] status The verification status of the Trust Product resource.
|
|
68
68
|
# @param [String] friendly_name The string that you assigned to describe the resource.
|
|
69
|
-
# @param [String] policy_sid The unique string of a policy that is associated to the
|
|
69
|
+
# @param [String] policy_sid The unique string of a policy that is associated to the Trust Product resource.
|
|
70
70
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
71
71
|
# guarantees to never return more than limit. Default is no limit
|
|
72
72
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -88,9 +88,9 @@ module Twilio
|
|
|
88
88
|
# Streams Instance records from the API as an Enumerable.
|
|
89
89
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
90
90
|
# is reached.
|
|
91
|
-
# @param [Status] status The verification status of the
|
|
91
|
+
# @param [Status] status The verification status of the Trust Product resource.
|
|
92
92
|
# @param [String] friendly_name The string that you assigned to describe the resource.
|
|
93
|
-
# @param [String] policy_sid The unique string of a policy that is associated to the
|
|
93
|
+
# @param [String] policy_sid The unique string of a policy that is associated to the Trust Product resource.
|
|
94
94
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
95
95
|
# guarantees to never return more than limit. Default is no limit
|
|
96
96
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -127,9 +127,9 @@ module Twilio
|
|
|
127
127
|
##
|
|
128
128
|
# Retrieve a single page of TrustProductsInstance records from the API.
|
|
129
129
|
# Request is executed immediately.
|
|
130
|
-
# @param [Status] status The verification status of the
|
|
130
|
+
# @param [Status] status The verification status of the Trust Product resource.
|
|
131
131
|
# @param [String] friendly_name The string that you assigned to describe the resource.
|
|
132
|
-
# @param [String] policy_sid The unique string of a policy that is associated to the
|
|
132
|
+
# @param [String] policy_sid The unique string of a policy that is associated to the Trust Product resource.
|
|
133
133
|
# @param [String] page_token PageToken provided by the API
|
|
134
134
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
135
135
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -175,7 +175,7 @@ module Twilio
|
|
|
175
175
|
##
|
|
176
176
|
# Initialize the TrustProductsContext
|
|
177
177
|
# @param [Version] version Version that contains the resource
|
|
178
|
-
# @param [String] sid The unique string that we created to identify the
|
|
178
|
+
# @param [String] sid The unique string that we created to identify the Trust Product resource.
|
|
179
179
|
# @return [TrustProductsContext] TrustProductsContext
|
|
180
180
|
def initialize(version, sid)
|
|
181
181
|
super(version)
|
|
@@ -217,7 +217,7 @@ module Twilio
|
|
|
217
217
|
# @param [Status] status
|
|
218
218
|
# @param [String] status_callback The URL we call to inform your application of status changes.
|
|
219
219
|
# @param [String] friendly_name The string that you assigned to describe the resource.
|
|
220
|
-
# @param [String] email The email address that will receive updates when the
|
|
220
|
+
# @param [String] email The email address that will receive updates when the Trust Product resource changes status.
|
|
221
221
|
# @return [TrustProductsInstance] Updated TrustProductsInstance
|
|
222
222
|
def update(
|
|
223
223
|
status: :unset,
|
|
@@ -389,19 +389,19 @@ module Twilio
|
|
|
389
389
|
end
|
|
390
390
|
|
|
391
391
|
##
|
|
392
|
-
# @return [String] The unique string that we created to identify the
|
|
392
|
+
# @return [String] The unique string that we created to identify the Trust Product resource.
|
|
393
393
|
def sid
|
|
394
394
|
@properties['sid']
|
|
395
395
|
end
|
|
396
396
|
|
|
397
397
|
##
|
|
398
|
-
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
|
398
|
+
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Trust Product resource.
|
|
399
399
|
def account_sid
|
|
400
400
|
@properties['account_sid']
|
|
401
401
|
end
|
|
402
402
|
|
|
403
403
|
##
|
|
404
|
-
# @return [String] The unique string of
|
|
404
|
+
# @return [String] The unique string of the policy that is associated with the Trust Product resource.
|
|
405
405
|
def policy_sid
|
|
406
406
|
@properties['policy_sid']
|
|
407
407
|
end
|
|
@@ -419,13 +419,13 @@ module Twilio
|
|
|
419
419
|
end
|
|
420
420
|
|
|
421
421
|
##
|
|
422
|
-
# @return [Time] The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format
|
|
422
|
+
# @return [Time] The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format until which the resource will be valid.
|
|
423
423
|
def valid_until
|
|
424
424
|
@properties['valid_until']
|
|
425
425
|
end
|
|
426
426
|
|
|
427
427
|
##
|
|
428
|
-
# @return [String] The email address that will receive updates when the
|
|
428
|
+
# @return [String] The email address that will receive updates when the Trust Product resource changes status.
|
|
429
429
|
def email
|
|
430
430
|
@properties['email']
|
|
431
431
|
end
|
|
@@ -449,13 +449,13 @@ module Twilio
|
|
|
449
449
|
end
|
|
450
450
|
|
|
451
451
|
##
|
|
452
|
-
# @return [String] The absolute URL of the
|
|
452
|
+
# @return [String] The absolute URL of the Trust Product resource.
|
|
453
453
|
def url
|
|
454
454
|
@properties['url']
|
|
455
455
|
end
|
|
456
456
|
|
|
457
457
|
##
|
|
458
|
-
# @return [Hash] The URLs of the Assigned Items of the
|
|
458
|
+
# @return [Hash] The URLs of the Assigned Items of the Trust Product resource.
|
|
459
459
|
def links
|
|
460
460
|
@properties['links']
|
|
461
461
|
end
|
|
@@ -481,7 +481,7 @@ module Twilio
|
|
|
481
481
|
# @param [Status] status
|
|
482
482
|
# @param [String] status_callback The URL we call to inform your application of status changes.
|
|
483
483
|
# @param [String] friendly_name The string that you assigned to describe the resource.
|
|
484
|
-
# @param [String] email The email address that will receive updates when the
|
|
484
|
+
# @param [String] email The email address that will receive updates when the Trust Product resource changes status.
|
|
485
485
|
# @return [TrustProductsInstance] Updated TrustProductsInstance
|
|
486
486
|
def update(
|
|
487
487
|
status: :unset,
|
|
@@ -48,9 +48,18 @@ module Twilio
|
|
|
48
48
|
end
|
|
49
49
|
end
|
|
50
50
|
##
|
|
51
|
+
# @param [String] registration_id The unique RegistrationId matching the Regulatory Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Regulatory Compliance Inquiry creation call.
|
|
52
|
+
# @return [Twilio::REST::Trusthub::V1::ComplianceRegistrationInquiriesContext] if registrationId was passed.
|
|
51
53
|
# @return [Twilio::REST::Trusthub::V1::ComplianceRegistrationInquiriesList]
|
|
52
|
-
def compliance_registration_inquiries
|
|
53
|
-
|
|
54
|
+
def compliance_registration_inquiries(registration_id=:unset)
|
|
55
|
+
if registration_id.nil?
|
|
56
|
+
raise ArgumentError, 'registration_id cannot be nil'
|
|
57
|
+
end
|
|
58
|
+
if registration_id == :unset
|
|
59
|
+
@compliance_registration_inquiries ||= ComplianceRegistrationInquiriesList.new self
|
|
60
|
+
else
|
|
61
|
+
ComplianceRegistrationInquiriesContext.new(self, registration_id)
|
|
62
|
+
end
|
|
54
63
|
end
|
|
55
64
|
##
|
|
56
65
|
# @return [Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesList]
|
|
@@ -142,7 +151,7 @@ module Twilio
|
|
|
142
151
|
end
|
|
143
152
|
end
|
|
144
153
|
##
|
|
145
|
-
# @param [String] sid The unique string that we created to identify the
|
|
154
|
+
# @param [String] sid The unique string that we created to identify the Trust Product resource.
|
|
146
155
|
# @return [Twilio::REST::Trusthub::V1::TrustProductsContext] if sid was passed.
|
|
147
156
|
# @return [Twilio::REST::Trusthub::V1::TrustProductsList]
|
|
148
157
|
def trust_products(sid=:unset)
|
|
@@ -49,6 +49,8 @@ module Twilio
|
|
|
49
49
|
# @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
|
|
50
50
|
# @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
|
|
51
51
|
# @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.
|
|
52
|
+
# @param [String] whatsapp_msg_service_sid The SID of the Messaging Service containing WhatsApp Sender(s) that Verify will use to send WhatsApp messages to your users.
|
|
53
|
+
# @param [String] whatsapp_from The number to use as the WhatsApp Sender that Verify will use to send WhatsApp messages to your users.This WhatsApp Sender must be associated with a Messaging Service SID.
|
|
52
54
|
# @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
|
|
53
55
|
# @return [ServiceInstance] Created ServiceInstance
|
|
54
56
|
def create(
|
|
@@ -69,6 +71,8 @@ module Twilio
|
|
|
69
71
|
totp_code_length: :unset,
|
|
70
72
|
totp_skew: :unset,
|
|
71
73
|
default_template_sid: :unset,
|
|
74
|
+
whatsapp_msg_service_sid: :unset,
|
|
75
|
+
whatsapp_from: :unset,
|
|
72
76
|
verify_event_subscription_enabled: :unset
|
|
73
77
|
)
|
|
74
78
|
|
|
@@ -90,6 +94,8 @@ module Twilio
|
|
|
90
94
|
'Totp.CodeLength' => totp_code_length,
|
|
91
95
|
'Totp.Skew' => totp_skew,
|
|
92
96
|
'DefaultTemplateSid' => default_template_sid,
|
|
97
|
+
'Whatsapp.MsgServiceSid' => whatsapp_msg_service_sid,
|
|
98
|
+
'Whatsapp.From' => whatsapp_from,
|
|
93
99
|
'VerifyEventSubscriptionEnabled' => verify_event_subscription_enabled,
|
|
94
100
|
})
|
|
95
101
|
|
|
@@ -259,6 +265,8 @@ module Twilio
|
|
|
259
265
|
# @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
|
|
260
266
|
# @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
|
|
261
267
|
# @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.
|
|
268
|
+
# @param [String] whatsapp_msg_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) to associate with the Verification Service.
|
|
269
|
+
# @param [String] whatsapp_from The WhatsApp number to use as the sender of the verification messages. This number must be associated with the WhatsApp Message Service.
|
|
262
270
|
# @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
|
|
263
271
|
# @return [ServiceInstance] Updated ServiceInstance
|
|
264
272
|
def update(
|
|
@@ -279,6 +287,8 @@ module Twilio
|
|
|
279
287
|
totp_code_length: :unset,
|
|
280
288
|
totp_skew: :unset,
|
|
281
289
|
default_template_sid: :unset,
|
|
290
|
+
whatsapp_msg_service_sid: :unset,
|
|
291
|
+
whatsapp_from: :unset,
|
|
282
292
|
verify_event_subscription_enabled: :unset
|
|
283
293
|
)
|
|
284
294
|
|
|
@@ -300,6 +310,8 @@ module Twilio
|
|
|
300
310
|
'Totp.CodeLength' => totp_code_length,
|
|
301
311
|
'Totp.Skew' => totp_skew,
|
|
302
312
|
'DefaultTemplateSid' => default_template_sid,
|
|
313
|
+
'Whatsapp.MsgServiceSid' => whatsapp_msg_service_sid,
|
|
314
|
+
'Whatsapp.From' => whatsapp_from,
|
|
303
315
|
'VerifyEventSubscriptionEnabled' => verify_event_subscription_enabled,
|
|
304
316
|
})
|
|
305
317
|
|
|
@@ -510,6 +522,7 @@ module Twilio
|
|
|
510
522
|
'push' => payload['push'],
|
|
511
523
|
'totp' => payload['totp'],
|
|
512
524
|
'default_template_sid' => payload['default_template_sid'],
|
|
525
|
+
'whatsapp' => payload['whatsapp'],
|
|
513
526
|
'verify_event_subscription_enabled' => payload['verify_event_subscription_enabled'],
|
|
514
527
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
515
528
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
|
@@ -617,6 +630,12 @@ module Twilio
|
|
|
617
630
|
@properties['default_template_sid']
|
|
618
631
|
end
|
|
619
632
|
|
|
633
|
+
##
|
|
634
|
+
# @return [Hash]
|
|
635
|
+
def whatsapp
|
|
636
|
+
@properties['whatsapp']
|
|
637
|
+
end
|
|
638
|
+
|
|
620
639
|
##
|
|
621
640
|
# @return [Boolean] Whether to allow verifications from the service to reach the stream-events sinks if configured
|
|
622
641
|
def verify_event_subscription_enabled
|
|
@@ -682,6 +701,8 @@ module Twilio
|
|
|
682
701
|
# @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
|
|
683
702
|
# @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
|
|
684
703
|
# @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.
|
|
704
|
+
# @param [String] whatsapp_msg_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) to associate with the Verification Service.
|
|
705
|
+
# @param [String] whatsapp_from The WhatsApp number to use as the sender of the verification messages. This number must be associated with the WhatsApp Message Service.
|
|
685
706
|
# @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
|
|
686
707
|
# @return [ServiceInstance] Updated ServiceInstance
|
|
687
708
|
def update(
|
|
@@ -702,6 +723,8 @@ module Twilio
|
|
|
702
723
|
totp_code_length: :unset,
|
|
703
724
|
totp_skew: :unset,
|
|
704
725
|
default_template_sid: :unset,
|
|
726
|
+
whatsapp_msg_service_sid: :unset,
|
|
727
|
+
whatsapp_from: :unset,
|
|
705
728
|
verify_event_subscription_enabled: :unset
|
|
706
729
|
)
|
|
707
730
|
|
|
@@ -723,6 +746,8 @@ module Twilio
|
|
|
723
746
|
totp_code_length: totp_code_length,
|
|
724
747
|
totp_skew: totp_skew,
|
|
725
748
|
default_template_sid: default_template_sid,
|
|
749
|
+
whatsapp_msg_service_sid: whatsapp_msg_service_sid,
|
|
750
|
+
whatsapp_from: whatsapp_from,
|
|
726
751
|
verify_event_subscription_enabled: verify_event_subscription_enabled,
|
|
727
752
|
)
|
|
728
753
|
end
|
|
@@ -162,8 +162,6 @@ module Twilio
|
|
|
162
162
|
end
|
|
163
163
|
|
|
164
164
|
|
|
165
|
-
##
|
|
166
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
167
165
|
class CountryContext < InstanceContext
|
|
168
166
|
##
|
|
169
167
|
# Initialize the CountryContext
|
|
@@ -42,8 +42,6 @@ module Twilio
|
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
##
|
|
46
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
47
45
|
class SettingsContext < InstanceContext
|
|
48
46
|
##
|
|
49
47
|
# Initialize the SettingsContext
|
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:
|
|
4
|
+
version: 7.0.1
|
|
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: 2024-
|
|
11
|
+
date: 2024-04-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jwt
|
|
@@ -371,6 +371,7 @@ files:
|
|
|
371
371
|
- lib/twilio-ruby/rest/content.rb
|
|
372
372
|
- lib/twilio-ruby/rest/content/v1.rb
|
|
373
373
|
- lib/twilio-ruby/rest/content/v1/content.rb
|
|
374
|
+
- lib/twilio-ruby/rest/content/v1/content/approval_create.rb
|
|
374
375
|
- lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb
|
|
375
376
|
- lib/twilio-ruby/rest/content/v1/content_and_approvals.rb
|
|
376
377
|
- lib/twilio-ruby/rest/content/v1/legacy_content.rb
|
|
@@ -506,13 +507,6 @@ files:
|
|
|
506
507
|
- lib/twilio-ruby/rest/lookups/v2.rb
|
|
507
508
|
- lib/twilio-ruby/rest/lookups/v2/phone_number.rb
|
|
508
509
|
- lib/twilio-ruby/rest/lookups_base.rb
|
|
509
|
-
- lib/twilio-ruby/rest/media.rb
|
|
510
|
-
- lib/twilio-ruby/rest/media/v1.rb
|
|
511
|
-
- lib/twilio-ruby/rest/media/v1/media_processor.rb
|
|
512
|
-
- lib/twilio-ruby/rest/media/v1/media_recording.rb
|
|
513
|
-
- lib/twilio-ruby/rest/media/v1/player_streamer.rb
|
|
514
|
-
- lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb
|
|
515
|
-
- lib/twilio-ruby/rest/media_base.rb
|
|
516
510
|
- lib/twilio-ruby/rest/messaging.rb
|
|
517
511
|
- lib/twilio-ruby/rest/messaging/v1.rb
|
|
518
512
|
- lib/twilio-ruby/rest/messaging/v1/brand_registration.rb
|
|
@@ -560,7 +554,9 @@ files:
|
|
|
560
554
|
- lib/twilio-ruby/rest/numbers.rb
|
|
561
555
|
- lib/twilio-ruby/rest/numbers/v1.rb
|
|
562
556
|
- lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb
|
|
557
|
+
- lib/twilio-ruby/rest/numbers/v1/eligibility.rb
|
|
563
558
|
- lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb
|
|
559
|
+
- lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb
|
|
564
560
|
- lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb
|
|
565
561
|
- lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
|
|
566
562
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
|
@@ -580,6 +576,11 @@ files:
|
|
|
580
576
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb
|
|
581
577
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb
|
|
582
578
|
- lib/twilio-ruby/rest/numbers_base.rb
|
|
579
|
+
- lib/twilio-ruby/rest/oauth.rb
|
|
580
|
+
- lib/twilio-ruby/rest/oauth/v1.rb
|
|
581
|
+
- lib/twilio-ruby/rest/oauth/v1/authorize.rb
|
|
582
|
+
- lib/twilio-ruby/rest/oauth/v1/token.rb
|
|
583
|
+
- lib/twilio-ruby/rest/oauth_base.rb
|
|
583
584
|
- lib/twilio-ruby/rest/preview.rb
|
|
584
585
|
- lib/twilio-ruby/rest/preview/deployed_devices.rb
|
|
585
586
|
- lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb
|
|
@@ -612,6 +613,11 @@ files:
|
|
|
612
613
|
- lib/twilio-ruby/rest/preview/wireless/sim.rb
|
|
613
614
|
- lib/twilio-ruby/rest/preview/wireless/sim/usage.rb
|
|
614
615
|
- lib/twilio-ruby/rest/preview_base.rb
|
|
616
|
+
- lib/twilio-ruby/rest/preview_messaging.rb
|
|
617
|
+
- lib/twilio-ruby/rest/preview_messaging/v1.rb
|
|
618
|
+
- lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb
|
|
619
|
+
- lib/twilio-ruby/rest/preview_messaging/v1/message.rb
|
|
620
|
+
- lib/twilio-ruby/rest/preview_messaging_base.rb
|
|
615
621
|
- lib/twilio-ruby/rest/pricing.rb
|
|
616
622
|
- lib/twilio-ruby/rest/pricing/v1.rb
|
|
617
623
|
- lib/twilio-ruby/rest/pricing/v1/messaging.rb
|
|
@@ -718,6 +724,7 @@ files:
|
|
|
718
724
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb
|
|
719
725
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb
|
|
720
726
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb
|
|
727
|
+
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb
|
|
721
728
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb
|
|
722
729
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb
|
|
723
730
|
- lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb
|