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.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test-and-deploy.yml +5 -5
  3. data/CHANGES.md +72 -1
  4. data/README.md +2 -2
  5. data/UPGRADE.md +11 -0
  6. data/lib/twilio-ruby/framework/request.rb +8 -1
  7. data/lib/twilio-ruby/http/http_client.rb +10 -3
  8. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -2
  9. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +22 -22
  10. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +7 -0
  11. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +22 -22
  12. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -2
  13. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +0 -2
  14. data/lib/twilio-ruby/rest/client.rb +8 -3
  15. data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +184 -0
  16. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +11 -13
  17. data/lib/twilio-ruby/rest/content/v1/content.rb +422 -3
  18. data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -1
  19. data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -1
  20. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +6 -6
  21. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +6 -6
  22. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +0 -2
  23. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +26 -0
  24. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +0 -2
  25. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +0 -2
  26. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +0 -2
  27. data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -2
  28. data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -2
  29. data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +6 -0
  30. data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -2
  31. data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -2
  32. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -2
  33. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +0 -2
  34. data/lib/twilio-ruby/rest/insights/v1/room.rb +0 -2
  35. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +0 -2
  36. data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -2
  37. data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +0 -2
  38. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +0 -2
  39. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +17 -6
  40. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +0 -2
  41. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -2
  42. data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -2
  43. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -2
  44. data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -2
  45. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -2
  46. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -2
  47. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -2
  48. data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +0 -2
  49. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -2
  50. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -2
  51. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +0 -2
  52. data/lib/twilio-ruby/rest/messaging/v1/service.rb +7 -2
  53. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +0 -2
  54. data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -2
  55. data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -2
  56. data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -2
  57. data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -2
  58. data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -2
  59. data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -2
  60. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -2
  61. data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -2
  62. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +0 -2
  63. data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -2
  64. data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +16 -3
  65. data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +127 -0
  66. data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -2
  67. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +134 -0
  68. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +7 -2
  69. data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -2
  70. data/lib/twilio-ruby/rest/numbers/v1.rb +12 -0
  71. data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +0 -2
  72. data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +16 -3
  73. data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +0 -2
  74. data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +143 -0
  75. data/lib/twilio-ruby/rest/oauth/v1/token.rb +181 -0
  76. data/lib/twilio-ruby/rest/oauth/v1.rb +46 -0
  77. data/lib/twilio-ruby/rest/{media.rb → oauth.rb} +1 -1
  78. data/lib/twilio-ruby/rest/{media_base.rb → oauth_base.rb} +6 -6
  79. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -2
  80. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -2
  81. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -2
  82. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -2
  83. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -2
  84. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +0 -2
  85. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +0 -2
  86. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -2
  87. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -2
  88. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -2
  89. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -2
  90. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -2
  91. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -2
  92. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -2
  93. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -2
  94. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -2
  95. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -2
  96. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -2
  97. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -2
  98. data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -2
  99. data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -2
  100. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -2
  101. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -2
  102. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -2
  103. data/lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb +164 -0
  104. data/lib/twilio-ruby/rest/preview_messaging/v1/message.rb +235 -0
  105. data/lib/twilio-ruby/rest/preview_messaging/v1.rb +46 -0
  106. data/lib/twilio-ruby/rest/preview_messaging.rb +12 -0
  107. data/lib/twilio-ruby/rest/preview_messaging_base.rb +38 -0
  108. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +0 -2
  109. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +0 -2
  110. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +0 -2
  111. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +0 -2
  112. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +0 -2
  113. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -2
  114. data/lib/twilio-ruby/rest/proxy/v1/service.rb +0 -2
  115. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +0 -2
  116. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +0 -2
  117. data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -2
  118. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +0 -2
  119. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +0 -2
  120. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +0 -2
  121. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +0 -2
  122. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +0 -2
  123. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -2
  124. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +0 -2
  125. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +0 -2
  126. data/lib/twilio-ruby/rest/serverless/v1/service.rb +0 -2
  127. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +0 -2
  128. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +0 -2
  129. data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +0 -2
  130. data/lib/twilio-ruby/rest/supersim/v1/network.rb +0 -2
  131. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +0 -2
  132. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +0 -2
  133. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +0 -2
  134. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +0 -2
  135. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +163 -0
  136. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -8
  137. data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +95 -4
  138. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +9 -3
  139. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +9 -3
  140. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +18 -18
  141. data/lib/twilio-ruby/rest/trusthub/v1.rb +12 -3
  142. data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -2
  143. data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -2
  144. data/lib/twilio-ruby/rest/verify/v2/service.rb +25 -0
  145. data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -2
  146. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +0 -2
  147. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -2
  148. data/lib/twilio-ruby/version.rb +1 -1
  149. metadata +16 -9
  150. data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -424
  151. data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -407
  152. data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -255
  153. data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -436
  154. 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 Customer-Profile resource changes status.
37
- # @param [String] policy_sid The unique string of a policy that is associated to the Customer-Profile resource.
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 Customer-Profile resource.
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 Customer-Profile resource.
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 Customer-Profile resource.
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 Customer-Profile resource.
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 Customer-Profile resource.
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 Customer-Profile resource.
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 Customer-Profile resource.
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 Customer-Profile resource changes status.
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 Customer-Profile resource.
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 Customer-Profile resource.
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 a policy that is associated to the Customer-Profile resource.
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 when the resource will be valid until.
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 Customer-Profile resource changes status.
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 Customer-Profile resource.
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 Customer-Profile resource.
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 Customer-Profile resource changes status.
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
- @compliance_registration_inquiries ||= ComplianceRegistrationInquiriesList.new self
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 Customer-Profile resource.
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)
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class FormContext < InstanceContext
46
44
  ##
47
45
  # Initialize the FormContext
@@ -60,8 +60,6 @@ module Twilio
60
60
  end
61
61
 
62
62
 
63
- ##
64
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
65
63
  class SafelistContext < InstanceContext
66
64
  ##
67
65
  # Initialize the SafelistContext
@@ -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
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class ArchivedCallContext < InstanceContext
46
44
  ##
47
45
  # Initialize the ArchivedCallContext
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '6.12.1'
2
+ VERSION = '7.0.1'
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.12.1
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-03-12 00:00:00.000000000 Z
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