twilio-ruby 6.0.0 → 6.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 (119) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +20 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +1 -1
  5. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +7 -7
  6. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -8
  7. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +2 -2
  8. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +1 -1
  9. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +1 -1
  10. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
  11. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -1
  12. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -1
  13. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -2
  14. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +1 -1
  15. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +3 -3
  16. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -1
  17. data/lib/twilio-ruby/rest/api/v2010/account.rb +24 -24
  18. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +1 -1
  19. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -2
  20. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +6 -6
  21. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +2 -2
  22. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +3 -3
  23. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -1
  24. data/lib/twilio-ruby/rest/chat/v1/service.rb +3 -3
  25. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +4 -4
  26. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +2 -2
  27. data/lib/twilio-ruby/rest/chat/v2/service.rb +4 -4
  28. data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +11 -1
  29. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
  30. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +27 -6
  31. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
  32. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +27 -6
  33. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +1 -1
  34. data/lib/twilio-ruby/rest/conversations/v1/service.rb +5 -5
  35. data/lib/twilio-ruby/rest/conversations/v1/user.rb +1 -1
  36. data/lib/twilio-ruby/rest/events/v1/schema.rb +1 -1
  37. data/lib/twilio-ruby/rest/events/v1/sink.rb +2 -2
  38. data/lib/twilio-ruby/rest/events/v1/subscription.rb +1 -1
  39. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +18 -24
  40. data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +12 -18
  41. data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +9 -9
  42. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +30 -30
  43. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +24 -24
  44. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +24 -24
  45. data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +9 -9
  46. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +3 -3
  47. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +3 -3
  48. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +2 -2
  49. data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +1 -1
  50. data/lib/twilio-ruby/rest/insights/v1/call.rb +2 -2
  51. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +31 -3
  52. data/lib/twilio-ruby/rest/insights/v1/conference.rb +1 -1
  53. data/lib/twilio-ruby/rest/insights/v1/room.rb +1 -1
  54. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
  55. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -1
  56. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
  57. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +4 -4
  58. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +2 -2
  59. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +4 -4
  60. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +2 -2
  61. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +28 -2
  62. data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +7 -0
  63. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +196 -0
  64. data/lib/twilio-ruby/rest/messaging/v1/service.rb +5 -5
  65. data/lib/twilio-ruby/rest/messaging/v1.rb +15 -0
  66. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +2 -2
  67. data/lib/twilio-ruby/rest/notify/v1/service.rb +2 -2
  68. data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +224 -0
  69. data/lib/twilio-ruby/rest/numbers/v1.rb +49 -0
  70. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +4 -4
  71. data/lib/twilio-ruby/rest/numbers_base.rb +6 -1
  72. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +4 -4
  73. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +1 -1
  74. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +1 -1
  75. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +1 -1
  76. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +1 -1
  77. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -2
  78. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -2
  79. data/lib/twilio-ruby/rest/preview/sync/service.rb +3 -3
  80. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +1 -1
  81. data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -2
  82. data/lib/twilio-ruby/rest/preview/understand/assistant.rb +5 -5
  83. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -1
  84. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -2
  85. data/lib/twilio-ruby/rest/proxy/v1/service.rb +3 -3
  86. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +1 -1
  87. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +3 -3
  88. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +1 -1
  89. data/lib/twilio-ruby/rest/serverless/v1/service.rb +4 -4
  90. data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +1 -1
  91. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -1
  92. data/lib/twilio-ruby/rest/studio/v1/flow.rb +2 -2
  93. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -1
  94. data/lib/twilio-ruby/rest/studio/v2/flow.rb +2 -2
  95. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +1 -1
  96. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +2 -2
  97. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +1 -1
  98. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +2 -2
  99. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +2 -2
  100. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -1
  101. data/lib/twilio-ruby/rest/sync/v1/service.rb +4 -4
  102. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +1 -1
  103. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -2
  104. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +7 -7
  105. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +4 -4
  106. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +3 -3
  107. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +3 -3
  108. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +1 -1
  109. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +3 -3
  110. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +1 -1
  111. data/lib/twilio-ruby/rest/verify/v2/service.rb +7 -7
  112. data/lib/twilio-ruby/rest/video/v1/room/participant.rb +3 -3
  113. data/lib/twilio-ruby/rest/video/v1/room.rb +3 -3
  114. data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +1 -1
  115. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
  116. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +2 -2
  117. data/lib/twilio-ruby/rest.rb +1 -1
  118. data/lib/twilio-ruby/version.rb +1 -1
  119. metadata +5 -2
@@ -32,18 +32,18 @@ module Twilio
32
32
  ##
33
33
  # Create the InsightsQuestionnairesCategoryInstance
34
34
  # @param [String] name The name of this category.
35
- # @param [String] token The Token HTTP request header
35
+ # @param [String] authorization The Authorization HTTP request header
36
36
  # @return [InsightsQuestionnairesCategoryInstance] Created InsightsQuestionnairesCategoryInstance
37
37
  def create(
38
38
  name: nil,
39
- token: :unset
39
+ authorization: :unset
40
40
  )
41
41
 
42
42
  data = Twilio::Values.of({
43
43
  'Name' => name,
44
44
  })
45
45
 
46
- headers = Twilio::Values.of({ 'Token' => token, })
46
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
47
47
  payload = @version.create('POST', @uri, data: data, headers: headers)
48
48
  InsightsQuestionnairesCategoryInstance.new(
49
49
  @version,
@@ -56,7 +56,7 @@ module Twilio
56
56
  # Lists InsightsQuestionnairesCategoryInstance records from the API as a list.
57
57
  # Unlike stream(), this operation is eager and will load `limit` records into
58
58
  # memory before returning.
59
- # @param [String] token The Token HTTP request header
59
+ # @param [String] authorization The Authorization HTTP request header
60
60
  # @param [Integer] limit Upper limit for the number of records to return. stream()
61
61
  # guarantees to never return more than limit. Default is no limit
62
62
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -64,9 +64,9 @@ module Twilio
64
64
  # but a limit is defined, stream() will attempt to read the limit with the most
65
65
  # efficient page size, i.e. min(limit, 1000)
66
66
  # @return [Array] Array of up to limit results
67
- def list(token: :unset, limit: nil, page_size: nil)
67
+ def list(authorization: :unset, limit: nil, page_size: nil)
68
68
  self.stream(
69
- token: token,
69
+ authorization: authorization,
70
70
  limit: limit,
71
71
  page_size: page_size
72
72
  ).entries
@@ -76,7 +76,7 @@ module Twilio
76
76
  # Streams Instance records from the API as an Enumerable.
77
77
  # This operation lazily loads records as efficiently as possible until the limit
78
78
  # is reached.
79
- # @param [String] token The Token HTTP request header
79
+ # @param [String] authorization The Authorization HTTP request header
80
80
  # @param [Integer] limit Upper limit for the number of records to return. stream()
81
81
  # guarantees to never return more than limit. Default is no limit
82
82
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -84,11 +84,11 @@ module Twilio
84
84
  # but a limit is defined, stream() will attempt to read the limit with the most
85
85
  # efficient page size, i.e. min(limit, 1000)
86
86
  # @return [Enumerable] Enumerable that will yield up to limit results
87
- def stream(token: :unset, limit: nil, page_size: nil)
87
+ def stream(authorization: :unset, limit: nil, page_size: nil)
88
88
  limits = @version.read_limits(limit, page_size)
89
89
 
90
90
  page = self.page(
91
- token: token,
91
+ authorization: authorization,
92
92
  page_size: limits[:page_size], )
93
93
 
94
94
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
@@ -111,15 +111,15 @@ module Twilio
111
111
  ##
112
112
  # Retrieve a single page of InsightsQuestionnairesCategoryInstance records from the API.
113
113
  # Request is executed immediately.
114
- # @param [String] token The Token HTTP request header
114
+ # @param [String] authorization The Authorization HTTP request header
115
115
  # @param [String] page_token PageToken provided by the API
116
116
  # @param [Integer] page_number Page Number, this value is simply for client state
117
117
  # @param [Integer] page_size Number of records to return, defaults to 50
118
118
  # @return [Page] Page of InsightsQuestionnairesCategoryInstance
119
- def page(token: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
119
+ def page(authorization: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
120
120
  params = Twilio::Values.of({
121
121
 
122
- 'Token' => token,
122
+ 'Authorization' => authorization,
123
123
 
124
124
  'PageToken' => page_token,
125
125
  'Page' => page_number,
@@ -172,31 +172,31 @@ module Twilio
172
172
  end
173
173
  ##
174
174
  # Delete the InsightsQuestionnairesCategoryInstance
175
- # @param [String] token The Token HTTP request header
175
+ # @param [String] authorization The Authorization HTTP request header
176
176
  # @return [Boolean] True if delete succeeds, false otherwise
177
177
  def delete(
178
- token: :unset
178
+ authorization: :unset
179
179
  )
180
180
 
181
- headers = Twilio::Values.of({ 'Token' => token, })
181
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
182
182
  @version.delete('DELETE', @uri, headers: headers)
183
183
  end
184
184
 
185
185
  ##
186
186
  # Update the InsightsQuestionnairesCategoryInstance
187
187
  # @param [String] name The name of this category.
188
- # @param [String] token The Token HTTP request header
188
+ # @param [String] authorization The Authorization HTTP request header
189
189
  # @return [InsightsQuestionnairesCategoryInstance] Updated InsightsQuestionnairesCategoryInstance
190
190
  def update(
191
191
  name: nil,
192
- token: :unset
192
+ authorization: :unset
193
193
  )
194
194
 
195
195
  data = Twilio::Values.of({
196
196
  'Name' => name,
197
197
  })
198
198
 
199
- headers = Twilio::Values.of({ 'Token' => token, })
199
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
200
200
  payload = @version.update('POST', @uri, data: data, headers: headers)
201
201
  InsightsQuestionnairesCategoryInstance.new(
202
202
  @version,
@@ -312,30 +312,30 @@ module Twilio
312
312
 
313
313
  ##
314
314
  # Delete the InsightsQuestionnairesCategoryInstance
315
- # @param [String] token The Token HTTP request header
315
+ # @param [String] authorization The Authorization HTTP request header
316
316
  # @return [Boolean] True if delete succeeds, false otherwise
317
317
  def delete(
318
- token: :unset
318
+ authorization: :unset
319
319
  )
320
320
 
321
321
  context.delete(
322
- token: token,
322
+ authorization: authorization,
323
323
  )
324
324
  end
325
325
 
326
326
  ##
327
327
  # Update the InsightsQuestionnairesCategoryInstance
328
328
  # @param [String] name The name of this category.
329
- # @param [String] token The Token HTTP request header
329
+ # @param [String] authorization The Authorization HTTP request header
330
330
  # @return [InsightsQuestionnairesCategoryInstance] Updated InsightsQuestionnairesCategoryInstance
331
331
  def update(
332
332
  name: nil,
333
- token: :unset
333
+ authorization: :unset
334
334
  )
335
335
 
336
336
  context.update(
337
337
  name: name,
338
- token: token,
338
+ authorization: authorization,
339
339
  )
340
340
  end
341
341
 
@@ -36,7 +36,7 @@ module Twilio
36
36
  # @param [String] answer_set_id The answer_set for the question.
37
37
  # @param [Boolean] allow_na The flag to enable for disable NA for answer.
38
38
  # @param [String] description The description for the question.
39
- # @param [String] token The Token HTTP request header
39
+ # @param [String] authorization The Authorization HTTP request header
40
40
  # @return [InsightsQuestionnairesQuestionInstance] Created InsightsQuestionnairesQuestionInstance
41
41
  def create(
42
42
  category_sid: nil,
@@ -44,7 +44,7 @@ module Twilio
44
44
  answer_set_id: nil,
45
45
  allow_na: nil,
46
46
  description: :unset,
47
- token: :unset
47
+ authorization: :unset
48
48
  )
49
49
 
50
50
  data = Twilio::Values.of({
@@ -55,7 +55,7 @@ module Twilio
55
55
  'Description' => description,
56
56
  })
57
57
 
58
- headers = Twilio::Values.of({ 'Token' => token, })
58
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
59
59
  payload = @version.create('POST', @uri, data: data, headers: headers)
60
60
  InsightsQuestionnairesQuestionInstance.new(
61
61
  @version,
@@ -68,7 +68,7 @@ module Twilio
68
68
  # Lists InsightsQuestionnairesQuestionInstance records from the API as a list.
69
69
  # Unlike stream(), this operation is eager and will load `limit` records into
70
70
  # memory before returning.
71
- # @param [String] token The Token HTTP request header
71
+ # @param [String] authorization The Authorization HTTP request header
72
72
  # @param [Array[String]] category_sid The list of category SIDs
73
73
  # @param [Integer] limit Upper limit for the number of records to return. stream()
74
74
  # guarantees to never return more than limit. Default is no limit
@@ -77,9 +77,9 @@ module Twilio
77
77
  # but a limit is defined, stream() will attempt to read the limit with the most
78
78
  # efficient page size, i.e. min(limit, 1000)
79
79
  # @return [Array] Array of up to limit results
80
- def list(token: :unset, category_sid: :unset, limit: nil, page_size: nil)
80
+ def list(authorization: :unset, category_sid: :unset, limit: nil, page_size: nil)
81
81
  self.stream(
82
- token: token,
82
+ authorization: authorization,
83
83
  category_sid: category_sid,
84
84
  limit: limit,
85
85
  page_size: page_size
@@ -90,7 +90,7 @@ module Twilio
90
90
  # Streams Instance records from the API as an Enumerable.
91
91
  # This operation lazily loads records as efficiently as possible until the limit
92
92
  # is reached.
93
- # @param [String] token The Token HTTP request header
93
+ # @param [String] authorization The Authorization HTTP request header
94
94
  # @param [Array[String]] category_sid The list of category SIDs
95
95
  # @param [Integer] limit Upper limit for the number of records to return. stream()
96
96
  # guarantees to never return more than limit. Default is no limit
@@ -99,11 +99,11 @@ module Twilio
99
99
  # but a limit is defined, stream() will attempt to read the limit with the most
100
100
  # efficient page size, i.e. min(limit, 1000)
101
101
  # @return [Enumerable] Enumerable that will yield up to limit results
102
- def stream(token: :unset, category_sid: :unset, limit: nil, page_size: nil)
102
+ def stream(authorization: :unset, category_sid: :unset, limit: nil, page_size: nil)
103
103
  limits = @version.read_limits(limit, page_size)
104
104
 
105
105
  page = self.page(
106
- token: token,
106
+ authorization: authorization,
107
107
  category_sid: category_sid,
108
108
  page_size: limits[:page_size], )
109
109
 
@@ -127,16 +127,16 @@ module Twilio
127
127
  ##
128
128
  # Retrieve a single page of InsightsQuestionnairesQuestionInstance records from the API.
129
129
  # Request is executed immediately.
130
- # @param [String] token The Token HTTP request header
130
+ # @param [String] authorization The Authorization HTTP request header
131
131
  # @param [Array[String]] category_sid The list of category SIDs
132
132
  # @param [String] page_token PageToken provided by the API
133
133
  # @param [Integer] page_number Page Number, this value is simply for client state
134
134
  # @param [Integer] page_size Number of records to return, defaults to 50
135
135
  # @return [Page] Page of InsightsQuestionnairesQuestionInstance
136
- def page(token: :unset, category_sid: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
136
+ def page(authorization: :unset, category_sid: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
137
137
  params = Twilio::Values.of({
138
138
 
139
- 'Token' => token,
139
+ 'Authorization' => authorization,
140
140
 
141
141
  'CategorySid' => Twilio.serialize_list(category_sid),
142
142
 
@@ -191,13 +191,13 @@ module Twilio
191
191
  end
192
192
  ##
193
193
  # Delete the InsightsQuestionnairesQuestionInstance
194
- # @param [String] token The Token HTTP request header
194
+ # @param [String] authorization The Authorization HTTP request header
195
195
  # @return [Boolean] True if delete succeeds, false otherwise
196
196
  def delete(
197
- token: :unset
197
+ authorization: :unset
198
198
  )
199
199
 
200
- headers = Twilio::Values.of({ 'Token' => token, })
200
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
201
201
  @version.delete('DELETE', @uri, headers: headers)
202
202
  end
203
203
 
@@ -208,7 +208,7 @@ module Twilio
208
208
  # @param [String] question The question.
209
209
  # @param [String] description The description for the question.
210
210
  # @param [String] answer_set_id The answer_set for the question.
211
- # @param [String] token The Token HTTP request header
211
+ # @param [String] authorization The Authorization HTTP request header
212
212
  # @return [InsightsQuestionnairesQuestionInstance] Updated InsightsQuestionnairesQuestionInstance
213
213
  def update(
214
214
  allow_na: nil,
@@ -216,7 +216,7 @@ module Twilio
216
216
  question: :unset,
217
217
  description: :unset,
218
218
  answer_set_id: :unset,
219
- token: :unset
219
+ authorization: :unset
220
220
  )
221
221
 
222
222
  data = Twilio::Values.of({
@@ -227,7 +227,7 @@ module Twilio
227
227
  'AnswerSetId' => answer_set_id,
228
228
  })
229
229
 
230
- headers = Twilio::Values.of({ 'Token' => token, })
230
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
231
231
  payload = @version.update('POST', @uri, data: data, headers: headers)
232
232
  InsightsQuestionnairesQuestionInstance.new(
233
233
  @version,
@@ -385,14 +385,14 @@ module Twilio
385
385
 
386
386
  ##
387
387
  # Delete the InsightsQuestionnairesQuestionInstance
388
- # @param [String] token The Token HTTP request header
388
+ # @param [String] authorization The Authorization HTTP request header
389
389
  # @return [Boolean] True if delete succeeds, false otherwise
390
390
  def delete(
391
- token: :unset
391
+ authorization: :unset
392
392
  )
393
393
 
394
394
  context.delete(
395
- token: token,
395
+ authorization: authorization,
396
396
  )
397
397
  end
398
398
 
@@ -403,7 +403,7 @@ module Twilio
403
403
  # @param [String] question The question.
404
404
  # @param [String] description The description for the question.
405
405
  # @param [String] answer_set_id The answer_set for the question.
406
- # @param [String] token The Token HTTP request header
406
+ # @param [String] authorization The Authorization HTTP request header
407
407
  # @return [InsightsQuestionnairesQuestionInstance] Updated InsightsQuestionnairesQuestionInstance
408
408
  def update(
409
409
  allow_na: nil,
@@ -411,7 +411,7 @@ module Twilio
411
411
  question: :unset,
412
412
  description: :unset,
413
413
  answer_set_id: :unset,
414
- token: :unset
414
+ authorization: :unset
415
415
  )
416
416
 
417
417
  context.update(
@@ -420,7 +420,7 @@ module Twilio
420
420
  question: question,
421
421
  description: description,
422
422
  answer_set_id: answer_set_id,
423
- token: token,
423
+ authorization: authorization,
424
424
  )
425
425
  end
426
426
 
@@ -34,7 +34,7 @@ module Twilio
34
34
  # Lists InsightsSegmentsInstance records from the API as a list.
35
35
  # Unlike stream(), this operation is eager and will load `limit` records into
36
36
  # memory before returning.
37
- # @param [String] token The Token HTTP request header
37
+ # @param [String] authorization The Authorization HTTP request header
38
38
  # @param [String] segment_id To unique id of the segment
39
39
  # @param [Array[String]] reservation_id The list of reservation Ids
40
40
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -44,9 +44,9 @@ module Twilio
44
44
  # but a limit is defined, stream() will attempt to read the limit with the most
45
45
  # efficient page size, i.e. min(limit, 1000)
46
46
  # @return [Array] Array of up to limit results
47
- def list(token: :unset, segment_id: :unset, reservation_id: :unset, limit: nil, page_size: nil)
47
+ def list(authorization: :unset, segment_id: :unset, reservation_id: :unset, limit: nil, page_size: nil)
48
48
  self.stream(
49
- token: token,
49
+ authorization: authorization,
50
50
  segment_id: segment_id,
51
51
  reservation_id: reservation_id,
52
52
  limit: limit,
@@ -58,7 +58,7 @@ module Twilio
58
58
  # Streams Instance records from the API as an Enumerable.
59
59
  # This operation lazily loads records as efficiently as possible until the limit
60
60
  # is reached.
61
- # @param [String] token The Token HTTP request header
61
+ # @param [String] authorization The Authorization HTTP request header
62
62
  # @param [String] segment_id To unique id of the segment
63
63
  # @param [Array[String]] reservation_id The list of reservation Ids
64
64
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -68,11 +68,11 @@ module Twilio
68
68
  # but a limit is defined, stream() will attempt to read the limit with the most
69
69
  # efficient page size, i.e. min(limit, 1000)
70
70
  # @return [Enumerable] Enumerable that will yield up to limit results
71
- def stream(token: :unset, segment_id: :unset, reservation_id: :unset, limit: nil, page_size: nil)
71
+ def stream(authorization: :unset, segment_id: :unset, reservation_id: :unset, limit: nil, page_size: nil)
72
72
  limits = @version.read_limits(limit, page_size)
73
73
 
74
74
  page = self.page(
75
- token: token,
75
+ authorization: authorization,
76
76
  segment_id: segment_id,
77
77
  reservation_id: reservation_id,
78
78
  page_size: limits[:page_size], )
@@ -97,17 +97,17 @@ module Twilio
97
97
  ##
98
98
  # Retrieve a single page of InsightsSegmentsInstance records from the API.
99
99
  # Request is executed immediately.
100
- # @param [String] token The Token HTTP request header
100
+ # @param [String] authorization The Authorization HTTP request header
101
101
  # @param [String] segment_id To unique id of the segment
102
102
  # @param [Array[String]] reservation_id The list of reservation Ids
103
103
  # @param [String] page_token PageToken provided by the API
104
104
  # @param [Integer] page_number Page Number, this value is simply for client state
105
105
  # @param [Integer] page_size Number of records to return, defaults to 50
106
106
  # @return [Page] Page of InsightsSegmentsInstance
107
- def page(token: :unset, segment_id: :unset, reservation_id: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
107
+ def page(authorization: :unset, segment_id: :unset, reservation_id: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
108
108
  params = Twilio::Values.of({
109
109
 
110
- 'Token' => token,
110
+ 'Authorization' => authorization,
111
111
 
112
112
  'SegmentId' => segment_id,
113
113
 
@@ -31,13 +31,13 @@ module Twilio
31
31
  end
32
32
  ##
33
33
  # Fetch the InsightsSettingsAnswerSetsInstance
34
- # @param [String] token The Token HTTP request header
34
+ # @param [String] authorization The Authorization HTTP request header
35
35
  # @return [InsightsSettingsAnswerSetsInstance] Fetched InsightsSettingsAnswerSetsInstance
36
36
  def fetch(
37
- token: :unset
37
+ authorization: :unset
38
38
  )
39
39
 
40
- headers = Twilio::Values.of({ 'Token' => token, })
40
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
41
41
  payload = @version.fetch('GET', @uri, headers: headers)
42
42
  InsightsSettingsAnswerSetsInstance.new(
43
43
  @version,
@@ -31,13 +31,13 @@ module Twilio
31
31
  end
32
32
  ##
33
33
  # Fetch the InsightsSettingsCommentInstance
34
- # @param [String] token The Token HTTP request header
34
+ # @param [String] authorization The Authorization HTTP request header
35
35
  # @return [InsightsSettingsCommentInstance] Fetched InsightsSettingsCommentInstance
36
36
  def fetch(
37
- token: :unset
37
+ authorization: :unset
38
38
  )
39
39
 
40
- headers = Twilio::Values.of({ 'Token' => token, })
40
+ headers = Twilio::Values.of({ 'Authorization' => authorization, })
41
41
  payload = @version.fetch('GET', @uri, headers: headers)
42
42
  InsightsSettingsCommentInstance.new(
43
43
  @version,
@@ -189,7 +189,7 @@ module Twilio
189
189
  def invites
190
190
  unless @invites
191
191
  @invites = InteractionChannelInviteList.new(
192
- @version, interaction_sid: @solution[:interaction_sid], channel_sid: @solution[:sid], )
192
+ @version, interaction_sid: @solution[:interaction_sid], channel_sid: @solution[:sid], )
193
193
  end
194
194
  @invites
195
195
  end
@@ -207,7 +207,7 @@ module Twilio
207
207
 
208
208
  unless @participants
209
209
  @participants = InteractionChannelParticipantList.new(
210
- @version, interaction_sid: @solution[:interaction_sid], channel_sid: @solution[:sid], )
210
+ @version, interaction_sid: @solution[:interaction_sid], channel_sid: @solution[:sid], )
211
211
  end
212
212
 
213
213
  @participants
@@ -104,7 +104,7 @@ module Twilio
104
104
 
105
105
  unless @channels
106
106
  @channels = InteractionChannelList.new(
107
- @version, interaction_sid: @solution[:sid], )
107
+ @version, interaction_sid: @solution[:sid], )
108
108
  end
109
109
 
110
110
  @channels
@@ -78,7 +78,7 @@ module Twilio
78
78
  def metrics
79
79
  unless @metrics
80
80
  @metrics = MetricList.new(
81
- @version, call_sid: @solution[:sid], )
81
+ @version, call_sid: @solution[:sid], )
82
82
  end
83
83
  @metrics
84
84
  end
@@ -89,7 +89,7 @@ module Twilio
89
89
  def events
90
90
  unless @events
91
91
  @events = EventList.new(
92
- @version, call_sid: @solution[:sid], )
92
+ @version, call_sid: @solution[:sid], )
93
93
  end
94
94
  @events
95
95
  end
@@ -53,6 +53,10 @@ module Twilio
53
53
  # @param [String] subaccount
54
54
  # @param [Boolean] abnormal_session
55
55
  # @param [AnsweredBy] answered_by
56
+ # @param [String] connectivity_issues
57
+ # @param [String] quality_issues
58
+ # @param [Boolean] spam
59
+ # @param [String] call_scores
56
60
  # @param [Integer] limit Upper limit for the number of records to return. stream()
57
61
  # guarantees to never return more than limit. Default is no limit
58
62
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -60,7 +64,7 @@ module Twilio
60
64
  # but a limit is defined, stream() will attempt to read the limit with the most
61
65
  # efficient page size, i.e. min(limit, 1000)
62
66
  # @return [Array] Array of up to limit results
63
- def list(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, limit: nil, page_size: nil)
67
+ def list(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, connectivity_issues: :unset, quality_issues: :unset, spam: :unset, call_scores: :unset, limit: nil, page_size: nil)
64
68
  self.stream(
65
69
  from: from,
66
70
  to: to,
@@ -81,6 +85,10 @@ module Twilio
81
85
  subaccount: subaccount,
82
86
  abnormal_session: abnormal_session,
83
87
  answered_by: answered_by,
88
+ connectivity_issues: connectivity_issues,
89
+ quality_issues: quality_issues,
90
+ spam: spam,
91
+ call_scores: call_scores,
84
92
  limit: limit,
85
93
  page_size: page_size
86
94
  ).entries
@@ -109,6 +117,10 @@ module Twilio
109
117
  # @param [String] subaccount
110
118
  # @param [Boolean] abnormal_session
111
119
  # @param [AnsweredBy] answered_by
120
+ # @param [String] connectivity_issues
121
+ # @param [String] quality_issues
122
+ # @param [Boolean] spam
123
+ # @param [String] call_scores
112
124
  # @param [Integer] limit Upper limit for the number of records to return. stream()
113
125
  # guarantees to never return more than limit. Default is no limit
114
126
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -116,7 +128,7 @@ module Twilio
116
128
  # but a limit is defined, stream() will attempt to read the limit with the most
117
129
  # efficient page size, i.e. min(limit, 1000)
118
130
  # @return [Enumerable] Enumerable that will yield up to limit results
119
- def stream(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, limit: nil, page_size: nil)
131
+ def stream(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, connectivity_issues: :unset, quality_issues: :unset, spam: :unset, call_scores: :unset, limit: nil, page_size: nil)
120
132
  limits = @version.read_limits(limit, page_size)
121
133
 
122
134
  page = self.page(
@@ -139,6 +151,10 @@ module Twilio
139
151
  subaccount: subaccount,
140
152
  abnormal_session: abnormal_session,
141
153
  answered_by: answered_by,
154
+ connectivity_issues: connectivity_issues,
155
+ quality_issues: quality_issues,
156
+ spam: spam,
157
+ call_scores: call_scores,
142
158
  page_size: limits[:page_size], )
143
159
 
144
160
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
@@ -180,11 +196,15 @@ module Twilio
180
196
  # @param [String] subaccount
181
197
  # @param [Boolean] abnormal_session
182
198
  # @param [AnsweredBy] answered_by
199
+ # @param [String] connectivity_issues
200
+ # @param [String] quality_issues
201
+ # @param [Boolean] spam
202
+ # @param [String] call_scores
183
203
  # @param [String] page_token PageToken provided by the API
184
204
  # @param [Integer] page_number Page Number, this value is simply for client state
185
205
  # @param [Integer] page_size Number of records to return, defaults to 50
186
206
  # @return [Page] Page of CallSummariesInstance
187
- def page(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
207
+ def page(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, connectivity_issues: :unset, quality_issues: :unset, spam: :unset, call_scores: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
188
208
  params = Twilio::Values.of({
189
209
 
190
210
  'From' => from,
@@ -225,6 +245,14 @@ module Twilio
225
245
 
226
246
  'AnsweredBy' => answered_by,
227
247
 
248
+ 'ConnectivityIssues' => connectivity_issues,
249
+
250
+ 'QualityIssues' => quality_issues,
251
+
252
+ 'Spam' => spam,
253
+
254
+ 'CallScores' => call_scores,
255
+
228
256
  'PageToken' => page_token,
229
257
  'Page' => page_number,
230
258
  'PageSize' => page_size,
@@ -237,7 +237,7 @@ module Twilio
237
237
 
238
238
  unless @conference_participants
239
239
  @conference_participants = ConferenceParticipantList.new(
240
- @version, conference_sid: @solution[:conference_sid], )
240
+ @version, conference_sid: @solution[:conference_sid], )
241
241
  end
242
242
 
243
243
  @conference_participants
@@ -204,7 +204,7 @@ module Twilio
204
204
 
205
205
  unless @participants
206
206
  @participants = ParticipantList.new(
207
- @version, room_sid: @solution[:room_sid], )
207
+ @version, room_sid: @solution[:room_sid], )
208
208
  end
209
209
 
210
210
  @participants
@@ -244,7 +244,7 @@ module Twilio
244
244
 
245
245
  unless @members
246
246
  @members = MemberList.new(
247
- @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
247
+ @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
248
248
  end
249
249
 
250
250
  @members
@@ -263,7 +263,7 @@ module Twilio
263
263
 
264
264
  unless @messages
265
265
  @messages = MessageList.new(
266
- @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
266
+ @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
267
267
  end
268
268
 
269
269
  @messages
@@ -282,7 +282,7 @@ module Twilio
282
282
 
283
283
  unless @invites
284
284
  @invites = InviteList.new(
285
- @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
285
+ @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
286
286
  end
287
287
 
288
288
  @invites
@@ -228,7 +228,7 @@ module Twilio
228
228
  def user_channels
229
229
  unless @user_channels
230
230
  @user_channels = UserChannelList.new(
231
- @version, service_sid: @solution[:service_sid], user_sid: @solution[:sid], )
231
+ @version, service_sid: @solution[:service_sid], user_sid: @solution[:sid], )
232
232
  end
233
233
  @user_channels
234
234
  end