twilio-ruby 7.11.2 → 7.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/test-and-deploy.yml +13 -1
- data/CHANGES.md +272 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/githooks/pre-commit +11 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
- data/lib/twilio-ruby/rest/content/v1/content.rb +2 -2
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +9 -2
- data/lib/twilio-ruby/rest/conversations/v2/communication.rb +4 -1
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +14 -0
- data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +133 -12
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb +774 -0
- data/lib/twilio-ruby/rest/{numbers/v1/voice_verification_check.rb → insights/v3/custom_field_mappings_capacity.rb} +44 -48
- data/lib/twilio-ruby/rest/insights/v3.rb +22 -0
- data/lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb +33 -1
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +5 -5
- data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +3 -3
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +9 -9
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +1 -1
- data/lib/twilio-ruby/rest/memory/v1/store.rb +3 -3
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +3 -3
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +30 -2
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification.rb +30 -6
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +30 -6
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +45 -6
- data/lib/twilio-ruby/rest/numbers/v1.rb +0 -6
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +40 -0
- data/lib/twilio-ruby/rest/routes/v3/iso_country_code.rb +402 -0
- data/lib/twilio-ruby/rest/routes/v3.rb +43 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v2/recording_account_default_configuration.rb +547 -0
- data/lib/twilio-ruby/rest/voice/v2.rb +6 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +12 -6
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +6 -3
|
@@ -19,6 +19,19 @@ module Twilio
|
|
|
19
19
|
class V2 < Version
|
|
20
20
|
class ConversationList < ListResource
|
|
21
21
|
|
|
22
|
+
class ConversationWorkflow
|
|
23
|
+
# @param [flow_id]: [String] The Studio Flow to run.
|
|
24
|
+
attr_accessor :flow_id
|
|
25
|
+
def initialize(payload)
|
|
26
|
+
@flow_id = payload["flow_id"]
|
|
27
|
+
end
|
|
28
|
+
def to_json(options = {})
|
|
29
|
+
{
|
|
30
|
+
"flowId": @flow_id,
|
|
31
|
+
}.to_json(options)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
22
35
|
class ConversationsV2Address
|
|
23
36
|
# @param [channel]: [ConversationsV2Channel]
|
|
24
37
|
# @param [address]: [String] The address value formatted according to channel type: - SMS/VOICE: E.164 phone number (such as \"+18005550100\") - WHATSAPP: Phone number with whatsapp prefix (such as \"whatsapp:+18005550100\") - RCS: Sender ID or phone number with rcs prefix (such as \"rcs:brand_acme_agent\" or \"rcs:+18005550100\") - CHAT: Customer-defined string identifier
|
|
@@ -78,12 +91,14 @@ module Twilio
|
|
|
78
91
|
# @param [name]: [String] The name of the conversation.
|
|
79
92
|
# @param [configuration]: [ConversationList.CreateConversationWithConfigRequestConfiguration]
|
|
80
93
|
# @param [participants]: [Array<ConversationList.CreateConversationWithConfigRequestParticipants>] Optional list of Participants to create with the Conversation.
|
|
81
|
-
|
|
94
|
+
# @param [metadata]: [Hash<String, String>] Optional customer-managed key-value metadata for this Conversation. Maximum 8 entries; keys up to 128 characters allowing alphanumeric characters, periods, underscores, and dashes; values up to 512 characters.
|
|
95
|
+
attr_accessor :configuration_id, :name, :configuration, :participants, :metadata
|
|
82
96
|
def initialize(payload)
|
|
83
97
|
@configuration_id = payload["configuration_id"]
|
|
84
98
|
@name = payload["name"]
|
|
85
99
|
@configuration = payload["configuration"]
|
|
86
100
|
@participants = payload["participants"]
|
|
101
|
+
@metadata = payload["metadata"]
|
|
87
102
|
end
|
|
88
103
|
def to_json(options = {})
|
|
89
104
|
{
|
|
@@ -91,19 +106,29 @@ module Twilio
|
|
|
91
106
|
"name": @name,
|
|
92
107
|
"configuration": @configuration,
|
|
93
108
|
"participants": @participants,
|
|
109
|
+
"metadata": @metadata,
|
|
94
110
|
}.to_json(options)
|
|
95
111
|
end
|
|
96
112
|
end
|
|
97
113
|
|
|
98
114
|
class CreateConversationWithConfigRequestConfiguration
|
|
99
115
|
# @param [intelligence_configuration_ids]: [Array<String>] A list of Conversational Intelligence configuration IDs.
|
|
100
|
-
|
|
116
|
+
# @param [trait_extraction_strategy_ids]: [Array<String>] A list of Trait Extraction Strategy IDs.
|
|
117
|
+
# @param [observation_extraction_strategy_ids]: [Array<String>] A list of Observation Extraction Strategy IDs.
|
|
118
|
+
# @param [workflows]: [Array<ConversationList.ConversationWorkflow>] The Workflows to associate with this Conversation. Overrides the Configuration's own.
|
|
119
|
+
attr_accessor :intelligence_configuration_ids, :trait_extraction_strategy_ids, :observation_extraction_strategy_ids, :workflows
|
|
101
120
|
def initialize(payload)
|
|
102
121
|
@intelligence_configuration_ids = payload["intelligence_configuration_ids"]
|
|
122
|
+
@trait_extraction_strategy_ids = payload["trait_extraction_strategy_ids"]
|
|
123
|
+
@observation_extraction_strategy_ids = payload["observation_extraction_strategy_ids"]
|
|
124
|
+
@workflows = payload["workflows"]
|
|
103
125
|
end
|
|
104
126
|
def to_json(options = {})
|
|
105
127
|
{
|
|
106
128
|
"intelligenceConfigurationIds": @intelligence_configuration_ids,
|
|
129
|
+
"traitExtractionStrategyIds": @trait_extraction_strategy_ids,
|
|
130
|
+
"observationExtractionStrategyIds": @observation_extraction_strategy_ids,
|
|
131
|
+
"workflows": @workflows,
|
|
107
132
|
}.to_json(options)
|
|
108
133
|
end
|
|
109
134
|
end
|
|
@@ -153,17 +178,20 @@ module Twilio
|
|
|
153
178
|
# @param [name]: [String] The name of the Conversation.
|
|
154
179
|
# @param [status]: [String] Lifecycle status of a Conversation.
|
|
155
180
|
# @param [configuration]: [ConversationList.PatchConversationByIdRequestConfiguration]
|
|
156
|
-
|
|
181
|
+
# @param [metadata]: [Hash<String, String>] Merge patch for customer-managed metadata (max 8 entries after merge). Provided keys are added or updated; keys set to null are removed; keys not mentioned are preserved.
|
|
182
|
+
attr_accessor :name, :status, :configuration, :metadata
|
|
157
183
|
def initialize(payload)
|
|
158
184
|
@name = payload["name"]
|
|
159
185
|
@status = payload["status"]
|
|
160
186
|
@configuration = payload["configuration"]
|
|
187
|
+
@metadata = payload["metadata"]
|
|
161
188
|
end
|
|
162
189
|
def to_json(options = {})
|
|
163
190
|
{
|
|
164
191
|
"name": @name,
|
|
165
192
|
"status": @status,
|
|
166
193
|
"configuration": @configuration,
|
|
194
|
+
"metadata": @metadata,
|
|
167
195
|
}.to_json(options)
|
|
168
196
|
end
|
|
169
197
|
end
|
|
@@ -184,20 +212,36 @@ module Twilio
|
|
|
184
212
|
class UpdateConversationByIdRequest
|
|
185
213
|
# @param [name]: [String] The name of the Conversation.
|
|
186
214
|
# @param [status]: [String] Lifecycle status of a Conversation.
|
|
187
|
-
|
|
215
|
+
# @param [metadata]: [Hash<String, String>] Customer-managed key-value metadata for this Conversation. Maximum 8 entries; keys up to 128 characters allowing alphanumeric characters, periods, underscores, and dashes; values up to 512 characters.
|
|
216
|
+
attr_accessor :name, :status, :metadata
|
|
188
217
|
def initialize(payload)
|
|
189
218
|
@name = payload["name"]
|
|
190
219
|
@status = payload["status"]
|
|
220
|
+
@metadata = payload["metadata"]
|
|
191
221
|
end
|
|
192
222
|
def to_json(options = {})
|
|
193
223
|
{
|
|
194
224
|
"name": @name,
|
|
195
225
|
"status": @status,
|
|
226
|
+
"metadata": @metadata,
|
|
196
227
|
}.to_json(options)
|
|
197
228
|
end
|
|
198
229
|
end
|
|
199
230
|
|
|
200
231
|
|
|
232
|
+
class ConversationWorkflow
|
|
233
|
+
# @param [flow_id]: [String] The Studio Flow to run.
|
|
234
|
+
attr_accessor :flow_id
|
|
235
|
+
def initialize(payload)
|
|
236
|
+
@flow_id = payload["flow_id"]
|
|
237
|
+
end
|
|
238
|
+
def to_json(options = {})
|
|
239
|
+
{
|
|
240
|
+
"flowId": @flow_id,
|
|
241
|
+
}.to_json(options)
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
|
|
201
245
|
class ConversationsV2Address
|
|
202
246
|
# @param [channel]: [ConversationsV2Channel]
|
|
203
247
|
# @param [address]: [String] The address value formatted according to channel type: - SMS/VOICE: E.164 phone number (such as \"+18005550100\") - WHATSAPP: Phone number with whatsapp prefix (such as \"whatsapp:+18005550100\") - RCS: Sender ID or phone number with rcs prefix (such as \"rcs:brand_acme_agent\" or \"rcs:+18005550100\") - CHAT: Customer-defined string identifier
|
|
@@ -257,12 +301,14 @@ module Twilio
|
|
|
257
301
|
# @param [name]: [String] The name of the conversation.
|
|
258
302
|
# @param [configuration]: [ConversationList.CreateConversationWithConfigRequestConfiguration]
|
|
259
303
|
# @param [participants]: [Array<ConversationList.CreateConversationWithConfigRequestParticipants>] Optional list of Participants to create with the Conversation.
|
|
260
|
-
|
|
304
|
+
# @param [metadata]: [Hash<String, String>] Optional customer-managed key-value metadata for this Conversation. Maximum 8 entries; keys up to 128 characters allowing alphanumeric characters, periods, underscores, and dashes; values up to 512 characters.
|
|
305
|
+
attr_accessor :configuration_id, :name, :configuration, :participants, :metadata
|
|
261
306
|
def initialize(payload)
|
|
262
307
|
@configuration_id = payload["configuration_id"]
|
|
263
308
|
@name = payload["name"]
|
|
264
309
|
@configuration = payload["configuration"]
|
|
265
310
|
@participants = payload["participants"]
|
|
311
|
+
@metadata = payload["metadata"]
|
|
266
312
|
end
|
|
267
313
|
def to_json(options = {})
|
|
268
314
|
{
|
|
@@ -270,19 +316,29 @@ module Twilio
|
|
|
270
316
|
"name": @name,
|
|
271
317
|
"configuration": @configuration,
|
|
272
318
|
"participants": @participants,
|
|
319
|
+
"metadata": @metadata,
|
|
273
320
|
}.to_json(options)
|
|
274
321
|
end
|
|
275
322
|
end
|
|
276
323
|
|
|
277
324
|
class CreateConversationWithConfigRequestConfiguration
|
|
278
325
|
# @param [intelligence_configuration_ids]: [Array<String>] A list of Conversational Intelligence configuration IDs.
|
|
279
|
-
|
|
326
|
+
# @param [trait_extraction_strategy_ids]: [Array<String>] A list of Trait Extraction Strategy IDs.
|
|
327
|
+
# @param [observation_extraction_strategy_ids]: [Array<String>] A list of Observation Extraction Strategy IDs.
|
|
328
|
+
# @param [workflows]: [Array<ConversationList.ConversationWorkflow>] The Workflows to associate with this Conversation. Overrides the Configuration's own.
|
|
329
|
+
attr_accessor :intelligence_configuration_ids, :trait_extraction_strategy_ids, :observation_extraction_strategy_ids, :workflows
|
|
280
330
|
def initialize(payload)
|
|
281
331
|
@intelligence_configuration_ids = payload["intelligence_configuration_ids"]
|
|
332
|
+
@trait_extraction_strategy_ids = payload["trait_extraction_strategy_ids"]
|
|
333
|
+
@observation_extraction_strategy_ids = payload["observation_extraction_strategy_ids"]
|
|
334
|
+
@workflows = payload["workflows"]
|
|
282
335
|
end
|
|
283
336
|
def to_json(options = {})
|
|
284
337
|
{
|
|
285
338
|
"intelligenceConfigurationIds": @intelligence_configuration_ids,
|
|
339
|
+
"traitExtractionStrategyIds": @trait_extraction_strategy_ids,
|
|
340
|
+
"observationExtractionStrategyIds": @observation_extraction_strategy_ids,
|
|
341
|
+
"workflows": @workflows,
|
|
286
342
|
}.to_json(options)
|
|
287
343
|
end
|
|
288
344
|
end
|
|
@@ -332,17 +388,20 @@ module Twilio
|
|
|
332
388
|
# @param [name]: [String] The name of the Conversation.
|
|
333
389
|
# @param [status]: [String] Lifecycle status of a Conversation.
|
|
334
390
|
# @param [configuration]: [ConversationList.PatchConversationByIdRequestConfiguration]
|
|
335
|
-
|
|
391
|
+
# @param [metadata]: [Hash<String, String>] Merge patch for customer-managed metadata (max 8 entries after merge). Provided keys are added or updated; keys set to null are removed; keys not mentioned are preserved.
|
|
392
|
+
attr_accessor :name, :status, :configuration, :metadata
|
|
336
393
|
def initialize(payload)
|
|
337
394
|
@name = payload["name"]
|
|
338
395
|
@status = payload["status"]
|
|
339
396
|
@configuration = payload["configuration"]
|
|
397
|
+
@metadata = payload["metadata"]
|
|
340
398
|
end
|
|
341
399
|
def to_json(options = {})
|
|
342
400
|
{
|
|
343
401
|
"name": @name,
|
|
344
402
|
"status": @status,
|
|
345
403
|
"configuration": @configuration,
|
|
404
|
+
"metadata": @metadata,
|
|
346
405
|
}.to_json(options)
|
|
347
406
|
end
|
|
348
407
|
end
|
|
@@ -363,20 +422,36 @@ module Twilio
|
|
|
363
422
|
class UpdateConversationByIdRequest
|
|
364
423
|
# @param [name]: [String] The name of the Conversation.
|
|
365
424
|
# @param [status]: [String] Lifecycle status of a Conversation.
|
|
366
|
-
|
|
425
|
+
# @param [metadata]: [Hash<String, String>] Customer-managed key-value metadata for this Conversation. Maximum 8 entries; keys up to 128 characters allowing alphanumeric characters, periods, underscores, and dashes; values up to 512 characters.
|
|
426
|
+
attr_accessor :name, :status, :metadata
|
|
367
427
|
def initialize(payload)
|
|
368
428
|
@name = payload["name"]
|
|
369
429
|
@status = payload["status"]
|
|
430
|
+
@metadata = payload["metadata"]
|
|
370
431
|
end
|
|
371
432
|
def to_json(options = {})
|
|
372
433
|
{
|
|
373
434
|
"name": @name,
|
|
374
435
|
"status": @status,
|
|
436
|
+
"metadata": @metadata,
|
|
375
437
|
}.to_json(options)
|
|
376
438
|
end
|
|
377
439
|
end
|
|
378
440
|
|
|
379
441
|
|
|
442
|
+
class ConversationWorkflow
|
|
443
|
+
# @param [flow_id]: [String] The Studio Flow to run.
|
|
444
|
+
attr_accessor :flow_id
|
|
445
|
+
def initialize(payload)
|
|
446
|
+
@flow_id = payload["flow_id"]
|
|
447
|
+
end
|
|
448
|
+
def to_json(options = {})
|
|
449
|
+
{
|
|
450
|
+
"flowId": @flow_id,
|
|
451
|
+
}.to_json(options)
|
|
452
|
+
end
|
|
453
|
+
end
|
|
454
|
+
|
|
380
455
|
class ConversationsV2Address
|
|
381
456
|
# @param [channel]: [ConversationsV2Channel]
|
|
382
457
|
# @param [address]: [String] The address value formatted according to channel type: - SMS/VOICE: E.164 phone number (such as \"+18005550100\") - WHATSAPP: Phone number with whatsapp prefix (such as \"whatsapp:+18005550100\") - RCS: Sender ID or phone number with rcs prefix (such as \"rcs:brand_acme_agent\" or \"rcs:+18005550100\") - CHAT: Customer-defined string identifier
|
|
@@ -436,12 +511,14 @@ module Twilio
|
|
|
436
511
|
# @param [name]: [String] The name of the conversation.
|
|
437
512
|
# @param [configuration]: [ConversationList.CreateConversationWithConfigRequestConfiguration]
|
|
438
513
|
# @param [participants]: [Array<ConversationList.CreateConversationWithConfigRequestParticipants>] Optional list of Participants to create with the Conversation.
|
|
439
|
-
|
|
514
|
+
# @param [metadata]: [Hash<String, String>] Optional customer-managed key-value metadata for this Conversation. Maximum 8 entries; keys up to 128 characters allowing alphanumeric characters, periods, underscores, and dashes; values up to 512 characters.
|
|
515
|
+
attr_accessor :configuration_id, :name, :configuration, :participants, :metadata
|
|
440
516
|
def initialize(payload)
|
|
441
517
|
@configuration_id = payload["configuration_id"]
|
|
442
518
|
@name = payload["name"]
|
|
443
519
|
@configuration = payload["configuration"]
|
|
444
520
|
@participants = payload["participants"]
|
|
521
|
+
@metadata = payload["metadata"]
|
|
445
522
|
end
|
|
446
523
|
def to_json(options = {})
|
|
447
524
|
{
|
|
@@ -449,19 +526,29 @@ module Twilio
|
|
|
449
526
|
"name": @name,
|
|
450
527
|
"configuration": @configuration,
|
|
451
528
|
"participants": @participants,
|
|
529
|
+
"metadata": @metadata,
|
|
452
530
|
}.to_json(options)
|
|
453
531
|
end
|
|
454
532
|
end
|
|
455
533
|
|
|
456
534
|
class CreateConversationWithConfigRequestConfiguration
|
|
457
535
|
# @param [intelligence_configuration_ids]: [Array<String>] A list of Conversational Intelligence configuration IDs.
|
|
458
|
-
|
|
536
|
+
# @param [trait_extraction_strategy_ids]: [Array<String>] A list of Trait Extraction Strategy IDs.
|
|
537
|
+
# @param [observation_extraction_strategy_ids]: [Array<String>] A list of Observation Extraction Strategy IDs.
|
|
538
|
+
# @param [workflows]: [Array<ConversationList.ConversationWorkflow>] The Workflows to associate with this Conversation. Overrides the Configuration's own.
|
|
539
|
+
attr_accessor :intelligence_configuration_ids, :trait_extraction_strategy_ids, :observation_extraction_strategy_ids, :workflows
|
|
459
540
|
def initialize(payload)
|
|
460
541
|
@intelligence_configuration_ids = payload["intelligence_configuration_ids"]
|
|
542
|
+
@trait_extraction_strategy_ids = payload["trait_extraction_strategy_ids"]
|
|
543
|
+
@observation_extraction_strategy_ids = payload["observation_extraction_strategy_ids"]
|
|
544
|
+
@workflows = payload["workflows"]
|
|
461
545
|
end
|
|
462
546
|
def to_json(options = {})
|
|
463
547
|
{
|
|
464
548
|
"intelligenceConfigurationIds": @intelligence_configuration_ids,
|
|
549
|
+
"traitExtractionStrategyIds": @trait_extraction_strategy_ids,
|
|
550
|
+
"observationExtractionStrategyIds": @observation_extraction_strategy_ids,
|
|
551
|
+
"workflows": @workflows,
|
|
465
552
|
}.to_json(options)
|
|
466
553
|
end
|
|
467
554
|
end
|
|
@@ -511,17 +598,20 @@ module Twilio
|
|
|
511
598
|
# @param [name]: [String] The name of the Conversation.
|
|
512
599
|
# @param [status]: [String] Lifecycle status of a Conversation.
|
|
513
600
|
# @param [configuration]: [ConversationList.PatchConversationByIdRequestConfiguration]
|
|
514
|
-
|
|
601
|
+
# @param [metadata]: [Hash<String, String>] Merge patch for customer-managed metadata (max 8 entries after merge). Provided keys are added or updated; keys set to null are removed; keys not mentioned are preserved.
|
|
602
|
+
attr_accessor :name, :status, :configuration, :metadata
|
|
515
603
|
def initialize(payload)
|
|
516
604
|
@name = payload["name"]
|
|
517
605
|
@status = payload["status"]
|
|
518
606
|
@configuration = payload["configuration"]
|
|
607
|
+
@metadata = payload["metadata"]
|
|
519
608
|
end
|
|
520
609
|
def to_json(options = {})
|
|
521
610
|
{
|
|
522
611
|
"name": @name,
|
|
523
612
|
"status": @status,
|
|
524
613
|
"configuration": @configuration,
|
|
614
|
+
"metadata": @metadata,
|
|
525
615
|
}.to_json(options)
|
|
526
616
|
end
|
|
527
617
|
end
|
|
@@ -542,15 +632,18 @@ module Twilio
|
|
|
542
632
|
class UpdateConversationByIdRequest
|
|
543
633
|
# @param [name]: [String] The name of the Conversation.
|
|
544
634
|
# @param [status]: [String] Lifecycle status of a Conversation.
|
|
545
|
-
|
|
635
|
+
# @param [metadata]: [Hash<String, String>] Customer-managed key-value metadata for this Conversation. Maximum 8 entries; keys up to 128 characters allowing alphanumeric characters, periods, underscores, and dashes; values up to 512 characters.
|
|
636
|
+
attr_accessor :name, :status, :metadata
|
|
546
637
|
def initialize(payload)
|
|
547
638
|
@name = payload["name"]
|
|
548
639
|
@status = payload["status"]
|
|
640
|
+
@metadata = payload["metadata"]
|
|
549
641
|
end
|
|
550
642
|
def to_json(options = {})
|
|
551
643
|
{
|
|
552
644
|
"name": @name,
|
|
553
645
|
"status": @status,
|
|
646
|
+
"metadata": @metadata,
|
|
554
647
|
}.to_json(options)
|
|
555
648
|
end
|
|
556
649
|
end
|
|
@@ -1142,7 +1235,9 @@ module Twilio
|
|
|
1142
1235
|
'created_at' => Twilio.deserialize_iso8601_datetime(payload['created_at']),
|
|
1143
1236
|
'updated_at' => Twilio.deserialize_iso8601_datetime(payload['updated_at']),
|
|
1144
1237
|
'configuration' => payload['configuration'],
|
|
1238
|
+
'metadata' => payload['metadata'],
|
|
1145
1239
|
'participants' => payload['participants'],
|
|
1240
|
+
'action_id' => payload['action_id'],
|
|
1146
1241
|
'status_url' => payload['status_url'],
|
|
1147
1242
|
'related' => payload['related'],
|
|
1148
1243
|
'display_name' => payload['display_name'],
|
|
@@ -1152,6 +1247,8 @@ module Twilio
|
|
|
1152
1247
|
'channel_settings' => payload['channel_settings'],
|
|
1153
1248
|
'status_callbacks' => payload['status_callbacks'],
|
|
1154
1249
|
'intelligence_configuration_ids' => payload['intelligence_configuration_ids'],
|
|
1250
|
+
'trait_extraction_strategy_ids' => payload['trait_extraction_strategy_ids'],
|
|
1251
|
+
'observation_extraction_strategy_ids' => payload['observation_extraction_strategy_ids'],
|
|
1155
1252
|
'memory_extraction_enabled' => payload['memory_extraction_enabled'],
|
|
1156
1253
|
'conversations_v1_bridge' => payload['conversations_v1_bridge'],
|
|
1157
1254
|
'version' => payload['version'],
|
|
@@ -1221,12 +1318,24 @@ module Twilio
|
|
|
1221
1318
|
@properties['configuration']
|
|
1222
1319
|
end
|
|
1223
1320
|
|
|
1321
|
+
##
|
|
1322
|
+
# @return [Hash<String, String>] Customer-managed key-value pairs. Maximum 8 entries; keys up to 128 characters allowing alphanumeric characters, periods, underscores, and dashes; values up to 512 characters.
|
|
1323
|
+
def metadata
|
|
1324
|
+
@properties['metadata']
|
|
1325
|
+
end
|
|
1326
|
+
|
|
1224
1327
|
##
|
|
1225
1328
|
# @return [Array<ConversationsV2Participant>] Participants in this Conversation.
|
|
1226
1329
|
def participants
|
|
1227
1330
|
@properties['participants']
|
|
1228
1331
|
end
|
|
1229
1332
|
|
|
1333
|
+
##
|
|
1334
|
+
# @return [String] The Action created for the request's `action`, present only on the create response that dispatched one. Poll `GET /v2/Conversations/{ConversationId}/Actions/{ActionId}` for its status.
|
|
1335
|
+
def action_id
|
|
1336
|
+
@properties['action_id']
|
|
1337
|
+
end
|
|
1338
|
+
|
|
1230
1339
|
##
|
|
1231
1340
|
# @return [String] URL to poll for operation status.
|
|
1232
1341
|
def status_url
|
|
@@ -1281,6 +1390,18 @@ module Twilio
|
|
|
1281
1390
|
@properties['intelligence_configuration_ids']
|
|
1282
1391
|
end
|
|
1283
1392
|
|
|
1393
|
+
##
|
|
1394
|
+
# @return [Array<String>] A list of Trait Extraction Strategy IDs.
|
|
1395
|
+
def trait_extraction_strategy_ids
|
|
1396
|
+
@properties['trait_extraction_strategy_ids']
|
|
1397
|
+
end
|
|
1398
|
+
|
|
1399
|
+
##
|
|
1400
|
+
# @return [Array<String>] A list of Observation Extraction Strategy IDs.
|
|
1401
|
+
def observation_extraction_strategy_ids
|
|
1402
|
+
@properties['observation_extraction_strategy_ids']
|
|
1403
|
+
end
|
|
1404
|
+
|
|
1284
1405
|
##
|
|
1285
1406
|
# @return [Boolean] Whether memory extraction is enabled for conversations under this configuration. Defaults to false.
|
|
1286
1407
|
def memory_extraction_enabled
|
|
@@ -369,7 +369,7 @@ module Twilio
|
|
|
369
369
|
end
|
|
370
370
|
|
|
371
371
|
##
|
|
372
|
-
# @return [Array<String>] Tags
|
|
372
|
+
# @return [Array<String>] [Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags) that Voice Insights analysis applies to calls. They indicate a condition that may influence the subjective experience of call audio quality.
|
|
373
373
|
def tags
|
|
374
374
|
@properties['tags']
|
|
375
375
|
end
|
|
@@ -681,7 +681,7 @@ module Twilio
|
|
|
681
681
|
end
|
|
682
682
|
|
|
683
683
|
##
|
|
684
|
-
# @return [Array<String>] Tags
|
|
684
|
+
# @return [Array<String>] [Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags) that Voice Insights analysis applies to calls. They indicate a condition that may influence the subjective experience of call audio quality.
|
|
685
685
|
def tags
|
|
686
686
|
@properties['tags']
|
|
687
687
|
end
|