twilio-ruby 6.12.1 → 7.0.0

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 (151) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test-and-deploy.yml +5 -5
  3. data/CHANGES.md +47 -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/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -2
  12. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +0 -2
  13. data/lib/twilio-ruby/rest/client.rb +8 -3
  14. data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +184 -0
  15. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +11 -13
  16. data/lib/twilio-ruby/rest/content/v1/content.rb +422 -3
  17. data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -1
  18. data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -1
  19. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +6 -6
  20. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +0 -2
  21. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +26 -0
  22. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +0 -2
  23. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +0 -2
  24. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +0 -2
  25. data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -2
  26. data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -2
  27. data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +6 -0
  28. data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -2
  29. data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -2
  30. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -2
  31. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +0 -2
  32. data/lib/twilio-ruby/rest/insights/v1/room.rb +0 -2
  33. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +0 -2
  34. data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -2
  35. data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +0 -2
  36. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +0 -2
  37. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +0 -2
  38. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +0 -2
  39. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -2
  40. data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -2
  41. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -2
  42. data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -2
  43. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -2
  44. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -2
  45. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -2
  46. data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +0 -2
  47. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -2
  48. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -2
  49. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +0 -2
  50. data/lib/twilio-ruby/rest/messaging/v1/service.rb +0 -2
  51. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +0 -2
  52. data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -2
  53. data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -2
  54. data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -2
  55. data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -2
  56. data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -2
  57. data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -2
  58. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -2
  59. data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -2
  60. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +0 -2
  61. data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -2
  62. data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +16 -3
  63. data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +127 -0
  64. data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -2
  65. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +134 -0
  66. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +7 -2
  67. data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -2
  68. data/lib/twilio-ruby/rest/numbers/v1.rb +12 -0
  69. data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +0 -2
  70. data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +16 -3
  71. data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +0 -2
  72. data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +143 -0
  73. data/lib/twilio-ruby/rest/oauth/v1/token.rb +181 -0
  74. data/lib/twilio-ruby/rest/oauth/v1.rb +46 -0
  75. data/lib/twilio-ruby/rest/{media.rb → oauth.rb} +1 -1
  76. data/lib/twilio-ruby/rest/{media_base.rb → oauth_base.rb} +6 -6
  77. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -2
  78. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -2
  79. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -2
  80. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -2
  81. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -2
  82. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +0 -2
  83. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +0 -2
  84. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -2
  85. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -2
  86. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -2
  87. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -2
  88. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -2
  89. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -2
  90. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -2
  91. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -2
  92. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -2
  93. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -2
  94. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -2
  95. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -2
  96. data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -2
  97. data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -2
  98. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -2
  99. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -2
  100. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -2
  101. data/lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb +164 -0
  102. data/lib/twilio-ruby/rest/preview_messaging/v1/message.rb +235 -0
  103. data/lib/twilio-ruby/rest/preview_messaging/v1.rb +46 -0
  104. data/lib/twilio-ruby/rest/preview_messaging.rb +12 -0
  105. data/lib/twilio-ruby/rest/preview_messaging_base.rb +38 -0
  106. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +0 -2
  107. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +0 -2
  108. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +0 -2
  109. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +0 -2
  110. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +0 -2
  111. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -2
  112. data/lib/twilio-ruby/rest/proxy/v1/service.rb +0 -2
  113. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +0 -2
  114. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +0 -2
  115. data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -2
  116. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +0 -2
  117. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +0 -2
  118. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +0 -2
  119. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +0 -2
  120. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +0 -2
  121. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -2
  122. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +0 -2
  123. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +0 -2
  124. data/lib/twilio-ruby/rest/serverless/v1/service.rb +0 -2
  125. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +0 -2
  126. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +0 -2
  127. data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +0 -2
  128. data/lib/twilio-ruby/rest/supersim/v1/network.rb +0 -2
  129. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +0 -2
  130. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +0 -2
  131. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +0 -2
  132. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +0 -2
  133. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +163 -0
  134. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -8
  135. data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +95 -4
  136. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +9 -3
  137. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +9 -3
  138. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +18 -18
  139. data/lib/twilio-ruby/rest/trusthub/v1.rb +12 -3
  140. data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -2
  141. data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -2
  142. data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -2
  143. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +0 -2
  144. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -2
  145. data/lib/twilio-ruby/version.rb +1 -1
  146. metadata +16 -9
  147. data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -424
  148. data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -407
  149. data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -255
  150. data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -436
  151. data/lib/twilio-ruby/rest/media/v1.rb +0 -79
@@ -58,6 +58,7 @@ module Twilio
58
58
  # Lists CustomerProfilesEntityAssignmentsInstance records from the API as a list.
59
59
  # Unlike stream(), this operation is eager and will load `limit` records into
60
60
  # memory before returning.
61
+ # @param [String] object_type A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document.
61
62
  # @param [Integer] limit Upper limit for the number of records to return. stream()
62
63
  # guarantees to never return more than limit. Default is no limit
63
64
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -65,8 +66,9 @@ module Twilio
65
66
  # but a limit is defined, stream() will attempt to read the limit with the most
66
67
  # efficient page size, i.e. min(limit, 1000)
67
68
  # @return [Array] Array of up to limit results
68
- def list(limit: nil, page_size: nil)
69
+ def list(object_type: :unset, limit: nil, page_size: nil)
69
70
  self.stream(
71
+ object_type: object_type,
70
72
  limit: limit,
71
73
  page_size: page_size
72
74
  ).entries
@@ -76,6 +78,7 @@ module Twilio
76
78
  # Streams Instance records from the API as an Enumerable.
77
79
  # This operation lazily loads records as efficiently as possible until the limit
78
80
  # is reached.
81
+ # @param [String] object_type A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document.
79
82
  # @param [Integer] limit Upper limit for the number of records to return. stream()
80
83
  # guarantees to never return more than limit. Default is no limit
81
84
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -83,10 +86,11 @@ module Twilio
83
86
  # but a limit is defined, stream() will attempt to read the limit with the most
84
87
  # efficient page size, i.e. min(limit, 1000)
85
88
  # @return [Enumerable] Enumerable that will yield up to limit results
86
- def stream(limit: nil, page_size: nil)
89
+ def stream(object_type: :unset, limit: nil, page_size: nil)
87
90
  limits = @version.read_limits(limit, page_size)
88
91
 
89
92
  page = self.page(
93
+ object_type: object_type,
90
94
  page_size: limits[:page_size], )
91
95
 
92
96
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
@@ -109,12 +113,14 @@ module Twilio
109
113
  ##
110
114
  # Retrieve a single page of CustomerProfilesEntityAssignmentsInstance records from the API.
111
115
  # Request is executed immediately.
116
+ # @param [String] object_type A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document.
112
117
  # @param [String] page_token PageToken provided by the API
113
118
  # @param [Integer] page_number Page Number, this value is simply for client state
114
119
  # @param [Integer] page_size Number of records to return, defaults to 50
115
120
  # @return [Page] Page of CustomerProfilesEntityAssignmentsInstance
116
- def page(page_token: :unset, page_number: :unset, page_size: :unset)
121
+ def page(object_type: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
117
122
  params = Twilio::Values.of({
123
+ 'ObjectType' => object_type,
118
124
  'PageToken' => page_token,
119
125
  'Page' => page_number,
120
126
  'PageSize' => page_size,
@@ -58,6 +58,7 @@ module Twilio
58
58
  # Lists TrustProductsEntityAssignmentsInstance records from the API as a list.
59
59
  # Unlike stream(), this operation is eager and will load `limit` records into
60
60
  # memory before returning.
61
+ # @param [String] object_type A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document.
61
62
  # @param [Integer] limit Upper limit for the number of records to return. stream()
62
63
  # guarantees to never return more than limit. Default is no limit
63
64
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -65,8 +66,9 @@ module Twilio
65
66
  # but a limit is defined, stream() will attempt to read the limit with the most
66
67
  # efficient page size, i.e. min(limit, 1000)
67
68
  # @return [Array] Array of up to limit results
68
- def list(limit: nil, page_size: nil)
69
+ def list(object_type: :unset, limit: nil, page_size: nil)
69
70
  self.stream(
71
+ object_type: object_type,
70
72
  limit: limit,
71
73
  page_size: page_size
72
74
  ).entries
@@ -76,6 +78,7 @@ module Twilio
76
78
  # Streams Instance records from the API as an Enumerable.
77
79
  # This operation lazily loads records as efficiently as possible until the limit
78
80
  # is reached.
81
+ # @param [String] object_type A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document.
79
82
  # @param [Integer] limit Upper limit for the number of records to return. stream()
80
83
  # guarantees to never return more than limit. Default is no limit
81
84
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -83,10 +86,11 @@ module Twilio
83
86
  # but a limit is defined, stream() will attempt to read the limit with the most
84
87
  # efficient page size, i.e. min(limit, 1000)
85
88
  # @return [Enumerable] Enumerable that will yield up to limit results
86
- def stream(limit: nil, page_size: nil)
89
+ def stream(object_type: :unset, limit: nil, page_size: nil)
87
90
  limits = @version.read_limits(limit, page_size)
88
91
 
89
92
  page = self.page(
93
+ object_type: object_type,
90
94
  page_size: limits[:page_size], )
91
95
 
92
96
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
@@ -109,12 +113,14 @@ module Twilio
109
113
  ##
110
114
  # Retrieve a single page of TrustProductsEntityAssignmentsInstance records from the API.
111
115
  # Request is executed immediately.
116
+ # @param [String] object_type A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document.
112
117
  # @param [String] page_token PageToken provided by the API
113
118
  # @param [Integer] page_number Page Number, this value is simply for client state
114
119
  # @param [Integer] page_size Number of records to return, defaults to 50
115
120
  # @return [Page] Page of TrustProductsEntityAssignmentsInstance
116
- def page(page_token: :unset, page_number: :unset, page_size: :unset)
121
+ def page(object_type: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
117
122
  params = Twilio::Values.of({
123
+ 'ObjectType' => object_type,
118
124
  'PageToken' => page_token,
119
125
  'Page' => page_number,
120
126
  'PageSize' => page_size,
@@ -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
@@ -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.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilio-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.12.1
4
+ version: 7.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twilio API Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-12 00:00:00.000000000 Z
11
+ date: 2024-04-01 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