twilio-ruby 7.0.0.pre.rc.1 → 7.0.0.pre.rc.3

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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test-and-deploy.yml +9 -9
  3. data/CHANGES.md +46 -0
  4. data/README.md +2 -2
  5. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +28 -37
  6. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +27 -3
  7. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +17 -5
  8. data/lib/twilio-ruby/rest/client.rb +5 -0
  9. data/lib/twilio-ruby/rest/content/v1/content.rb +60 -1
  10. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +10 -5
  11. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +11 -1
  12. data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +384 -0
  13. data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +446 -0
  14. data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +247 -0
  15. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +393 -0
  16. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +386 -0
  17. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +233 -0
  18. data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +332 -0
  19. data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +256 -0
  20. data/lib/twilio-ruby/rest/flex_api/v1.rb +112 -30
  21. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +1 -1
  22. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +6 -6
  23. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +9 -2
  24. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +11 -4
  25. data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +5 -3
  26. data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +5 -3
  27. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +5 -3
  28. data/lib/twilio-ruby/rest/numbers/v1.rb +3 -3
  29. data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +5 -3
  30. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +15 -3
  31. data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +143 -0
  32. data/lib/twilio-ruby/rest/oauth/v1/token.rb +175 -0
  33. data/lib/twilio-ruby/rest/oauth/v1.rb +46 -0
  34. data/lib/twilio-ruby/rest/oauth.rb +6 -0
  35. data/lib/twilio-ruby/rest/oauth_base.rb +38 -0
  36. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +5 -3
  37. data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +26 -2
  38. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +9 -3
  39. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +9 -3
  40. data/lib/twilio-ruby/twiml/messaging_response.rb +1 -1
  41. data/lib/twilio-ruby/version.rb +1 -1
  42. metadata +15 -6
  43. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +0 -267
  44. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +0 -332
  45. data/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai.rb +0 -274
  46. data/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai_report_insights.rb +0 -253
@@ -1,274 +0,0 @@
1
- ##
2
- # This code was generated by
3
- # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
- # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
- # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
- #
7
- # Twilio - Flex
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 FlexApi < FlexApiBase
19
- class V1 < Version
20
- class InsightsConversationalAiList < ListResource
21
-
22
- ##
23
- # Initialize the InsightsConversationalAiList
24
- # @param [Version] version Version that contains the resource
25
- # @return [InsightsConversationalAiList] InsightsConversationalAiList
26
- def initialize(version)
27
- super(version)
28
- # Path Solution
29
- @solution = { }
30
-
31
-
32
- end
33
-
34
-
35
-
36
- # Provide a user friendly representation
37
- def to_s
38
- '#<Twilio.FlexApi.V1.InsightsConversationalAiList>'
39
- end
40
- end
41
-
42
-
43
- class InsightsConversationalAiContext < InstanceContext
44
- ##
45
- # Initialize the InsightsConversationalAiContext
46
- # @param [Version] version Version that contains the resource
47
- # @param [String] instance_sid Sid of Flex Service Instance
48
- # @return [InsightsConversationalAiContext] InsightsConversationalAiContext
49
- def initialize(version, instance_sid)
50
- super(version)
51
-
52
- # Path Solution
53
- @solution = { instance_sid: instance_sid, }
54
- @uri = "/Insights/Instances/#{@solution[:instance_sid]}/AI/Reports"
55
-
56
-
57
- end
58
- ##
59
- # Fetch the InsightsConversationalAiInstance
60
- # @param [String] max_rows Maximum number of rows to return
61
- # @param [String] report_id The type of report required to fetch.Like gauge,channel-metrics,queue-metrics
62
- # @param [Granularity] granularity The time period for which report is needed
63
- # @param [Time] include_date A reference date that should be included in the returned period
64
- # @return [InsightsConversationalAiInstance] Fetched InsightsConversationalAiInstance
65
- def fetch(
66
- max_rows: :unset,
67
- report_id: :unset,
68
- granularity: :unset,
69
- include_date: :unset
70
- )
71
-
72
- params = Twilio::Values.of({
73
- 'MaxRows' => max_rows,
74
- 'ReportId' => report_id,
75
- 'Granularity' => granularity,
76
- 'IncludeDate' => Twilio.serialize_iso8601_datetime(include_date),
77
- })
78
-
79
- payload = @version.fetch('GET', @uri, params: params)
80
- InsightsConversationalAiInstance.new(
81
- @version,
82
- payload,
83
- instance_sid: @solution[:instance_sid],
84
- )
85
- end
86
-
87
-
88
- ##
89
- # Provide a user friendly representation
90
- def to_s
91
- context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
92
- "#<Twilio.FlexApi.V1.InsightsConversationalAiContext #{context}>"
93
- end
94
-
95
- ##
96
- # Provide a detailed, user friendly representation
97
- def inspect
98
- context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
99
- "#<Twilio.FlexApi.V1.InsightsConversationalAiContext #{context}>"
100
- end
101
- end
102
-
103
- class InsightsConversationalAiPage < Page
104
- ##
105
- # Initialize the InsightsConversationalAiPage
106
- # @param [Version] version Version that contains the resource
107
- # @param [Response] response Response from the API
108
- # @param [Hash] solution Path solution for the resource
109
- # @return [InsightsConversationalAiPage] InsightsConversationalAiPage
110
- def initialize(version, response, solution)
111
- super(version, response)
112
-
113
- # Path Solution
114
- @solution = solution
115
- end
116
-
117
- ##
118
- # Build an instance of InsightsConversationalAiInstance
119
- # @param [Hash] payload Payload response from the API
120
- # @return [InsightsConversationalAiInstance] InsightsConversationalAiInstance
121
- def get_instance(payload)
122
- InsightsConversationalAiInstance.new(@version, payload)
123
- end
124
-
125
- ##
126
- # Provide a user friendly representation
127
- def to_s
128
- '<Twilio.FlexApi.V1.InsightsConversationalAiPage>'
129
- end
130
- end
131
- class InsightsConversationalAiInstance < InstanceResource
132
- ##
133
- # Initialize the InsightsConversationalAiInstance
134
- # @param [Version] version Version that contains the resource
135
- # @param [Hash] payload payload that contains response from Twilio
136
- # @param [String] account_sid The SID of the
137
- # {Account}[https://www.twilio.com/docs/iam/api/account] that created this InsightsConversationalAi
138
- # resource.
139
- # @param [String] sid The SID of the Call resource to fetch.
140
- # @return [InsightsConversationalAiInstance] InsightsConversationalAiInstance
141
- def initialize(version, payload , instance_sid: nil)
142
- super(version)
143
-
144
- # Marshaled Properties
145
- @properties = {
146
- 'instance_sid' => payload['instance_sid'],
147
- 'report_id' => payload['report_id'],
148
- 'granularity' => payload['granularity'],
149
- 'period_start' => Twilio.deserialize_iso8601_datetime(payload['period_start']),
150
- 'period_end' => Twilio.deserialize_iso8601_datetime(payload['period_end']),
151
- 'updated' => Twilio.deserialize_iso8601_datetime(payload['updated']),
152
- 'total_pages' => payload['total_pages'] == nil ? payload['total_pages'] : payload['total_pages'].to_i,
153
- 'page' => payload['page'] == nil ? payload['page'] : payload['page'].to_i,
154
- 'rows' => payload['rows'],
155
- 'url' => payload['url'],
156
- }
157
-
158
- # Context
159
- @instance_context = nil
160
- @params = { 'instance_sid' => instance_sid || @properties['instance_sid'] , }
161
- end
162
-
163
- ##
164
- # Generate an instance context for the instance, the context is capable of
165
- # performing various actions. All instance actions are proxied to the context
166
- # @return [InsightsConversationalAiContext] CallContext for this CallInstance
167
- def context
168
- unless @instance_context
169
- @instance_context = InsightsConversationalAiContext.new(@version , @params['instance_sid'])
170
- end
171
- @instance_context
172
- end
173
-
174
- ##
175
- # @return [String] Sid of Flex Service Instance
176
- def instance_sid
177
- @properties['instance_sid']
178
- end
179
-
180
- ##
181
- # @return [String] The type of report required to fetch.Like gauge,channel-metrics,queue-metrics
182
- def report_id
183
- @properties['report_id']
184
- end
185
-
186
- ##
187
- # @return [Granularity]
188
- def granularity
189
- @properties['granularity']
190
- end
191
-
192
- ##
193
- # @return [Time] The start date from which report data is included
194
- def period_start
195
- @properties['period_start']
196
- end
197
-
198
- ##
199
- # @return [Time] The end date till report data is included
200
- def period_end
201
- @properties['period_end']
202
- end
203
-
204
- ##
205
- # @return [Time] Updated time of the report
206
- def updated
207
- @properties['updated']
208
- end
209
-
210
- ##
211
- # @return [String] Represents total number of pages fetched report has
212
- def total_pages
213
- @properties['total_pages']
214
- end
215
-
216
- ##
217
- # @return [String] Page offset required for pagination
218
- def page
219
- @properties['page']
220
- end
221
-
222
- ##
223
- # @return [Array<Hash>] List of report breakdown
224
- def rows
225
- @properties['rows']
226
- end
227
-
228
- ##
229
- # @return [String] The URL of this resource.
230
- def url
231
- @properties['url']
232
- end
233
-
234
- ##
235
- # Fetch the InsightsConversationalAiInstance
236
- # @param [String] max_rows Maximum number of rows to return
237
- # @param [String] report_id The type of report required to fetch.Like gauge,channel-metrics,queue-metrics
238
- # @param [Granularity] granularity The time period for which report is needed
239
- # @param [Time] include_date A reference date that should be included in the returned period
240
- # @return [InsightsConversationalAiInstance] Fetched InsightsConversationalAiInstance
241
- def fetch(
242
- max_rows: :unset,
243
- report_id: :unset,
244
- granularity: :unset,
245
- include_date: :unset
246
- )
247
-
248
- context.fetch(
249
- max_rows: max_rows,
250
- report_id: report_id,
251
- granularity: granularity,
252
- include_date: include_date,
253
- )
254
- end
255
-
256
- ##
257
- # Provide a user friendly representation
258
- def to_s
259
- values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
260
- "<Twilio.FlexApi.V1.InsightsConversationalAiInstance #{values}>"
261
- end
262
-
263
- ##
264
- # Provide a detailed, user friendly representation
265
- def inspect
266
- values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
267
- "<Twilio.FlexApi.V1.InsightsConversationalAiInstance #{values}>"
268
- end
269
- end
270
-
271
- end
272
- end
273
- end
274
- end
@@ -1,253 +0,0 @@
1
- ##
2
- # This code was generated by
3
- # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
- # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
- # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
- #
7
- # Twilio - Flex
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 FlexApi < FlexApiBase
19
- class V1 < Version
20
- class InsightsConversationalAiReportInsightsList < ListResource
21
-
22
- ##
23
- # Initialize the InsightsConversationalAiReportInsightsList
24
- # @param [Version] version Version that contains the resource
25
- # @return [InsightsConversationalAiReportInsightsList] InsightsConversationalAiReportInsightsList
26
- def initialize(version)
27
- super(version)
28
- # Path Solution
29
- @solution = { }
30
-
31
-
32
- end
33
-
34
-
35
-
36
- # Provide a user friendly representation
37
- def to_s
38
- '#<Twilio.FlexApi.V1.InsightsConversationalAiReportInsightsList>'
39
- end
40
- end
41
-
42
-
43
- class InsightsConversationalAiReportInsightsContext < InstanceContext
44
- ##
45
- # Initialize the InsightsConversationalAiReportInsightsContext
46
- # @param [Version] version Version that contains the resource
47
- # @param [String] instance_sid The Instance SID of the instance for which report insights will be fetched
48
- # @return [InsightsConversationalAiReportInsightsContext] InsightsConversationalAiReportInsightsContext
49
- def initialize(version, instance_sid)
50
- super(version)
51
-
52
- # Path Solution
53
- @solution = { instance_sid: instance_sid, }
54
- @uri = "/Insights/Instances/#{@solution[:instance_sid]}/AI/ReportInsights"
55
-
56
-
57
- end
58
- ##
59
- # Fetch the InsightsConversationalAiReportInsightsInstance
60
- # @param [String] max_rows Maximum number of rows to return
61
- # @param [String] report_id The type of report insights required to fetch.Like gauge,channel-metrics,queue-metrics
62
- # @param [String] granularity The time period for which report insights is needed
63
- # @param [Time] include_date A reference date that should be included in the returned period
64
- # @return [InsightsConversationalAiReportInsightsInstance] Fetched InsightsConversationalAiReportInsightsInstance
65
- def fetch(
66
- max_rows: :unset,
67
- report_id: :unset,
68
- granularity: :unset,
69
- include_date: :unset
70
- )
71
-
72
- params = Twilio::Values.of({
73
- 'MaxRows' => max_rows,
74
- 'ReportId' => report_id,
75
- 'Granularity' => granularity,
76
- 'IncludeDate' => Twilio.serialize_iso8601_datetime(include_date),
77
- })
78
-
79
- payload = @version.fetch('GET', @uri, params: params)
80
- InsightsConversationalAiReportInsightsInstance.new(
81
- @version,
82
- payload,
83
- instance_sid: @solution[:instance_sid],
84
- )
85
- end
86
-
87
-
88
- ##
89
- # Provide a user friendly representation
90
- def to_s
91
- context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
92
- "#<Twilio.FlexApi.V1.InsightsConversationalAiReportInsightsContext #{context}>"
93
- end
94
-
95
- ##
96
- # Provide a detailed, user friendly representation
97
- def inspect
98
- context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
99
- "#<Twilio.FlexApi.V1.InsightsConversationalAiReportInsightsContext #{context}>"
100
- end
101
- end
102
-
103
- class InsightsConversationalAiReportInsightsPage < Page
104
- ##
105
- # Initialize the InsightsConversationalAiReportInsightsPage
106
- # @param [Version] version Version that contains the resource
107
- # @param [Response] response Response from the API
108
- # @param [Hash] solution Path solution for the resource
109
- # @return [InsightsConversationalAiReportInsightsPage] InsightsConversationalAiReportInsightsPage
110
- def initialize(version, response, solution)
111
- super(version, response)
112
-
113
- # Path Solution
114
- @solution = solution
115
- end
116
-
117
- ##
118
- # Build an instance of InsightsConversationalAiReportInsightsInstance
119
- # @param [Hash] payload Payload response from the API
120
- # @return [InsightsConversationalAiReportInsightsInstance] InsightsConversationalAiReportInsightsInstance
121
- def get_instance(payload)
122
- InsightsConversationalAiReportInsightsInstance.new(@version, payload)
123
- end
124
-
125
- ##
126
- # Provide a user friendly representation
127
- def to_s
128
- '<Twilio.FlexApi.V1.InsightsConversationalAiReportInsightsPage>'
129
- end
130
- end
131
- class InsightsConversationalAiReportInsightsInstance < InstanceResource
132
- ##
133
- # Initialize the InsightsConversationalAiReportInsightsInstance
134
- # @param [Version] version Version that contains the resource
135
- # @param [Hash] payload payload that contains response from Twilio
136
- # @param [String] account_sid The SID of the
137
- # {Account}[https://www.twilio.com/docs/iam/api/account] that created this InsightsConversationalAiReportInsights
138
- # resource.
139
- # @param [String] sid The SID of the Call resource to fetch.
140
- # @return [InsightsConversationalAiReportInsightsInstance] InsightsConversationalAiReportInsightsInstance
141
- def initialize(version, payload , instance_sid: nil)
142
- super(version)
143
-
144
- # Marshaled Properties
145
- @properties = {
146
- 'instance_sid' => payload['instance_sid'],
147
- 'report_id' => payload['report_id'],
148
- 'period_start' => Twilio.deserialize_iso8601_datetime(payload['period_start']),
149
- 'period_end' => Twilio.deserialize_iso8601_datetime(payload['period_end']),
150
- 'updated' => Twilio.deserialize_iso8601_datetime(payload['updated']),
151
- 'insights' => payload['insights'],
152
- 'url' => payload['url'],
153
- }
154
-
155
- # Context
156
- @instance_context = nil
157
- @params = { 'instance_sid' => instance_sid || @properties['instance_sid'] , }
158
- end
159
-
160
- ##
161
- # Generate an instance context for the instance, the context is capable of
162
- # performing various actions. All instance actions are proxied to the context
163
- # @return [InsightsConversationalAiReportInsightsContext] CallContext for this CallInstance
164
- def context
165
- unless @instance_context
166
- @instance_context = InsightsConversationalAiReportInsightsContext.new(@version , @params['instance_sid'])
167
- end
168
- @instance_context
169
- end
170
-
171
- ##
172
- # @return [String] The Instance SID of the instance for which report insights is fetched
173
- def instance_sid
174
- @properties['instance_sid']
175
- end
176
-
177
- ##
178
- # @return [String] The type of report insights required to fetch.Like gauge,channel-metrics,queue-metrics
179
- def report_id
180
- @properties['report_id']
181
- end
182
-
183
- ##
184
- # @return [Time] The start date from which report insights data is included
185
- def period_start
186
- @properties['period_start']
187
- end
188
-
189
- ##
190
- # @return [Time] The end date till report insights data is included
191
- def period_end
192
- @properties['period_end']
193
- end
194
-
195
- ##
196
- # @return [Time] Updated time of the report insights
197
- def updated
198
- @properties['updated']
199
- end
200
-
201
- ##
202
- # @return [Array<Hash>] List of report insights breakdown
203
- def insights
204
- @properties['insights']
205
- end
206
-
207
- ##
208
- # @return [String] The URL of this resource
209
- def url
210
- @properties['url']
211
- end
212
-
213
- ##
214
- # Fetch the InsightsConversationalAiReportInsightsInstance
215
- # @param [String] max_rows Maximum number of rows to return
216
- # @param [String] report_id The type of report insights required to fetch.Like gauge,channel-metrics,queue-metrics
217
- # @param [String] granularity The time period for which report insights is needed
218
- # @param [Time] include_date A reference date that should be included in the returned period
219
- # @return [InsightsConversationalAiReportInsightsInstance] Fetched InsightsConversationalAiReportInsightsInstance
220
- def fetch(
221
- max_rows: :unset,
222
- report_id: :unset,
223
- granularity: :unset,
224
- include_date: :unset
225
- )
226
-
227
- context.fetch(
228
- max_rows: max_rows,
229
- report_id: report_id,
230
- granularity: granularity,
231
- include_date: include_date,
232
- )
233
- end
234
-
235
- ##
236
- # Provide a user friendly representation
237
- def to_s
238
- values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
239
- "<Twilio.FlexApi.V1.InsightsConversationalAiReportInsightsInstance #{values}>"
240
- end
241
-
242
- ##
243
- # Provide a detailed, user friendly representation
244
- def inspect
245
- values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
246
- "<Twilio.FlexApi.V1.InsightsConversationalAiReportInsightsInstance #{values}>"
247
- end
248
- end
249
-
250
- end
251
- end
252
- end
253
- end