twilio-ruby 7.10.7 → 7.11.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.
- checksums.yaml +4 -4
- data/.github/workflows/test-and-deploy.yml +43 -67
- data/.gitignore +0 -1
- data/CHANGES.md +46 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +154 -0
- data/README.md +3 -3
- data/Rakefile +1 -1
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +25 -6
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +48 -12
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +56 -2
- data/lib/twilio-ruby/rest/client.rb +0 -5
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +11 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +2 -2
- data/lib/twilio-ruby/rest/conversations/v2/communication.rb +43 -21
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +59 -21
- data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +28 -28
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v2/participant.rb +58 -58
- data/lib/twilio-ruby/rest/conversations/v2.rb +45 -45
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +2 -2
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +15 -2
- data/lib/twilio-ruby/rest/iam_base.rb +6 -1
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/call/event.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v3/metadata.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v3/query.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v3.rb +1 -1
- data/lib/twilio-ruby/rest/intelligence/v3/conversation.rb +8 -8
- data/lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb +502 -0
- data/lib/twilio-ruby/rest/intelligence/v3.rb +6 -0
- data/lib/twilio-ruby/rest/knowledge/v2/chunk.rb +28 -0
- data/lib/twilio-ruby/rest/knowledge/v2/knowledge.rb +38 -0
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +8 -117
- data/lib/twilio-ruby/rest/knowledge/v2.rb +1 -2
- data/lib/twilio-ruby/rest/memory/v1/bulk.rb +9 -118
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +13 -5
- data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +6 -12
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +1 -1
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +11 -132
- data/lib/twilio-ruby/rest/memory/v1/import.rb +28 -5
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +1 -1
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +70 -18
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +1 -1
- data/lib/twilio-ruby/rest/memory/v1/profile.rb +2 -2
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +1 -1
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +1 -1
- data/lib/twilio-ruby/rest/memory/v1/store.rb +1 -1
- data/lib/twilio-ruby/rest/memory/v1/trait.rb +1 -1
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +56 -6
- data/lib/twilio-ruby/rest/memory/v1.rb +3 -46
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -18
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +23 -4
- data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +4 -4
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification.rb +231 -0
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +238 -0
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +245 -0
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +224 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +24 -0
- data/lib/twilio-ruby/rest/{assistants/v1/session.rb → numbers/v2/caller_id.rb} +141 -127
- data/lib/twilio-ruby/rest/numbers/v2.rb +16 -0
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +14 -2
- data/lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb +259 -0
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +8 -2
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +0 -19
- data/lib/twilio-ruby/rest/routes/v3/phone_number.rb +465 -0
- data/lib/twilio-ruby/rest/routes/v3.rb +50 -0
- data/lib/twilio-ruby/rest/routes_base.rb +6 -1
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration.rb +330 -0
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration_embedded_session.rb +233 -0
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration.rb +321 -0
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration_embedded_session.rb +233 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles_provisional_copy.rb +445 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products_provisional_copy.rb +445 -0
- data/lib/twilio-ruby/rest/trusthub/v1.rb +74 -0
- data/lib/twilio-ruby/rest/voice/v2/account_default_configuration.rb +556 -0
- data/lib/twilio-ruby/rest/voice/v2/configuration/default.rb +356 -0
- data/lib/twilio-ruby/rest/voice/v2/configuration.rb +412 -0
- data/lib/twilio-ruby/rest/voice/v2/recording.rb +616 -0
- data/lib/twilio-ruby/rest/voice/v2/transcription.rb +591 -0
- data/lib/twilio-ruby/rest/voice/v2/type.rb +518 -0
- data/lib/twilio-ruby/rest/voice/v2.rb +141 -0
- data/lib/twilio-ruby/rest/voice_base.rb +5 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +6 -68
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +1 -1
- metadata +33 -21
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +0 -558
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +0 -558
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +0 -431
- data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +0 -296
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +0 -927
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +0 -325
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +0 -349
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +0 -871
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +0 -364
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +0 -360
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +0 -847
- data/lib/twilio-ruby/rest/assistants/v1.rb +0 -104
- data/lib/twilio-ruby/rest/assistants.rb +0 -6
- data/lib/twilio-ruby/rest/assistants_base.rb +0 -38
|
@@ -57,13 +57,14 @@ module Twilio
|
|
|
57
57
|
class CreateConfigurationRequest
|
|
58
58
|
# @param [display_name]: [String] A human-readable name for the configuration. Limited to 32 characters.
|
|
59
59
|
# @param [description]: [String] Human-readable description for the configuration.
|
|
60
|
-
# @param [conversation_grouping_type]: [String]
|
|
60
|
+
# @param [conversation_grouping_type]: [String] Type of Conversation grouping strategy: - `GROUP_BY_PROFILE`: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created for `CUSTOMER` Participant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel. - `GROUP_BY_PARTICIPANT_ADDRESSES`: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS. - `GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE`: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice.
|
|
61
61
|
# @param [memory_store_id]: [String] The memory store ID that Conversation Orchestrator uses for profile resolution.
|
|
62
62
|
# @param [channel_settings]: [Hash<String, CreateConfigurationRequestChannelSettingsValue>]
|
|
63
63
|
# @param [status_callbacks]: [Array<ConfigurationList.CreateConfigurationRequestStatusCallbacks>] A list of webhook configurations.
|
|
64
64
|
# @param [intelligence_configuration_ids]: [Array<String>] A list of Conversational Intelligence configuration IDs.
|
|
65
65
|
# @param [memory_extraction_enabled]: [Boolean] Whether memory extraction is enabled for conversations under this configuration. Defaults to false.
|
|
66
|
-
|
|
66
|
+
# @param [conversations_v1_bridge]: [ConfigurationList.CreateConfigurationRequestConversationsV1Bridge]
|
|
67
|
+
attr_accessor :display_name, :description, :conversation_grouping_type, :memory_store_id, :channel_settings, :status_callbacks, :intelligence_configuration_ids, :memory_extraction_enabled, :conversations_v1_bridge
|
|
67
68
|
def initialize(payload)
|
|
68
69
|
@display_name = payload["display_name"]
|
|
69
70
|
@description = payload["description"]
|
|
@@ -73,6 +74,7 @@ module Twilio
|
|
|
73
74
|
@status_callbacks = payload["status_callbacks"]
|
|
74
75
|
@intelligence_configuration_ids = payload["intelligence_configuration_ids"]
|
|
75
76
|
@memory_extraction_enabled = payload["memory_extraction_enabled"]
|
|
77
|
+
@conversations_v1_bridge = payload["conversations_v1_bridge"]
|
|
76
78
|
end
|
|
77
79
|
def to_json(options = {})
|
|
78
80
|
{
|
|
@@ -84,6 +86,7 @@ module Twilio
|
|
|
84
86
|
"statusCallbacks": @status_callbacks,
|
|
85
87
|
"intelligenceConfigurationIds": @intelligence_configuration_ids,
|
|
86
88
|
"memoryExtractionEnabled": @memory_extraction_enabled,
|
|
89
|
+
"conversationsV1Bridge": @conversations_v1_bridge,
|
|
87
90
|
}.to_json(options)
|
|
88
91
|
end
|
|
89
92
|
end
|
|
@@ -139,6 +142,19 @@ module Twilio
|
|
|
139
142
|
end
|
|
140
143
|
end
|
|
141
144
|
|
|
145
|
+
class CreateConfigurationRequestConversationsV1Bridge
|
|
146
|
+
# @param [service_id]: [String] The Conversations V1 Service SID (IS prefix). One configuration per V1 Service SID.
|
|
147
|
+
attr_accessor :service_id
|
|
148
|
+
def initialize(payload)
|
|
149
|
+
@service_id = payload["service_id"]
|
|
150
|
+
end
|
|
151
|
+
def to_json(options = {})
|
|
152
|
+
{
|
|
153
|
+
"serviceId": @service_id,
|
|
154
|
+
}.to_json(options)
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
|
|
142
158
|
class CreateConfigurationRequestStatusCallbacks
|
|
143
159
|
# @param [url]: [String] The destination URL for webhooks.
|
|
144
160
|
# @param [method]: [String] The HTTP method used to invoke the webhook URL.
|
|
@@ -158,13 +174,14 @@ module Twilio
|
|
|
158
174
|
class UpdateConfigurationRequest
|
|
159
175
|
# @param [display_name]: [String] A human-readable name for the configuration. Limited to 32 characters.
|
|
160
176
|
# @param [description]: [String] Human-readable description for the configuration.
|
|
161
|
-
# @param [conversation_grouping_type]: [String]
|
|
177
|
+
# @param [conversation_grouping_type]: [String] Type of Conversation grouping strategy: - `GROUP_BY_PROFILE`: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created for `CUSTOMER` Participant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel. - `GROUP_BY_PARTICIPANT_ADDRESSES`: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS. - `GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE`: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice.
|
|
162
178
|
# @param [memory_store_id]: [String] The Memory Store ID for profile resolution.
|
|
163
179
|
# @param [channel_settings]: [Hash<String, UpdateConfigurationRequestChannelSettingsValue>]
|
|
164
180
|
# @param [status_callbacks]: [Array<ConfigurationList.UpdateConfigurationRequestStatusCallbacks>]
|
|
165
181
|
# @param [intelligence_configuration_ids]: [Array<String>] A list of Conversational Intelligence configuration IDs.
|
|
166
182
|
# @param [memory_extraction_enabled]: [Boolean] Whether memory extraction is enabled for conversations under this configuration. Defaults to false.
|
|
167
|
-
|
|
183
|
+
# @param [conversations_v1_bridge]: [ConfigurationList.CreateConfigurationRequestConversationsV1Bridge]
|
|
184
|
+
attr_accessor :display_name, :description, :conversation_grouping_type, :memory_store_id, :channel_settings, :status_callbacks, :intelligence_configuration_ids, :memory_extraction_enabled, :conversations_v1_bridge
|
|
168
185
|
def initialize(payload)
|
|
169
186
|
@display_name = payload["display_name"]
|
|
170
187
|
@description = payload["description"]
|
|
@@ -174,6 +191,7 @@ module Twilio
|
|
|
174
191
|
@status_callbacks = payload["status_callbacks"]
|
|
175
192
|
@intelligence_configuration_ids = payload["intelligence_configuration_ids"]
|
|
176
193
|
@memory_extraction_enabled = payload["memory_extraction_enabled"]
|
|
194
|
+
@conversations_v1_bridge = payload["conversations_v1_bridge"]
|
|
177
195
|
end
|
|
178
196
|
def to_json(options = {})
|
|
179
197
|
{
|
|
@@ -185,6 +203,7 @@ module Twilio
|
|
|
185
203
|
"statusCallbacks": @status_callbacks,
|
|
186
204
|
"intelligenceConfigurationIds": @intelligence_configuration_ids,
|
|
187
205
|
"memoryExtractionEnabled": @memory_extraction_enabled,
|
|
206
|
+
"conversationsV1Bridge": @conversations_v1_bridge,
|
|
188
207
|
}.to_json(options)
|
|
189
208
|
end
|
|
190
209
|
end
|
|
@@ -295,13 +314,14 @@ module Twilio
|
|
|
295
314
|
class CreateConfigurationRequest
|
|
296
315
|
# @param [display_name]: [String] A human-readable name for the configuration. Limited to 32 characters.
|
|
297
316
|
# @param [description]: [String] Human-readable description for the configuration.
|
|
298
|
-
# @param [conversation_grouping_type]: [String]
|
|
317
|
+
# @param [conversation_grouping_type]: [String] Type of Conversation grouping strategy: - `GROUP_BY_PROFILE`: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created for `CUSTOMER` Participant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel. - `GROUP_BY_PARTICIPANT_ADDRESSES`: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS. - `GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE`: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice.
|
|
299
318
|
# @param [memory_store_id]: [String] The memory store ID that Conversation Orchestrator uses for profile resolution.
|
|
300
319
|
# @param [channel_settings]: [Hash<String, CreateConfigurationRequestChannelSettingsValue>]
|
|
301
320
|
# @param [status_callbacks]: [Array<ConfigurationList.CreateConfigurationRequestStatusCallbacks>] A list of webhook configurations.
|
|
302
321
|
# @param [intelligence_configuration_ids]: [Array<String>] A list of Conversational Intelligence configuration IDs.
|
|
303
322
|
# @param [memory_extraction_enabled]: [Boolean] Whether memory extraction is enabled for conversations under this configuration. Defaults to false.
|
|
304
|
-
|
|
323
|
+
# @param [conversations_v1_bridge]: [ConfigurationList.CreateConfigurationRequestConversationsV1Bridge]
|
|
324
|
+
attr_accessor :display_name, :description, :conversation_grouping_type, :memory_store_id, :channel_settings, :status_callbacks, :intelligence_configuration_ids, :memory_extraction_enabled, :conversations_v1_bridge
|
|
305
325
|
def initialize(payload)
|
|
306
326
|
@display_name = payload["display_name"]
|
|
307
327
|
@description = payload["description"]
|
|
@@ -311,6 +331,7 @@ module Twilio
|
|
|
311
331
|
@status_callbacks = payload["status_callbacks"]
|
|
312
332
|
@intelligence_configuration_ids = payload["intelligence_configuration_ids"]
|
|
313
333
|
@memory_extraction_enabled = payload["memory_extraction_enabled"]
|
|
334
|
+
@conversations_v1_bridge = payload["conversations_v1_bridge"]
|
|
314
335
|
end
|
|
315
336
|
def to_json(options = {})
|
|
316
337
|
{
|
|
@@ -322,6 +343,7 @@ module Twilio
|
|
|
322
343
|
"statusCallbacks": @status_callbacks,
|
|
323
344
|
"intelligenceConfigurationIds": @intelligence_configuration_ids,
|
|
324
345
|
"memoryExtractionEnabled": @memory_extraction_enabled,
|
|
346
|
+
"conversationsV1Bridge": @conversations_v1_bridge,
|
|
325
347
|
}.to_json(options)
|
|
326
348
|
end
|
|
327
349
|
end
|
|
@@ -377,6 +399,19 @@ module Twilio
|
|
|
377
399
|
end
|
|
378
400
|
end
|
|
379
401
|
|
|
402
|
+
class CreateConfigurationRequestConversationsV1Bridge
|
|
403
|
+
# @param [service_id]: [String] The Conversations V1 Service SID (IS prefix). One configuration per V1 Service SID.
|
|
404
|
+
attr_accessor :service_id
|
|
405
|
+
def initialize(payload)
|
|
406
|
+
@service_id = payload["service_id"]
|
|
407
|
+
end
|
|
408
|
+
def to_json(options = {})
|
|
409
|
+
{
|
|
410
|
+
"serviceId": @service_id,
|
|
411
|
+
}.to_json(options)
|
|
412
|
+
end
|
|
413
|
+
end
|
|
414
|
+
|
|
380
415
|
class CreateConfigurationRequestStatusCallbacks
|
|
381
416
|
# @param [url]: [String] The destination URL for webhooks.
|
|
382
417
|
# @param [method]: [String] The HTTP method used to invoke the webhook URL.
|
|
@@ -396,13 +431,14 @@ module Twilio
|
|
|
396
431
|
class UpdateConfigurationRequest
|
|
397
432
|
# @param [display_name]: [String] A human-readable name for the configuration. Limited to 32 characters.
|
|
398
433
|
# @param [description]: [String] Human-readable description for the configuration.
|
|
399
|
-
# @param [conversation_grouping_type]: [String]
|
|
434
|
+
# @param [conversation_grouping_type]: [String] Type of Conversation grouping strategy: - `GROUP_BY_PROFILE`: Groups Communications by resolved Profile from the Memory Store. A Profile is looked up or created for `CUSTOMER` Participant types. All Communications from the same Profile are in the same Conversation, regardless of address or channel. - `GROUP_BY_PARTICIPANT_ADDRESSES`: Groups Communications by Participant addresses across all channels. A customer using +18005550100 will be in the same Conversation whether they contact by SMS, WhatsApp, or RCS. - `GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE`: Groups Communications by both Participant addresses AND channel. A customer using +18005550100 by SMS will be in a different Conversation than the same customer by Voice.
|
|
400
435
|
# @param [memory_store_id]: [String] The Memory Store ID for profile resolution.
|
|
401
436
|
# @param [channel_settings]: [Hash<String, UpdateConfigurationRequestChannelSettingsValue>]
|
|
402
437
|
# @param [status_callbacks]: [Array<ConfigurationList.UpdateConfigurationRequestStatusCallbacks>]
|
|
403
438
|
# @param [intelligence_configuration_ids]: [Array<String>] A list of Conversational Intelligence configuration IDs.
|
|
404
439
|
# @param [memory_extraction_enabled]: [Boolean] Whether memory extraction is enabled for conversations under this configuration. Defaults to false.
|
|
405
|
-
|
|
440
|
+
# @param [conversations_v1_bridge]: [ConfigurationList.CreateConfigurationRequestConversationsV1Bridge]
|
|
441
|
+
attr_accessor :display_name, :description, :conversation_grouping_type, :memory_store_id, :channel_settings, :status_callbacks, :intelligence_configuration_ids, :memory_extraction_enabled, :conversations_v1_bridge
|
|
406
442
|
def initialize(payload)
|
|
407
443
|
@display_name = payload["display_name"]
|
|
408
444
|
@description = payload["description"]
|
|
@@ -412,6 +448,7 @@ module Twilio
|
|
|
412
448
|
@status_callbacks = payload["status_callbacks"]
|
|
413
449
|
@intelligence_configuration_ids = payload["intelligence_configuration_ids"]
|
|
414
450
|
@memory_extraction_enabled = payload["memory_extraction_enabled"]
|
|
451
|
+
@conversations_v1_bridge = payload["conversations_v1_bridge"]
|
|
415
452
|
end
|
|
416
453
|
def to_json(options = {})
|
|
417
454
|
{
|
|
@@ -423,6 +460,7 @@ module Twilio
|
|
|
423
460
|
"statusCallbacks": @status_callbacks,
|
|
424
461
|
"intelligenceConfigurationIds": @intelligence_configuration_ids,
|
|
425
462
|
"memoryExtractionEnabled": @memory_extraction_enabled,
|
|
463
|
+
"conversationsV1Bridge": @conversations_v1_bridge,
|
|
426
464
|
}.to_json(options)
|
|
427
465
|
end
|
|
428
466
|
end
|
|
@@ -703,16 +741,16 @@ module Twilio
|
|
|
703
741
|
##
|
|
704
742
|
# Initialize the ConfigurationContext
|
|
705
743
|
# @param [Version] version Version that contains the resource
|
|
706
|
-
# @param [String]
|
|
744
|
+
# @param [String] id
|
|
707
745
|
# @return [ConfigurationContext] ConfigurationContext
|
|
708
|
-
def initialize(version,
|
|
746
|
+
def initialize(version, id)
|
|
709
747
|
|
|
710
748
|
apiV1Version = ApiV1Version.new version.domain, version
|
|
711
749
|
super(apiV1Version)
|
|
712
750
|
|
|
713
751
|
# Path Solution
|
|
714
|
-
@solution = {
|
|
715
|
-
@uri = "/ControlPlane/Configurations/#{@solution[:
|
|
752
|
+
@solution = { id: id, }
|
|
753
|
+
@uri = "/ControlPlane/Configurations/#{@solution[:id]}"
|
|
716
754
|
|
|
717
755
|
|
|
718
756
|
end
|
|
@@ -732,7 +770,7 @@ module Twilio
|
|
|
732
770
|
ConfigurationInstance.new(
|
|
733
771
|
@version,
|
|
734
772
|
response.body,
|
|
735
|
-
|
|
773
|
+
id: @solution[:id],
|
|
736
774
|
)
|
|
737
775
|
|
|
738
776
|
end
|
|
@@ -774,7 +812,7 @@ module Twilio
|
|
|
774
812
|
ConfigurationInstance.new(
|
|
775
813
|
@version,
|
|
776
814
|
payload,
|
|
777
|
-
|
|
815
|
+
id: @solution[:id],
|
|
778
816
|
)
|
|
779
817
|
end
|
|
780
818
|
|
|
@@ -793,7 +831,7 @@ module Twilio
|
|
|
793
831
|
configuration_instance = ConfigurationInstance.new(
|
|
794
832
|
@version,
|
|
795
833
|
response.body,
|
|
796
|
-
|
|
834
|
+
id: @solution[:id],
|
|
797
835
|
)
|
|
798
836
|
ConfigurationInstanceMetadata.new(
|
|
799
837
|
@version,
|
|
@@ -823,7 +861,7 @@ module Twilio
|
|
|
823
861
|
ConfigurationInstance.new(
|
|
824
862
|
@version,
|
|
825
863
|
payload,
|
|
826
|
-
|
|
864
|
+
id: @solution[:id],
|
|
827
865
|
)
|
|
828
866
|
end
|
|
829
867
|
|
|
@@ -847,7 +885,7 @@ module Twilio
|
|
|
847
885
|
configuration_instance = ConfigurationInstance.new(
|
|
848
886
|
@version,
|
|
849
887
|
response.body,
|
|
850
|
-
|
|
888
|
+
id: @solution[:id],
|
|
851
889
|
)
|
|
852
890
|
ConfigurationInstanceMetadata.new(
|
|
853
891
|
@version,
|
|
@@ -1020,7 +1058,7 @@ module Twilio
|
|
|
1020
1058
|
# resource.
|
|
1021
1059
|
# @param [String] sid The SID of the Call resource to fetch.
|
|
1022
1060
|
# @return [ConfigurationInstance] ConfigurationInstance
|
|
1023
|
-
def initialize(version, payload ,
|
|
1061
|
+
def initialize(version, payload , id: nil)
|
|
1024
1062
|
|
|
1025
1063
|
apiV1Version = ApiV1Version.new version.domain, version
|
|
1026
1064
|
super(apiV1Version)
|
|
@@ -1046,7 +1084,7 @@ module Twilio
|
|
|
1046
1084
|
|
|
1047
1085
|
# Context
|
|
1048
1086
|
@instance_context = nil
|
|
1049
|
-
@params = { '
|
|
1087
|
+
@params = { 'id' => id || @properties['id'] , }
|
|
1050
1088
|
end
|
|
1051
1089
|
|
|
1052
1090
|
##
|
|
@@ -1055,7 +1093,7 @@ module Twilio
|
|
|
1055
1093
|
# @return [ConfigurationContext] CallContext for this CallInstance
|
|
1056
1094
|
def context
|
|
1057
1095
|
unless @instance_context
|
|
1058
|
-
@instance_context = ConfigurationContext.new(@version , @params['
|
|
1096
|
+
@instance_context = ConfigurationContext.new(@version , @params['id'])
|
|
1059
1097
|
end
|
|
1060
1098
|
@instance_context
|
|
1061
1099
|
end
|
|
@@ -1091,7 +1129,7 @@ module Twilio
|
|
|
1091
1129
|
end
|
|
1092
1130
|
|
|
1093
1131
|
##
|
|
1094
|
-
# @return [
|
|
1132
|
+
# @return [ConversationsV2ConversationGroupingType]
|
|
1095
1133
|
def conversation_grouping_type
|
|
1096
1134
|
@properties['conversation_grouping_type']
|
|
1097
1135
|
end
|
|
@@ -20,7 +20,7 @@ module Twilio
|
|
|
20
20
|
class ConversationList < ListResource
|
|
21
21
|
|
|
22
22
|
class ConversationsV2Address
|
|
23
|
-
# @param [channel]: [
|
|
23
|
+
# @param [channel]: [ConversationsV2Channel]
|
|
24
24
|
# @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
|
|
25
25
|
# @param [channel_id]: [String] Channel-specific ID for correlating Communications.
|
|
26
26
|
attr_accessor :channel, :address, :channel_id
|
|
@@ -131,7 +131,7 @@ module Twilio
|
|
|
131
131
|
end
|
|
132
132
|
|
|
133
133
|
class CreateConversationWithConfigRequestParticipantsAddresses
|
|
134
|
-
# @param [channel]: [String]
|
|
134
|
+
# @param [channel]: [String] Channel type for a Communication address.
|
|
135
135
|
# @param [address]: [String]
|
|
136
136
|
# @param [channel_id]: [String]
|
|
137
137
|
attr_accessor :channel, :address, :channel_id
|
|
@@ -151,7 +151,7 @@ module Twilio
|
|
|
151
151
|
|
|
152
152
|
class PatchConversationByIdRequest
|
|
153
153
|
# @param [name]: [String] The name of the Conversation.
|
|
154
|
-
# @param [status]: [String]
|
|
154
|
+
# @param [status]: [String] Lifecycle status of a Conversation.
|
|
155
155
|
# @param [configuration]: [ConversationList.PatchConversationByIdRequestConfiguration]
|
|
156
156
|
attr_accessor :name, :status, :configuration
|
|
157
157
|
def initialize(payload)
|
|
@@ -183,7 +183,7 @@ module Twilio
|
|
|
183
183
|
|
|
184
184
|
class UpdateConversationByIdRequest
|
|
185
185
|
# @param [name]: [String] The name of the Conversation.
|
|
186
|
-
# @param [status]: [String]
|
|
186
|
+
# @param [status]: [String] Lifecycle status of a Conversation.
|
|
187
187
|
attr_accessor :name, :status
|
|
188
188
|
def initialize(payload)
|
|
189
189
|
@name = payload["name"]
|
|
@@ -199,7 +199,7 @@ module Twilio
|
|
|
199
199
|
|
|
200
200
|
|
|
201
201
|
class ConversationsV2Address
|
|
202
|
-
# @param [channel]: [
|
|
202
|
+
# @param [channel]: [ConversationsV2Channel]
|
|
203
203
|
# @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
|
|
204
204
|
# @param [channel_id]: [String] Channel-specific ID for correlating Communications.
|
|
205
205
|
attr_accessor :channel, :address, :channel_id
|
|
@@ -310,7 +310,7 @@ module Twilio
|
|
|
310
310
|
end
|
|
311
311
|
|
|
312
312
|
class CreateConversationWithConfigRequestParticipantsAddresses
|
|
313
|
-
# @param [channel]: [String]
|
|
313
|
+
# @param [channel]: [String] Channel type for a Communication address.
|
|
314
314
|
# @param [address]: [String]
|
|
315
315
|
# @param [channel_id]: [String]
|
|
316
316
|
attr_accessor :channel, :address, :channel_id
|
|
@@ -330,7 +330,7 @@ module Twilio
|
|
|
330
330
|
|
|
331
331
|
class PatchConversationByIdRequest
|
|
332
332
|
# @param [name]: [String] The name of the Conversation.
|
|
333
|
-
# @param [status]: [String]
|
|
333
|
+
# @param [status]: [String] Lifecycle status of a Conversation.
|
|
334
334
|
# @param [configuration]: [ConversationList.PatchConversationByIdRequestConfiguration]
|
|
335
335
|
attr_accessor :name, :status, :configuration
|
|
336
336
|
def initialize(payload)
|
|
@@ -362,7 +362,7 @@ module Twilio
|
|
|
362
362
|
|
|
363
363
|
class UpdateConversationByIdRequest
|
|
364
364
|
# @param [name]: [String] The name of the Conversation.
|
|
365
|
-
# @param [status]: [String]
|
|
365
|
+
# @param [status]: [String] Lifecycle status of a Conversation.
|
|
366
366
|
attr_accessor :name, :status
|
|
367
367
|
def initialize(payload)
|
|
368
368
|
@name = payload["name"]
|
|
@@ -378,7 +378,7 @@ module Twilio
|
|
|
378
378
|
|
|
379
379
|
|
|
380
380
|
class ConversationsV2Address
|
|
381
|
-
# @param [channel]: [
|
|
381
|
+
# @param [channel]: [ConversationsV2Channel]
|
|
382
382
|
# @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
|
|
383
383
|
# @param [channel_id]: [String] Channel-specific ID for correlating Communications.
|
|
384
384
|
attr_accessor :channel, :address, :channel_id
|
|
@@ -489,7 +489,7 @@ module Twilio
|
|
|
489
489
|
end
|
|
490
490
|
|
|
491
491
|
class CreateConversationWithConfigRequestParticipantsAddresses
|
|
492
|
-
# @param [channel]: [String]
|
|
492
|
+
# @param [channel]: [String] Channel type for a Communication address.
|
|
493
493
|
# @param [address]: [String]
|
|
494
494
|
# @param [channel_id]: [String]
|
|
495
495
|
attr_accessor :channel, :address, :channel_id
|
|
@@ -509,7 +509,7 @@ module Twilio
|
|
|
509
509
|
|
|
510
510
|
class PatchConversationByIdRequest
|
|
511
511
|
# @param [name]: [String] The name of the Conversation.
|
|
512
|
-
# @param [status]: [String]
|
|
512
|
+
# @param [status]: [String] Lifecycle status of a Conversation.
|
|
513
513
|
# @param [configuration]: [ConversationList.PatchConversationByIdRequestConfiguration]
|
|
514
514
|
attr_accessor :name, :status, :configuration
|
|
515
515
|
def initialize(payload)
|
|
@@ -541,7 +541,7 @@ module Twilio
|
|
|
541
541
|
|
|
542
542
|
class UpdateConversationByIdRequest
|
|
543
543
|
# @param [name]: [String] The name of the Conversation.
|
|
544
|
-
# @param [status]: [String]
|
|
544
|
+
# @param [status]: [String] Lifecycle status of a Conversation.
|
|
545
545
|
attr_accessor :name, :status
|
|
546
546
|
def initialize(payload)
|
|
547
547
|
@name = payload["name"]
|
|
@@ -768,16 +768,16 @@ module Twilio
|
|
|
768
768
|
##
|
|
769
769
|
# Initialize the ConversationContext
|
|
770
770
|
# @param [Version] version Version that contains the resource
|
|
771
|
-
# @param [String]
|
|
771
|
+
# @param [String] id
|
|
772
772
|
# @return [ConversationContext] ConversationContext
|
|
773
|
-
def initialize(version,
|
|
773
|
+
def initialize(version, id)
|
|
774
774
|
|
|
775
775
|
apiV1Version = ApiV1Version.new version.domain, version
|
|
776
776
|
super(apiV1Version)
|
|
777
777
|
|
|
778
778
|
# Path Solution
|
|
779
|
-
@solution = {
|
|
780
|
-
@uri = "/Conversations/#{@solution[:
|
|
779
|
+
@solution = { id: id, }
|
|
780
|
+
@uri = "/Conversations/#{@solution[:id]}"
|
|
781
781
|
|
|
782
782
|
|
|
783
783
|
end
|
|
@@ -797,7 +797,7 @@ module Twilio
|
|
|
797
797
|
ConversationInstance.new(
|
|
798
798
|
@version,
|
|
799
799
|
response.body,
|
|
800
|
-
|
|
800
|
+
id: @solution[:id],
|
|
801
801
|
)
|
|
802
802
|
|
|
803
803
|
end
|
|
@@ -839,7 +839,7 @@ module Twilio
|
|
|
839
839
|
ConversationInstance.new(
|
|
840
840
|
@version,
|
|
841
841
|
payload,
|
|
842
|
-
|
|
842
|
+
id: @solution[:id],
|
|
843
843
|
)
|
|
844
844
|
end
|
|
845
845
|
|
|
@@ -858,7 +858,7 @@ module Twilio
|
|
|
858
858
|
conversation_instance = ConversationInstance.new(
|
|
859
859
|
@version,
|
|
860
860
|
response.body,
|
|
861
|
-
|
|
861
|
+
id: @solution[:id],
|
|
862
862
|
)
|
|
863
863
|
ConversationInstanceMetadata.new(
|
|
864
864
|
@version,
|
|
@@ -885,7 +885,7 @@ module Twilio
|
|
|
885
885
|
ConversationInstance.new(
|
|
886
886
|
@version,
|
|
887
887
|
payload,
|
|
888
|
-
|
|
888
|
+
id: @solution[:id],
|
|
889
889
|
)
|
|
890
890
|
end
|
|
891
891
|
|
|
@@ -906,7 +906,7 @@ module Twilio
|
|
|
906
906
|
conversation_instance = ConversationInstance.new(
|
|
907
907
|
@version,
|
|
908
908
|
response.body,
|
|
909
|
-
|
|
909
|
+
id: @solution[:id],
|
|
910
910
|
)
|
|
911
911
|
ConversationInstanceMetadata.new(
|
|
912
912
|
@version,
|
|
@@ -933,7 +933,7 @@ module Twilio
|
|
|
933
933
|
ConversationInstance.new(
|
|
934
934
|
@version,
|
|
935
935
|
payload,
|
|
936
|
-
|
|
936
|
+
id: @solution[:id],
|
|
937
937
|
)
|
|
938
938
|
end
|
|
939
939
|
|
|
@@ -954,7 +954,7 @@ module Twilio
|
|
|
954
954
|
conversation_instance = ConversationInstance.new(
|
|
955
955
|
@version,
|
|
956
956
|
response.body,
|
|
957
|
-
|
|
957
|
+
id: @solution[:id],
|
|
958
958
|
)
|
|
959
959
|
ConversationInstanceMetadata.new(
|
|
960
960
|
@version,
|
|
@@ -1127,7 +1127,7 @@ module Twilio
|
|
|
1127
1127
|
# resource.
|
|
1128
1128
|
# @param [String] sid The SID of the Call resource to fetch.
|
|
1129
1129
|
# @return [ConversationInstance] ConversationInstance
|
|
1130
|
-
def initialize(version, payload ,
|
|
1130
|
+
def initialize(version, payload , id: nil)
|
|
1131
1131
|
|
|
1132
1132
|
apiV1Version = ApiV1Version.new version.domain, version
|
|
1133
1133
|
super(apiV1Version)
|
|
@@ -1159,7 +1159,7 @@ module Twilio
|
|
|
1159
1159
|
|
|
1160
1160
|
# Context
|
|
1161
1161
|
@instance_context = nil
|
|
1162
|
-
@params = { '
|
|
1162
|
+
@params = { 'id' => id || @properties['id'] , }
|
|
1163
1163
|
end
|
|
1164
1164
|
|
|
1165
1165
|
##
|
|
@@ -1168,7 +1168,7 @@ module Twilio
|
|
|
1168
1168
|
# @return [ConversationContext] CallContext for this CallInstance
|
|
1169
1169
|
def context
|
|
1170
1170
|
unless @instance_context
|
|
1171
|
-
@instance_context = ConversationContext.new(@version , @params['
|
|
1171
|
+
@instance_context = ConversationContext.new(@version , @params['id'])
|
|
1172
1172
|
end
|
|
1173
1173
|
@instance_context
|
|
1174
1174
|
end
|
|
@@ -1192,7 +1192,7 @@ module Twilio
|
|
|
1192
1192
|
end
|
|
1193
1193
|
|
|
1194
1194
|
##
|
|
1195
|
-
# @return [
|
|
1195
|
+
# @return [ConversationsV2ConversationStatus]
|
|
1196
1196
|
def status
|
|
1197
1197
|
@properties['status']
|
|
1198
1198
|
end
|
|
@@ -1252,7 +1252,7 @@ module Twilio
|
|
|
1252
1252
|
end
|
|
1253
1253
|
|
|
1254
1254
|
##
|
|
1255
|
-
# @return [
|
|
1255
|
+
# @return [ConversationsV2ConversationGroupingType]
|
|
1256
1256
|
def conversation_grouping_type
|
|
1257
1257
|
@properties['conversation_grouping_type']
|
|
1258
1258
|
end
|
|
@@ -46,16 +46,16 @@ module Twilio
|
|
|
46
46
|
##
|
|
47
47
|
# Initialize the OperationContext
|
|
48
48
|
# @param [Version] version Version that contains the resource
|
|
49
|
-
# @param [String]
|
|
49
|
+
# @param [String] id
|
|
50
50
|
# @return [OperationContext] OperationContext
|
|
51
|
-
def initialize(version,
|
|
51
|
+
def initialize(version, id)
|
|
52
52
|
|
|
53
53
|
apiV1Version = ApiV1Version.new version.domain, version
|
|
54
54
|
super(apiV1Version)
|
|
55
55
|
|
|
56
56
|
# Path Solution
|
|
57
|
-
@solution = {
|
|
58
|
-
@uri = "/ControlPlane/Operations/#{@solution[:
|
|
57
|
+
@solution = { id: id, }
|
|
58
|
+
@uri = "/ControlPlane/Operations/#{@solution[:id]}"
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
end
|
|
@@ -74,7 +74,7 @@ module Twilio
|
|
|
74
74
|
OperationInstance.new(
|
|
75
75
|
@version,
|
|
76
76
|
payload,
|
|
77
|
-
|
|
77
|
+
id: @solution[:id],
|
|
78
78
|
)
|
|
79
79
|
end
|
|
80
80
|
|
|
@@ -93,7 +93,7 @@ module Twilio
|
|
|
93
93
|
operation_instance = OperationInstance.new(
|
|
94
94
|
@version,
|
|
95
95
|
response.body,
|
|
96
|
-
|
|
96
|
+
id: @solution[:id],
|
|
97
97
|
)
|
|
98
98
|
OperationInstanceMetadata.new(
|
|
99
99
|
@version,
|
|
@@ -266,7 +266,7 @@ module Twilio
|
|
|
266
266
|
# resource.
|
|
267
267
|
# @param [String] sid The SID of the Call resource to fetch.
|
|
268
268
|
# @return [OperationInstance] OperationInstance
|
|
269
|
-
def initialize(version, payload ,
|
|
269
|
+
def initialize(version, payload , id: nil)
|
|
270
270
|
|
|
271
271
|
apiV1Version = ApiV1Version.new version.domain, version
|
|
272
272
|
super(apiV1Version)
|
|
@@ -284,7 +284,7 @@ module Twilio
|
|
|
284
284
|
|
|
285
285
|
# Context
|
|
286
286
|
@instance_context = nil
|
|
287
|
-
@params = { '
|
|
287
|
+
@params = { 'id' => id || @properties['id'] , }
|
|
288
288
|
end
|
|
289
289
|
|
|
290
290
|
##
|
|
@@ -293,7 +293,7 @@ module Twilio
|
|
|
293
293
|
# @return [OperationContext] CallContext for this CallInstance
|
|
294
294
|
def context
|
|
295
295
|
unless @instance_context
|
|
296
|
-
@instance_context = OperationContext.new(@version , @params['
|
|
296
|
+
@instance_context = OperationContext.new(@version , @params['id'])
|
|
297
297
|
end
|
|
298
298
|
@instance_context
|
|
299
299
|
end
|
|
@@ -305,7 +305,7 @@ module Twilio
|
|
|
305
305
|
end
|
|
306
306
|
|
|
307
307
|
##
|
|
308
|
-
# @return [
|
|
308
|
+
# @return [ConversationsV2OperationStatusValue]
|
|
309
309
|
def status
|
|
310
310
|
@properties['status']
|
|
311
311
|
end
|