twilio-ruby 6.0.0.pre.rc.2 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +92 -40
  3. data/CONTRIBUTING.md +10 -8
  4. data/README.md +128 -46
  5. data/UPGRADE.md +7 -4
  6. data/advanced-examples/custom-http-client.md +170 -0
  7. data/lib/twilio-ruby/jwt/access_token.rb +0 -59
  8. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +1 -6
  9. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +7 -42
  10. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -42
  11. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +2 -10
  12. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +1 -6
  13. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +1 -5
  14. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -11
  15. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -5
  16. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -6
  17. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -10
  18. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +1 -5
  19. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +3 -16
  20. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -5
  21. data/lib/twilio-ruby/rest/api/v2010/account.rb +24 -103
  22. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +1 -5
  23. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -10
  24. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +6 -24
  25. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +2 -9
  26. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +3 -15
  27. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -6
  28. data/lib/twilio-ruby/rest/chat/v1/service.rb +3 -12
  29. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +4 -20
  30. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +2 -10
  31. data/lib/twilio-ruby/rest/chat/v2/service.rb +4 -16
  32. data/lib/twilio-ruby/rest/client.rb +16 -15
  33. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -5
  34. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +6 -36
  35. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -6
  36. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +6 -39
  37. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +1 -5
  38. data/lib/twilio-ruby/rest/conversations/v1/service.rb +5 -21
  39. data/lib/twilio-ruby/rest/conversations/v1/user.rb +1 -4
  40. data/lib/twilio-ruby/rest/events/v1/schema.rb +1 -4
  41. data/lib/twilio-ruby/rest/events/v1/sink.rb +2 -10
  42. data/lib/twilio-ruby/rest/events/v1/subscription.rb +1 -4
  43. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +20 -20
  44. data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +5 -5
  45. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +23 -23
  46. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +13 -13
  47. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +31 -31
  48. data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +13 -86
  49. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +1 -1
  50. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +1 -1
  51. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +2 -11
  52. data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +1 -4
  53. data/lib/twilio-ruby/rest/flex_api/v1.rb +30 -39
  54. data/lib/twilio-ruby/rest/insights/v1/call.rb +2 -10
  55. data/lib/twilio-ruby/rest/insights/v1/conference.rb +1 -4
  56. data/lib/twilio-ruby/rest/insights/v1/room.rb +1 -4
  57. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -15
  58. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -6
  59. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -12
  60. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +4 -20
  61. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +2 -10
  62. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +4 -16
  63. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +2 -9
  64. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +2 -21
  65. data/lib/twilio-ruby/rest/messaging/v1/service.rb +31 -47
  66. data/lib/twilio-ruby/rest/messaging/v1.rb +0 -15
  67. data/lib/twilio-ruby/rest/messaging.rb +1 -1
  68. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +2 -8
  69. data/lib/twilio-ruby/rest/microvisor.rb +2 -1
  70. data/lib/twilio-ruby/rest/notify/v1/service.rb +2 -9
  71. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +4 -18
  72. data/lib/twilio-ruby/rest/oauth.rb +1 -1
  73. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +4 -16
  74. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +1 -5
  75. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +1 -4
  76. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +1 -4
  77. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +1 -5
  78. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -10
  79. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -10
  80. data/lib/twilio-ruby/rest/preview/sync/service.rb +3 -12
  81. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +1 -5
  82. data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -10
  83. data/lib/twilio-ruby/rest/preview/understand/assistant.rb +5 -20
  84. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -6
  85. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -10
  86. data/lib/twilio-ruby/rest/proxy/v1/service.rb +3 -12
  87. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +1 -5
  88. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +3 -15
  89. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +1 -5
  90. data/lib/twilio-ruby/rest/serverless/v1/service.rb +4 -16
  91. data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +1 -5
  92. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -5
  93. data/lib/twilio-ruby/rest/studio/v1/flow.rb +2 -8
  94. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -5
  95. data/lib/twilio-ruby/rest/studio/v2/flow.rb +2 -8
  96. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +1 -4
  97. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +2 -10
  98. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +1 -5
  99. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +2 -10
  100. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +2 -10
  101. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -6
  102. data/lib/twilio-ruby/rest/sync/v1/service.rb +4 -16
  103. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +1 -5
  104. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -10
  105. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +7 -28
  106. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +4 -16
  107. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +3 -12
  108. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +3 -12
  109. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +1 -7
  110. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +3 -16
  111. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +1 -5
  112. data/lib/twilio-ruby/rest/verify/v2/service.rb +11 -33
  113. data/lib/twilio-ruby/rest/verify/v2/template.rb +5 -5
  114. data/lib/twilio-ruby/rest/video/v1/room/participant.rb +3 -16
  115. data/lib/twilio-ruby/rest/video/v1/room.rb +3 -13
  116. data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +1 -4
  117. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -5
  118. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +2 -10
  119. data/lib/twilio-ruby/version.rb +1 -1
  120. data/twilio-ruby.gemspec +1 -1
  121. metadata +9 -9
  122. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +0 -730
@@ -1,12 +1,12 @@
1
1
  ##
2
- # This code was generated by
3
- # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
- # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
- # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
- #
7
- # NOTE: This class is auto generated by OpenAPI Generator.
8
- # https://openapi-generator.tech
9
- # Do not edit the class manually.
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # NOTE: This class is auto generated by OpenAPI Generator.
8
+ # https://openapi-generator.tech
9
+ # Do not edit the class manually.
10
10
 
11
11
  require 'twilio-ruby/base/client_base'
12
12
 
@@ -224,7 +224,7 @@ module Twilio
224
224
  def available_phone_numbers(countryCode=:unset)
225
225
  self.api.v2010.account.available_phone_numbers(countryCode)
226
226
  end
227
-
227
+
228
228
  ##
229
229
  # @param [string] sid The SID of the Call resource to fetch.
230
230
 
@@ -273,8 +273,8 @@ module Twilio
273
273
  def messages(sid=:unset)
274
274
  self.api.v2010.account.messages(sid)
275
275
  end
276
-
277
-
276
+
277
+
278
278
  ##
279
279
  # @param [string] sid The Twilio-provided string that uniquely identifies the Notification resource to fetch.
280
280
 
@@ -322,8 +322,8 @@ module Twilio
322
322
  def signing_keys(sid=:unset)
323
323
  self.api.v2010.account.signing_keys(sid)
324
324
  end
325
-
326
-
325
+
326
+
327
327
  ##
328
328
  # @param [string] sid The Twilio-provided string that uniquely identifies the Transcription resource to fetch.
329
329
 
@@ -332,8 +332,8 @@ module Twilio
332
332
  def transcriptions(sid=:unset)
333
333
  self.api.v2010.account.transcriptions(sid)
334
334
  end
335
-
336
-
335
+
336
+
337
337
 
338
338
  ##
339
339
  # Provide a user friendly representation
@@ -343,3 +343,4 @@ module Twilio
343
343
  end
344
344
  end
345
345
  end
346
+
@@ -270,11 +270,7 @@ module Twilio
270
270
 
271
271
  unless @delivery_receipts
272
272
  @delivery_receipts = DeliveryReceiptList.new(
273
- @version,
274
- conversation_sid: @solution[:conversation_sid],
275
- message_sid: @solution[:sid]
276
-
277
- )
273
+ @version, conversation_sid: @solution[:conversation_sid], message_sid: @solution[:sid], )
278
274
  end
279
275
 
280
276
  @delivery_receipts
@@ -80,9 +80,6 @@ module Twilio
80
80
  # Lists ConversationInstance records from the API as a list.
81
81
  # Unlike stream(), this operation is eager and will load `limit` records into
82
82
  # memory before returning.
83
- # @param [String] start_date Start date in ISO8601 format for sorting and filtering list of Conversations.
84
- # @param [String] end_date End date in ISO8601 format for sorting and filtering list of Conversations.
85
- # @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
86
83
  # @param [Integer] limit Upper limit for the number of records to return. stream()
87
84
  # guarantees to never return more than limit. Default is no limit
88
85
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -90,11 +87,8 @@ module Twilio
90
87
  # but a limit is defined, stream() will attempt to read the limit with the most
91
88
  # efficient page size, i.e. min(limit, 1000)
92
89
  # @return [Array] Array of up to limit results
93
- def list(start_date: :unset, end_date: :unset, state: :unset, limit: nil, page_size: nil)
90
+ def list(limit: nil, page_size: nil)
94
91
  self.stream(
95
- start_date: start_date,
96
- end_date: end_date,
97
- state: state,
98
92
  limit: limit,
99
93
  page_size: page_size
100
94
  ).entries
@@ -104,9 +98,6 @@ module Twilio
104
98
  # Streams Instance records from the API as an Enumerable.
105
99
  # This operation lazily loads records as efficiently as possible until the limit
106
100
  # is reached.
107
- # @param [String] start_date Start date in ISO8601 format for sorting and filtering list of Conversations.
108
- # @param [String] end_date End date in ISO8601 format for sorting and filtering list of Conversations.
109
- # @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
110
101
  # @param [Integer] limit Upper limit for the number of records to return. stream()
111
102
  # guarantees to never return more than limit. Default is no limit
112
103
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -114,13 +105,10 @@ module Twilio
114
105
  # but a limit is defined, stream() will attempt to read the limit with the most
115
106
  # efficient page size, i.e. min(limit, 1000)
116
107
  # @return [Enumerable] Enumerable that will yield up to limit results
117
- def stream(start_date: :unset, end_date: :unset, state: :unset, limit: nil, page_size: nil)
108
+ def stream(limit: nil, page_size: nil)
118
109
  limits = @version.read_limits(limit, page_size)
119
110
 
120
111
  page = self.page(
121
- start_date: start_date,
122
- end_date: end_date,
123
- state: state,
124
112
  page_size: limits[:page_size], )
125
113
 
126
114
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
@@ -143,22 +131,13 @@ module Twilio
143
131
  ##
144
132
  # Retrieve a single page of ConversationInstance records from the API.
145
133
  # Request is executed immediately.
146
- # @param [String] start_date Start date in ISO8601 format for sorting and filtering list of Conversations.
147
- # @param [String] end_date End date in ISO8601 format for sorting and filtering list of Conversations.
148
- # @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
149
134
  # @param [String] page_token PageToken provided by the API
150
135
  # @param [Integer] page_number Page Number, this value is simply for client state
151
136
  # @param [Integer] page_size Number of records to return, defaults to 50
152
137
  # @return [Page] Page of ConversationInstance
153
- def page(start_date: :unset, end_date: :unset, state: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
138
+ def page(page_token: :unset, page_number: :unset, page_size: :unset)
154
139
  params = Twilio::Values.of({
155
140
 
156
- 'StartDate' => start_date,
157
-
158
- 'EndDate' => end_date,
159
-
160
- 'State' => state,
161
-
162
141
  'PageToken' => page_token,
163
142
  'Page' => page_number,
164
143
  'PageSize' => page_size,
@@ -295,10 +274,7 @@ module Twilio
295
274
 
296
275
  unless @webhooks
297
276
  @webhooks = WebhookList.new(
298
- @version,
299
- conversation_sid: @solution[:sid]
300
-
301
- )
277
+ @version, conversation_sid: @solution[:sid], )
302
278
  end
303
279
 
304
280
  @webhooks
@@ -317,10 +293,7 @@ module Twilio
317
293
 
318
294
  unless @messages
319
295
  @messages = MessageList.new(
320
- @version,
321
- conversation_sid: @solution[:sid]
322
-
323
- )
296
+ @version, conversation_sid: @solution[:sid], )
324
297
  end
325
298
 
326
299
  @messages
@@ -339,10 +312,7 @@ module Twilio
339
312
 
340
313
  unless @participants
341
314
  @participants = ParticipantList.new(
342
- @version,
343
- conversation_sid: @solution[:sid]
344
-
345
- )
315
+ @version, conversation_sid: @solution[:sid], )
346
316
  end
347
317
 
348
318
  @participants
@@ -275,12 +275,7 @@ module Twilio
275
275
 
276
276
  unless @delivery_receipts
277
277
  @delivery_receipts = DeliveryReceiptList.new(
278
- @version,
279
- chat_service_sid: @solution[:chat_service_sid],
280
- conversation_sid: @solution[:conversation_sid],
281
- message_sid: @solution[:sid]
282
-
283
- )
278
+ @version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:conversation_sid], message_sid: @solution[:sid], )
284
279
  end
285
280
 
286
281
  @delivery_receipts
@@ -83,9 +83,6 @@ module Twilio
83
83
  # Lists ConversationInstance records from the API as a list.
84
84
  # Unlike stream(), this operation is eager and will load `limit` records into
85
85
  # memory before returning.
86
- # @param [String] start_date Start date in ISO8601 format for sorting and filtering list of Conversations.
87
- # @param [String] end_date End date in ISO8601 format for sorting and filtering list of Conversations.
88
- # @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
89
86
  # @param [Integer] limit Upper limit for the number of records to return. stream()
90
87
  # guarantees to never return more than limit. Default is no limit
91
88
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -93,11 +90,8 @@ module Twilio
93
90
  # but a limit is defined, stream() will attempt to read the limit with the most
94
91
  # efficient page size, i.e. min(limit, 1000)
95
92
  # @return [Array] Array of up to limit results
96
- def list(start_date: :unset, end_date: :unset, state: :unset, limit: nil, page_size: nil)
93
+ def list(limit: nil, page_size: nil)
97
94
  self.stream(
98
- start_date: start_date,
99
- end_date: end_date,
100
- state: state,
101
95
  limit: limit,
102
96
  page_size: page_size
103
97
  ).entries
@@ -107,9 +101,6 @@ module Twilio
107
101
  # Streams Instance records from the API as an Enumerable.
108
102
  # This operation lazily loads records as efficiently as possible until the limit
109
103
  # is reached.
110
- # @param [String] start_date Start date in ISO8601 format for sorting and filtering list of Conversations.
111
- # @param [String] end_date End date in ISO8601 format for sorting and filtering list of Conversations.
112
- # @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
113
104
  # @param [Integer] limit Upper limit for the number of records to return. stream()
114
105
  # guarantees to never return more than limit. Default is no limit
115
106
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -117,13 +108,10 @@ module Twilio
117
108
  # but a limit is defined, stream() will attempt to read the limit with the most
118
109
  # efficient page size, i.e. min(limit, 1000)
119
110
  # @return [Enumerable] Enumerable that will yield up to limit results
120
- def stream(start_date: :unset, end_date: :unset, state: :unset, limit: nil, page_size: nil)
111
+ def stream(limit: nil, page_size: nil)
121
112
  limits = @version.read_limits(limit, page_size)
122
113
 
123
114
  page = self.page(
124
- start_date: start_date,
125
- end_date: end_date,
126
- state: state,
127
115
  page_size: limits[:page_size], )
128
116
 
129
117
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
@@ -146,22 +134,13 @@ module Twilio
146
134
  ##
147
135
  # Retrieve a single page of ConversationInstance records from the API.
148
136
  # Request is executed immediately.
149
- # @param [String] start_date Start date in ISO8601 format for sorting and filtering list of Conversations.
150
- # @param [String] end_date End date in ISO8601 format for sorting and filtering list of Conversations.
151
- # @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
152
137
  # @param [String] page_token PageToken provided by the API
153
138
  # @param [Integer] page_number Page Number, this value is simply for client state
154
139
  # @param [Integer] page_size Number of records to return, defaults to 50
155
140
  # @return [Page] Page of ConversationInstance
156
- def page(start_date: :unset, end_date: :unset, state: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
141
+ def page(page_token: :unset, page_number: :unset, page_size: :unset)
157
142
  params = Twilio::Values.of({
158
143
 
159
- 'StartDate' => start_date,
160
-
161
- 'EndDate' => end_date,
162
-
163
- 'State' => state,
164
-
165
144
  'PageToken' => page_token,
166
145
  'Page' => page_number,
167
146
  'PageSize' => page_size,
@@ -301,11 +280,7 @@ module Twilio
301
280
 
302
281
  unless @participants
303
282
  @participants = ParticipantList.new(
304
- @version,
305
- chat_service_sid: @solution[:chat_service_sid],
306
- conversation_sid: @solution[:sid]
307
-
308
- )
283
+ @version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:sid], )
309
284
  end
310
285
 
311
286
  @participants
@@ -324,11 +299,7 @@ module Twilio
324
299
 
325
300
  unless @messages
326
301
  @messages = MessageList.new(
327
- @version,
328
- chat_service_sid: @solution[:chat_service_sid],
329
- conversation_sid: @solution[:sid]
330
-
331
- )
302
+ @version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:sid], )
332
303
  end
333
304
 
334
305
  @messages
@@ -347,11 +318,7 @@ module Twilio
347
318
 
348
319
  unless @webhooks
349
320
  @webhooks = WebhookList.new(
350
- @version,
351
- chat_service_sid: @solution[:chat_service_sid],
352
- conversation_sid: @solution[:sid]
353
-
354
- )
321
+ @version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:sid], )
355
322
  end
356
323
 
357
324
  @webhooks
@@ -245,11 +245,7 @@ module Twilio
245
245
 
246
246
  unless @user_conversations
247
247
  @user_conversations = UserConversationList.new(
248
- @version,
249
- chat_service_sid: @solution[:chat_service_sid],
250
- user_sid: @solution[:sid]
251
-
252
- )
248
+ @version, chat_service_sid: @solution[:chat_service_sid], user_sid: @solution[:sid], )
253
249
  end
254
250
 
255
251
  @user_conversations
@@ -192,12 +192,8 @@ module Twilio
192
192
  def participant_conversations
193
193
  unless @participant_conversations
194
194
  @participant_conversations = ParticipantConversationList.new(
195
- @version,
196
- service_sid: @solution[:sid]
197
-
198
- )
195
+ @version, chat_service_sid: @solution[:sid], )
199
196
  end
200
-
201
197
  @participant_conversations
202
198
  end
203
199
  ##
@@ -214,10 +210,7 @@ module Twilio
214
210
 
215
211
  unless @users
216
212
  @users = UserList.new(
217
- @version,
218
- service_sid: @solution[:sid]
219
-
220
- )
213
+ @version, chat_service_sid: @solution[:sid], )
221
214
  end
222
215
 
223
216
  @users
@@ -236,10 +229,7 @@ module Twilio
236
229
 
237
230
  unless @roles
238
231
  @roles = RoleList.new(
239
- @version,
240
- service_sid: @solution[:sid]
241
-
242
- )
232
+ @version, chat_service_sid: @solution[:sid], )
243
233
  end
244
234
 
245
235
  @roles
@@ -268,10 +258,7 @@ module Twilio
268
258
 
269
259
  unless @bindings
270
260
  @bindings = BindingList.new(
271
- @version,
272
- service_sid: @solution[:sid]
273
-
274
- )
261
+ @version, chat_service_sid: @solution[:sid], )
275
262
  end
276
263
 
277
264
  @bindings
@@ -290,10 +277,7 @@ module Twilio
290
277
 
291
278
  unless @conversations
292
279
  @conversations = ConversationList.new(
293
- @version,
294
- service_sid: @solution[:sid]
295
-
296
- )
280
+ @version, chat_service_sid: @solution[:sid], )
297
281
  end
298
282
 
299
283
  @conversations
@@ -239,10 +239,7 @@ module Twilio
239
239
 
240
240
  unless @user_conversations
241
241
  @user_conversations = UserConversationList.new(
242
- @version,
243
- user_sid: @solution[:sid]
244
-
245
- )
242
+ @version, user_sid: @solution[:sid], )
246
243
  end
247
244
 
248
245
  @user_conversations
@@ -84,10 +84,7 @@ module Twilio
84
84
 
85
85
  unless @versions
86
86
  @versions = SchemaVersionList.new(
87
- @version,
88
- schema_id: @solution[:id]
89
-
90
- )
87
+ @version, id: @solution[:id], )
91
88
  end
92
89
 
93
90
  @versions
@@ -230,12 +230,8 @@ module Twilio
230
230
  def sink_test
231
231
  unless @sink_test
232
232
  @sink_test = SinkTestList.new(
233
- @version,
234
- sink_sid: @solution[:sid]
235
-
236
- )
233
+ @version, sid: @solution[:sid], )
237
234
  end
238
-
239
235
  @sink_test
240
236
  end
241
237
  ##
@@ -245,12 +241,8 @@ module Twilio
245
241
  def sink_validate
246
242
  unless @sink_validate
247
243
  @sink_validate = SinkValidateList.new(
248
- @version,
249
- sink_sid: @solution[:sid]
250
-
251
- )
244
+ @version, sid: @solution[:sid], )
252
245
  end
253
-
254
246
  @sink_validate
255
247
  end
256
248
 
@@ -232,10 +232,7 @@ module Twilio
232
232
 
233
233
  unless @subscribed_events
234
234
  @subscribed_events = SubscribedEventList.new(
235
- @version,
236
- subscription_sid: @solution[:sid]
237
-
238
- )
235
+ @version, subscription_sid: @solution[:sid], )
239
236
  end
240
237
 
241
238
  @subscribed_events
@@ -26,27 +26,27 @@ module Twilio
26
26
  super(version)
27
27
  # Path Solution
28
28
  @solution = { }
29
- @uri = "/Insights/QM/Assessments"
29
+ @uri = "/Insights/QualityManagement/Assessments"
30
30
 
31
31
  end
32
32
  ##
33
33
  # Create the AssessmentsInstance
34
- # @param [String] category_id The id of the category
34
+ # @param [String] category_sid The SID of the category
35
35
  # @param [String] category_name The name of the category
36
36
  # @param [String] segment_id Segment Id of the conversation
37
37
  # @param [String] user_name Name of the user assessing conversation
38
38
  # @param [String] user_email Email of the user assessing conversation
39
39
  # @param [String] agent_id The id of the Agent
40
40
  # @param [Float] offset The offset of the conversation.
41
- # @param [String] metric_id The question Id selected for assessment
41
+ # @param [String] metric_id The question SID selected for assessment
42
42
  # @param [String] metric_name The question name of the assessment
43
43
  # @param [String] answer_text The answer text selected by user
44
44
  # @param [String] answer_id The id of the answer selected by user
45
- # @param [String] questionnaire_id Questionnaire Id of the associated question
45
+ # @param [String] questionnaire_sid Questionnaire SID of the associated question
46
46
  # @param [String] token The Token HTTP request header
47
47
  # @return [AssessmentsInstance] Created AssessmentsInstance
48
48
  def create(
49
- category_id: nil,
49
+ category_sid: nil,
50
50
  category_name: nil,
51
51
  segment_id: nil,
52
52
  user_name: nil,
@@ -57,12 +57,12 @@ module Twilio
57
57
  metric_name: nil,
58
58
  answer_text: nil,
59
59
  answer_id: nil,
60
- questionnaire_id: nil,
60
+ questionnaire_sid: nil,
61
61
  token: :unset
62
62
  )
63
63
 
64
64
  data = Twilio::Values.of({
65
- 'CategoryId' => category_id,
65
+ 'CategorySid' => category_sid,
66
66
  'CategoryName' => category_name,
67
67
  'SegmentId' => segment_id,
68
68
  'UserName' => user_name,
@@ -73,7 +73,7 @@ module Twilio
73
73
  'MetricName' => metric_name,
74
74
  'AnswerText' => answer_text,
75
75
  'AnswerId' => answer_id,
76
- 'QuestionnaireId' => questionnaire_id,
76
+ 'QuestionnaireSid' => questionnaire_sid,
77
77
  })
78
78
 
79
79
  headers = Twilio::Values.of({ 'Token' => token, })
@@ -199,14 +199,14 @@ module Twilio
199
199
  ##
200
200
  # Initialize the AssessmentsContext
201
201
  # @param [Version] version Version that contains the resource
202
- # @param [String] assessment_id The id of the assessment to be modified
202
+ # @param [String] assessment_sid The SID of the assessment to be modified
203
203
  # @return [AssessmentsContext] AssessmentsContext
204
- def initialize(version, assessment_id)
204
+ def initialize(version, assessment_sid)
205
205
  super(version)
206
206
 
207
207
  # Path Solution
208
- @solution = { assessment_id: assessment_id, }
209
- @uri = "/Insights/QM/Assessments/#{@solution[:assessment_id]}"
208
+ @solution = { assessment_sid: assessment_sid, }
209
+ @uri = "/Insights/QualityManagement/Assessments/#{@solution[:assessment_sid]}"
210
210
 
211
211
 
212
212
  end
@@ -235,7 +235,7 @@ module Twilio
235
235
  AssessmentsInstance.new(
236
236
  @version,
237
237
  payload,
238
- assessment_id: @solution[:assessment_id],
238
+ assessment_sid: @solution[:assessment_sid],
239
239
  )
240
240
  end
241
241
 
@@ -293,13 +293,13 @@ module Twilio
293
293
  # resource.
294
294
  # @param [String] sid The SID of the Call resource to fetch.
295
295
  # @return [AssessmentsInstance] AssessmentsInstance
296
- def initialize(version, payload , assessment_id: nil)
296
+ def initialize(version, payload , assessment_sid: nil)
297
297
  super(version)
298
298
 
299
299
  # Marshaled Properties
300
300
  @properties = {
301
301
  'account_sid' => payload['account_sid'],
302
- 'assessment_id' => payload['assessment_id'],
302
+ 'assessment_sid' => payload['assessment_sid'],
303
303
  'offset' => payload['offset'],
304
304
  'report' => payload['report'],
305
305
  'weight' => payload['weight'],
@@ -316,7 +316,7 @@ module Twilio
316
316
 
317
317
  # Context
318
318
  @instance_context = nil
319
- @params = { 'assessment_id' => assessment_id || @properties['assessment_id'] , }
319
+ @params = { 'assessment_sid' => assessment_sid || @properties['assessment_sid'] , }
320
320
  end
321
321
 
322
322
  ##
@@ -325,7 +325,7 @@ module Twilio
325
325
  # @return [AssessmentsContext] CallContext for this CallInstance
326
326
  def context
327
327
  unless @instance_context
328
- @instance_context = AssessmentsContext.new(@version , @params['assessment_id'])
328
+ @instance_context = AssessmentsContext.new(@version , @params['assessment_sid'])
329
329
  end
330
330
  @instance_context
331
331
  end
@@ -337,9 +337,9 @@ module Twilio
337
337
  end
338
338
 
339
339
  ##
340
- # @return [String] The unique id of the assessment
341
- def assessment_id
342
- @properties['assessment_id']
340
+ # @return [String] The SID of the assessment
341
+ def assessment_sid
342
+ @properties['assessment_sid']
343
343
  end
344
344
 
345
345
  ##
@@ -26,7 +26,7 @@ module Twilio
26
26
  super(version)
27
27
  # Path Solution
28
28
  @solution = { }
29
- @uri = "/Insights/QM/Assessments/Comments"
29
+ @uri = "/Insights/QualityManagement/Assessments/Comments"
30
30
 
31
31
  end
32
32
  ##
@@ -231,7 +231,7 @@ module Twilio
231
231
  # Marshaled Properties
232
232
  @properties = {
233
233
  'account_sid' => payload['account_sid'],
234
- 'assessment_id' => payload['assessment_id'],
234
+ 'assessment_sid' => payload['assessment_sid'],
235
235
  'comment' => payload['comment'],
236
236
  'offset' => payload['offset'],
237
237
  'report' => payload['report'],
@@ -253,9 +253,9 @@ module Twilio
253
253
  end
254
254
 
255
255
  ##
256
- # @return [String] The unique ID of the assessment.
257
- def assessment_id
258
- @properties['assessment_id']
256
+ # @return [String] The SID of the assessment.
257
+ def assessment_sid
258
+ @properties['assessment_sid']
259
259
  end
260
260
 
261
261
  ##