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
@@ -44,8 +44,6 @@ module Twilio
44
44
  end
45
45
 
46
46
 
47
- ##
48
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
49
47
  class FunctionVersionContentContext < InstanceContext
50
48
  ##
51
49
  # Initialize the FunctionVersionContentContext
@@ -127,8 +127,6 @@ module Twilio
127
127
  end
128
128
 
129
129
 
130
- ##
131
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
132
130
  class FunctionVersionContext < InstanceContext
133
131
  ##
134
132
  # Initialize the FunctionVersionContext
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
152
150
  class FunctionContext < InstanceContext
153
151
  ##
154
152
  # Initialize the FunctionContext
@@ -153,8 +153,6 @@ module Twilio
153
153
  end
154
154
 
155
155
 
156
- ##
157
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
158
156
  class ServiceContext < InstanceContext
159
157
  ##
160
158
  # Initialize the ServiceContext
@@ -171,8 +171,6 @@ module Twilio
171
171
  end
172
172
 
173
173
 
174
- ##
175
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
176
174
  class EsimProfileContext < InstanceContext
177
175
  ##
178
176
  # Initialize the EsimProfileContext
@@ -174,8 +174,6 @@ module Twilio
174
174
  end
175
175
 
176
176
 
177
- ##
178
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
179
177
  class FleetContext < InstanceContext
180
178
  ##
181
179
  # Initialize the FleetContext
@@ -183,8 +183,6 @@ module Twilio
183
183
  end
184
184
 
185
185
 
186
- ##
187
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
188
186
  class IpCommandContext < InstanceContext
189
187
  ##
190
188
  # Initialize the IpCommandContext
@@ -142,8 +142,6 @@ module Twilio
142
142
  end
143
143
 
144
144
 
145
- ##
146
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
147
145
  class NetworkContext < InstanceContext
148
146
  ##
149
147
  # Initialize the NetworkContext
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
152
150
  class NetworkAccessProfileNetworkContext < InstanceContext
153
151
  ##
154
152
  # Initialize the NetworkAccessProfileNetworkContext
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
152
150
  class NetworkAccessProfileContext < InstanceContext
153
151
  ##
154
152
  # Initialize the NetworkAccessProfileContext
@@ -165,8 +165,6 @@ module Twilio
165
165
  end
166
166
 
167
167
 
168
- ##
169
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
170
168
  class SimContext < InstanceContext
171
169
  ##
172
170
  # Initialize the SimContext
@@ -171,8 +171,6 @@ module Twilio
171
171
  end
172
172
 
173
173
 
174
- ##
175
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
176
174
  class SmsCommandContext < InstanceContext
177
175
  ##
178
176
  # Initialize the SmsCommandContext
@@ -0,0 +1,163 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Taskrouter
8
+ # This is the public Twilio REST API.
9
+ #
10
+ # NOTE: This class is auto generated by OpenAPI Generator.
11
+ # https://openapi-generator.tech
12
+ # Do not edit the class manually.
13
+ #
14
+
15
+
16
+ module Twilio
17
+ module REST
18
+ class Taskrouter < TaskrouterBase
19
+ class V1 < Version
20
+ class WorkspaceContext < InstanceContext
21
+ class TaskQueueList < ListResource
22
+
23
+ class TaskQueueBulkRealTimeStatisticsList < ListResource
24
+
25
+ ##
26
+ # Initialize the TaskQueueBulkRealTimeStatisticsList
27
+ # @param [Version] version Version that contains the resource
28
+ # @return [TaskQueueBulkRealTimeStatisticsList] TaskQueueBulkRealTimeStatisticsList
29
+ def initialize(version, workspace_sid: nil)
30
+ super(version)
31
+ # Path Solution
32
+ @solution = { workspace_sid: workspace_sid }
33
+ @uri = "/Workspaces/#{@solution[:workspace_sid]}/TaskQueues/RealTimeStatistics"
34
+
35
+ end
36
+ ##
37
+ # Create the TaskQueueBulkRealTimeStatisticsInstance
38
+ # @param [Object] body
39
+ # @return [TaskQueueBulkRealTimeStatisticsInstance] Created TaskQueueBulkRealTimeStatisticsInstance
40
+ def create(body: :unset
41
+ )
42
+
43
+ headers = Twilio::Values.of({"Content-Type"=> "application/json"})
44
+ payload = @version.create('POST', @uri, data: body.to_json, headers: headers)
45
+ TaskQueueBulkRealTimeStatisticsInstance.new(
46
+ @version,
47
+ payload,
48
+ workspace_sid: @solution[:workspace_sid],
49
+ )
50
+ end
51
+
52
+
53
+
54
+
55
+ # Provide a user friendly representation
56
+ def to_s
57
+ '#<Twilio.Taskrouter.V1.TaskQueueBulkRealTimeStatisticsList>'
58
+ end
59
+ end
60
+
61
+ class TaskQueueBulkRealTimeStatisticsPage < Page
62
+ ##
63
+ # Initialize the TaskQueueBulkRealTimeStatisticsPage
64
+ # @param [Version] version Version that contains the resource
65
+ # @param [Response] response Response from the API
66
+ # @param [Hash] solution Path solution for the resource
67
+ # @return [TaskQueueBulkRealTimeStatisticsPage] TaskQueueBulkRealTimeStatisticsPage
68
+ def initialize(version, response, solution)
69
+ super(version, response)
70
+
71
+ # Path Solution
72
+ @solution = solution
73
+ end
74
+
75
+ ##
76
+ # Build an instance of TaskQueueBulkRealTimeStatisticsInstance
77
+ # @param [Hash] payload Payload response from the API
78
+ # @return [TaskQueueBulkRealTimeStatisticsInstance] TaskQueueBulkRealTimeStatisticsInstance
79
+ def get_instance(payload)
80
+ TaskQueueBulkRealTimeStatisticsInstance.new(@version, payload, workspace_sid: @solution[:workspace_sid])
81
+ end
82
+
83
+ ##
84
+ # Provide a user friendly representation
85
+ def to_s
86
+ '<Twilio.Taskrouter.V1.TaskQueueBulkRealTimeStatisticsPage>'
87
+ end
88
+ end
89
+ class TaskQueueBulkRealTimeStatisticsInstance < InstanceResource
90
+ ##
91
+ # Initialize the TaskQueueBulkRealTimeStatisticsInstance
92
+ # @param [Version] version Version that contains the resource
93
+ # @param [Hash] payload payload that contains response from Twilio
94
+ # @param [String] account_sid The SID of the
95
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this TaskQueueBulkRealTimeStatistics
96
+ # resource.
97
+ # @param [String] sid The SID of the Call resource to fetch.
98
+ # @return [TaskQueueBulkRealTimeStatisticsInstance] TaskQueueBulkRealTimeStatisticsInstance
99
+ def initialize(version, payload , workspace_sid: nil)
100
+ super(version)
101
+
102
+ # Marshaled Properties
103
+ @properties = {
104
+ 'account_sid' => payload['account_sid'],
105
+ 'workspace_sid' => payload['workspace_sid'],
106
+ 'task_queue_data' => payload['task_queue_data'],
107
+ 'task_queue_response_count' => payload['task_queue_response_count'] == nil ? payload['task_queue_response_count'] : payload['task_queue_response_count'].to_i,
108
+ 'url' => payload['url'],
109
+ }
110
+ end
111
+
112
+
113
+ ##
114
+ # @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the TaskQueue resource.
115
+ def account_sid
116
+ @properties['account_sid']
117
+ end
118
+
119
+ ##
120
+ # @return [String] The SID of the Workspace that contains the TaskQueue.
121
+ def workspace_sid
122
+ @properties['workspace_sid']
123
+ end
124
+
125
+ ##
126
+ # @return [Array<Hash>] The real-time statistics for each requested TaskQueue SID. `task_queue_data` returns the following attributes: `task_queue_sid`: The SID of the TaskQueue from which these statistics were calculated. `total_available_workers`: The total number of Workers available for Tasks in the TaskQueue. `total_eligible_workers`: The total number of Workers eligible for Tasks in the TaskQueue, regardless of their Activity state. `total_tasks`: The total number of Tasks. `longest_task_waiting_age`: The age of the longest waiting Task. `longest_task_waiting_sid`: The SID of the longest waiting Task. `tasks_by_status`: The number of Tasks grouped by their current status. `tasks_by_priority`: The number of Tasks grouped by priority. `activity_statistics`: The number of current Workers grouped by Activity.
127
+ def task_queue_data
128
+ @properties['task_queue_data']
129
+ end
130
+
131
+ ##
132
+ # @return [String] The number of TaskQueue statistics received in task_queue_data.
133
+ def task_queue_response_count
134
+ @properties['task_queue_response_count']
135
+ end
136
+
137
+ ##
138
+ # @return [String] The absolute URL of the TaskQueue statistics resource.
139
+ def url
140
+ @properties['url']
141
+ end
142
+
143
+ ##
144
+ # Provide a user friendly representation
145
+ def to_s
146
+ "<Twilio.Taskrouter.V1.TaskQueueBulkRealTimeStatisticsInstance>"
147
+ end
148
+
149
+ ##
150
+ # Provide a detailed, user friendly representation
151
+ def inspect
152
+ "<Twilio.Taskrouter.V1.TaskQueueBulkRealTimeStatisticsInstance>"
153
+ end
154
+ end
155
+
156
+ end
157
+ end
158
+ end
159
+ end
160
+ end
161
+ end
162
+
163
+
@@ -31,8 +31,8 @@ module Twilio
31
31
  @solution = { workspace_sid: workspace_sid }
32
32
  @uri = "/Workspaces/#{@solution[:workspace_sid]}/TaskQueues"
33
33
  # Components
34
- @statistics = nil
35
34
  @bulk_real_time_statistics = nil
35
+ @statistics = nil
36
36
  end
37
37
  ##
38
38
  # Create the TaskQueueInstance
@@ -180,13 +180,6 @@ module Twilio
180
180
  end
181
181
 
182
182
 
183
- ##
184
- # Access the statistics
185
- # @return [TaskQueuesStatisticsList]
186
- # @return [TaskQueuesStatisticsContext]
187
- def statistics
188
- @statistics ||= TaskQueuesStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid] )
189
- end
190
183
  ##
191
184
  # Access the bulk_real_time_statistics
192
185
  # @return [TaskQueueBulkRealTimeStatisticsList]
@@ -194,6 +187,13 @@ module Twilio
194
187
  def bulk_real_time_statistics
195
188
  @bulk_real_time_statistics ||= TaskQueueBulkRealTimeStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid] )
196
189
  end
190
+ ##
191
+ # Access the statistics
192
+ # @return [TaskQueuesStatisticsList]
193
+ # @return [TaskQueuesStatisticsContext]
194
+ def statistics
195
+ @statistics ||= TaskQueuesStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid] )
196
+ end
197
197
 
198
198
  # Provide a user friendly representation
199
199
  def to_s
@@ -70,6 +70,7 @@ module Twilio
70
70
  # @param [Boolean] is_isv_embed Indicates if the inquiry is being started from an ISV embedded component.
71
71
  # @param [String] isv_registering_for_self_or_tenant Indicates if the isv registering for self or tenant.
72
72
  # @param [String] status_callback_url The url we call to inform you of bundle changes.
73
+ # @param [String] theme_set_id Theme id for styling the inquiry form.
73
74
  # @return [ComplianceRegistrationInquiriesInstance] Created ComplianceRegistrationInquiriesInstance
74
75
  def create(
75
76
  end_user_type: nil,
@@ -109,7 +110,8 @@ module Twilio
109
110
  individual_phone: :unset,
110
111
  is_isv_embed: :unset,
111
112
  isv_registering_for_self_or_tenant: :unset,
112
- status_callback_url: :unset
113
+ status_callback_url: :unset,
114
+ theme_set_id: :unset
113
115
  )
114
116
 
115
117
  data = Twilio::Values.of({
@@ -151,6 +153,7 @@ module Twilio
151
153
  'IsIsvEmbed' => is_isv_embed,
152
154
  'IsvRegisteringForSelfOrTenant' => isv_registering_for_self_or_tenant,
153
155
  'StatusCallbackUrl' => status_callback_url,
156
+ 'ThemeSetId' => theme_set_id,
154
157
  })
155
158
 
156
159
 
@@ -170,6 +173,62 @@ module Twilio
170
173
  end
171
174
  end
172
175
 
176
+
177
+ class ComplianceRegistrationInquiriesContext < InstanceContext
178
+ ##
179
+ # Initialize the ComplianceRegistrationInquiriesContext
180
+ # @param [Version] version Version that contains the resource
181
+ # @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.
182
+ # @return [ComplianceRegistrationInquiriesContext] ComplianceRegistrationInquiriesContext
183
+ def initialize(version, registration_id)
184
+ super(version)
185
+
186
+ # Path Solution
187
+ @solution = { registration_id: registration_id, }
188
+ @uri = "/ComplianceInquiries/Registration/#{@solution[:registration_id]}/RegulatoryCompliance/GB/Initialize"
189
+
190
+
191
+ end
192
+ ##
193
+ # Update the ComplianceRegistrationInquiriesInstance
194
+ # @param [Boolean] is_isv_embed Indicates if the inquiry is being started from an ISV embedded component.
195
+ # @param [String] theme_set_id Theme id for styling the inquiry form.
196
+ # @return [ComplianceRegistrationInquiriesInstance] Updated ComplianceRegistrationInquiriesInstance
197
+ def update(
198
+ is_isv_embed: :unset,
199
+ theme_set_id: :unset
200
+ )
201
+
202
+ data = Twilio::Values.of({
203
+ 'IsIsvEmbed' => is_isv_embed,
204
+ 'ThemeSetId' => theme_set_id,
205
+ })
206
+
207
+
208
+ payload = @version.update('POST', @uri, data: data)
209
+ ComplianceRegistrationInquiriesInstance.new(
210
+ @version,
211
+ payload,
212
+ registration_id: @solution[:registration_id],
213
+ )
214
+ end
215
+
216
+
217
+ ##
218
+ # Provide a user friendly representation
219
+ def to_s
220
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
221
+ "#<Twilio.Trusthub.V1.ComplianceRegistrationInquiriesContext #{context}>"
222
+ end
223
+
224
+ ##
225
+ # Provide a detailed, user friendly representation
226
+ def inspect
227
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
228
+ "#<Twilio.Trusthub.V1.ComplianceRegistrationInquiriesContext #{context}>"
229
+ end
230
+ end
231
+
173
232
  class ComplianceRegistrationInquiriesPage < Page
174
233
  ##
175
234
  # Initialize the ComplianceRegistrationInquiriesPage
@@ -208,7 +267,7 @@ module Twilio
208
267
  # resource.
209
268
  # @param [String] sid The SID of the Call resource to fetch.
210
269
  # @return [ComplianceRegistrationInquiriesInstance] ComplianceRegistrationInquiriesInstance
211
- def initialize(version, payload )
270
+ def initialize(version, payload , registration_id: nil)
212
271
  super(version)
213
272
 
214
273
  # Marshaled Properties
@@ -218,8 +277,22 @@ module Twilio
218
277
  'registration_id' => payload['registration_id'],
219
278
  'url' => payload['url'],
220
279
  }
280
+
281
+ # Context
282
+ @instance_context = nil
283
+ @params = { 'registration_id' => registration_id || @properties['registration_id'] , }
221
284
  end
222
285
 
286
+ ##
287
+ # Generate an instance context for the instance, the context is capable of
288
+ # performing various actions. All instance actions are proxied to the context
289
+ # @return [ComplianceRegistrationInquiriesContext] CallContext for this CallInstance
290
+ def context
291
+ unless @instance_context
292
+ @instance_context = ComplianceRegistrationInquiriesContext.new(@version , @params['registration_id'])
293
+ end
294
+ @instance_context
295
+ end
223
296
 
224
297
  ##
225
298
  # @return [String] The unique ID used to start an embedded compliance registration session.
@@ -245,16 +318,34 @@ module Twilio
245
318
  @properties['url']
246
319
  end
247
320
 
321
+ ##
322
+ # Update the ComplianceRegistrationInquiriesInstance
323
+ # @param [Boolean] is_isv_embed Indicates if the inquiry is being started from an ISV embedded component.
324
+ # @param [String] theme_set_id Theme id for styling the inquiry form.
325
+ # @return [ComplianceRegistrationInquiriesInstance] Updated ComplianceRegistrationInquiriesInstance
326
+ def update(
327
+ is_isv_embed: :unset,
328
+ theme_set_id: :unset
329
+ )
330
+
331
+ context.update(
332
+ is_isv_embed: is_isv_embed,
333
+ theme_set_id: theme_set_id,
334
+ )
335
+ end
336
+
248
337
  ##
249
338
  # Provide a user friendly representation
250
339
  def to_s
251
- "<Twilio.Trusthub.V1.ComplianceRegistrationInquiriesInstance>"
340
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
341
+ "<Twilio.Trusthub.V1.ComplianceRegistrationInquiriesInstance #{values}>"
252
342
  end
253
343
 
254
344
  ##
255
345
  # Provide a detailed, user friendly representation
256
346
  def inspect
257
- "<Twilio.Trusthub.V1.ComplianceRegistrationInquiriesInstance>"
347
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
348
+ "<Twilio.Trusthub.V1.ComplianceRegistrationInquiriesInstance #{values}>"
258
349
  end
259
350
  end
260
351
 
@@ -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,