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
|
@@ -19,30 +19,8 @@ module Twilio
|
|
|
19
19
|
class V2 < Version
|
|
20
20
|
class ParticipantList < ListResource
|
|
21
21
|
|
|
22
|
-
class
|
|
23
|
-
# @param [
|
|
24
|
-
# @param [type]: [String]
|
|
25
|
-
# @param [profile_id]: [String]
|
|
26
|
-
# @param [addresses]: [Array<ParticipantList.CreateParticipantInConversationRequestAddresses>]
|
|
27
|
-
attr_accessor :name, :type, :profile_id, :addresses
|
|
28
|
-
def initialize(payload)
|
|
29
|
-
@name = payload["name"]
|
|
30
|
-
@type = payload["type"]
|
|
31
|
-
@profile_id = payload["profile_id"]
|
|
32
|
-
@addresses = payload["addresses"]
|
|
33
|
-
end
|
|
34
|
-
def to_json(options = {})
|
|
35
|
-
{
|
|
36
|
-
"name": @name,
|
|
37
|
-
"type": @type,
|
|
38
|
-
"profileId": @profile_id,
|
|
39
|
-
"addresses": @addresses,
|
|
40
|
-
}.to_json(options)
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
class CreateParticipantInConversationRequestAddresses
|
|
45
|
-
# @param [channel]: [String]
|
|
22
|
+
class CreateConversationWithConfigRequestParticipantsAddresses
|
|
23
|
+
# @param [channel]: [String] Channel type for a Communication address.
|
|
46
24
|
# @param [address]: [String]
|
|
47
25
|
# @param [channel_id]: [String]
|
|
48
26
|
attr_accessor :channel, :address, :channel_id
|
|
@@ -60,11 +38,11 @@ module Twilio
|
|
|
60
38
|
end
|
|
61
39
|
end
|
|
62
40
|
|
|
63
|
-
class
|
|
41
|
+
class CreateParticipantInConversationRequest
|
|
64
42
|
# @param [name]: [String]
|
|
65
|
-
# @param [type]: [String]
|
|
43
|
+
# @param [type]: [String] Type of Participant in the Conversation.
|
|
66
44
|
# @param [profile_id]: [String]
|
|
67
|
-
# @param [addresses]: [Array<ParticipantList.
|
|
45
|
+
# @param [addresses]: [Array<ParticipantList.CreateConversationWithConfigRequestParticipantsAddresses>]
|
|
68
46
|
attr_accessor :name, :type, :profile_id, :addresses
|
|
69
47
|
def initialize(payload)
|
|
70
48
|
@name = payload["name"]
|
|
@@ -82,12 +60,11 @@ module Twilio
|
|
|
82
60
|
end
|
|
83
61
|
end
|
|
84
62
|
|
|
85
|
-
|
|
86
|
-
class CreateParticipantInConversationRequest
|
|
63
|
+
class UpdateParticipantInConversationRequest
|
|
87
64
|
# @param [name]: [String]
|
|
88
|
-
# @param [type]: [String]
|
|
65
|
+
# @param [type]: [String] Type of Participant in the Conversation.
|
|
89
66
|
# @param [profile_id]: [String]
|
|
90
|
-
# @param [addresses]: [Array<ParticipantList.
|
|
67
|
+
# @param [addresses]: [Array<ParticipantList.CreateConversationWithConfigRequestParticipantsAddresses>]
|
|
91
68
|
attr_accessor :name, :type, :profile_id, :addresses
|
|
92
69
|
def initialize(payload)
|
|
93
70
|
@name = payload["name"]
|
|
@@ -105,8 +82,9 @@ module Twilio
|
|
|
105
82
|
end
|
|
106
83
|
end
|
|
107
84
|
|
|
108
|
-
|
|
109
|
-
|
|
85
|
+
|
|
86
|
+
class CreateConversationWithConfigRequestParticipantsAddresses
|
|
87
|
+
# @param [channel]: [String] Channel type for a Communication address.
|
|
110
88
|
# @param [address]: [String]
|
|
111
89
|
# @param [channel_id]: [String]
|
|
112
90
|
attr_accessor :channel, :address, :channel_id
|
|
@@ -124,11 +102,33 @@ module Twilio
|
|
|
124
102
|
end
|
|
125
103
|
end
|
|
126
104
|
|
|
105
|
+
class CreateParticipantInConversationRequest
|
|
106
|
+
# @param [name]: [String]
|
|
107
|
+
# @param [type]: [String] Type of Participant in the Conversation.
|
|
108
|
+
# @param [profile_id]: [String]
|
|
109
|
+
# @param [addresses]: [Array<ParticipantList.CreateConversationWithConfigRequestParticipantsAddresses>]
|
|
110
|
+
attr_accessor :name, :type, :profile_id, :addresses
|
|
111
|
+
def initialize(payload)
|
|
112
|
+
@name = payload["name"]
|
|
113
|
+
@type = payload["type"]
|
|
114
|
+
@profile_id = payload["profile_id"]
|
|
115
|
+
@addresses = payload["addresses"]
|
|
116
|
+
end
|
|
117
|
+
def to_json(options = {})
|
|
118
|
+
{
|
|
119
|
+
"name": @name,
|
|
120
|
+
"type": @type,
|
|
121
|
+
"profileId": @profile_id,
|
|
122
|
+
"addresses": @addresses,
|
|
123
|
+
}.to_json(options)
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
127
127
|
class UpdateParticipantInConversationRequest
|
|
128
128
|
# @param [name]: [String]
|
|
129
|
-
# @param [type]: [String]
|
|
129
|
+
# @param [type]: [String] Type of Participant in the Conversation.
|
|
130
130
|
# @param [profile_id]: [String]
|
|
131
|
-
# @param [addresses]: [Array<ParticipantList.
|
|
131
|
+
# @param [addresses]: [Array<ParticipantList.CreateConversationWithConfigRequestParticipantsAddresses>]
|
|
132
132
|
attr_accessor :name, :type, :profile_id, :addresses
|
|
133
133
|
def initialize(payload)
|
|
134
134
|
@name = payload["name"]
|
|
@@ -151,13 +151,13 @@ module Twilio
|
|
|
151
151
|
# Initialize the ParticipantList
|
|
152
152
|
# @param [Version] version Version that contains the resource
|
|
153
153
|
# @return [ParticipantList] ParticipantList
|
|
154
|
-
def initialize(version,
|
|
154
|
+
def initialize(version, conversation_id: nil)
|
|
155
155
|
|
|
156
156
|
apiV1Version = ApiV1Version.new version.domain, version
|
|
157
157
|
super(apiV1Version)
|
|
158
158
|
# Path Solution
|
|
159
|
-
@solution = {
|
|
160
|
-
@uri = "/Conversations/#{@solution[:
|
|
159
|
+
@solution = { conversation_id: conversation_id }
|
|
160
|
+
@uri = "/Conversations/#{@solution[:conversation_id]}/Participants"
|
|
161
161
|
|
|
162
162
|
end
|
|
163
163
|
##
|
|
@@ -177,7 +177,7 @@ module Twilio
|
|
|
177
177
|
ParticipantInstance.new(
|
|
178
178
|
@version,
|
|
179
179
|
payload,
|
|
180
|
-
|
|
180
|
+
conversation_id: @solution[:conversation_id],
|
|
181
181
|
)
|
|
182
182
|
end
|
|
183
183
|
|
|
@@ -198,7 +198,7 @@ module Twilio
|
|
|
198
198
|
participant_instance = ParticipantInstance.new(
|
|
199
199
|
@version,
|
|
200
200
|
response.body,
|
|
201
|
-
|
|
201
|
+
conversation_id: @solution[:conversation_id],
|
|
202
202
|
)
|
|
203
203
|
ParticipantInstanceMetadata.new(
|
|
204
204
|
@version,
|
|
@@ -343,17 +343,17 @@ module Twilio
|
|
|
343
343
|
##
|
|
344
344
|
# Initialize the ParticipantContext
|
|
345
345
|
# @param [Version] version Version that contains the resource
|
|
346
|
-
# @param [String]
|
|
347
|
-
# @param [String]
|
|
346
|
+
# @param [String] conversation_id
|
|
347
|
+
# @param [String] id
|
|
348
348
|
# @return [ParticipantContext] ParticipantContext
|
|
349
|
-
def initialize(version,
|
|
349
|
+
def initialize(version, conversation_id, id)
|
|
350
350
|
|
|
351
351
|
apiV1Version = ApiV1Version.new version.domain, version
|
|
352
352
|
super(apiV1Version)
|
|
353
353
|
|
|
354
354
|
# Path Solution
|
|
355
|
-
@solution = {
|
|
356
|
-
@uri = "/Conversations/#{@solution[:
|
|
355
|
+
@solution = { conversation_id: conversation_id, id: id, }
|
|
356
|
+
@uri = "/Conversations/#{@solution[:conversation_id]}/Participants/#{@solution[:id]}"
|
|
357
357
|
|
|
358
358
|
|
|
359
359
|
end
|
|
@@ -372,8 +372,8 @@ module Twilio
|
|
|
372
372
|
ParticipantInstance.new(
|
|
373
373
|
@version,
|
|
374
374
|
payload,
|
|
375
|
-
|
|
376
|
-
|
|
375
|
+
conversation_id: @solution[:conversation_id],
|
|
376
|
+
id: @solution[:id],
|
|
377
377
|
)
|
|
378
378
|
end
|
|
379
379
|
|
|
@@ -392,8 +392,8 @@ module Twilio
|
|
|
392
392
|
participant_instance = ParticipantInstance.new(
|
|
393
393
|
@version,
|
|
394
394
|
response.body,
|
|
395
|
-
|
|
396
|
-
|
|
395
|
+
conversation_id: @solution[:conversation_id],
|
|
396
|
+
id: @solution[:id],
|
|
397
397
|
)
|
|
398
398
|
ParticipantInstanceMetadata.new(
|
|
399
399
|
@version,
|
|
@@ -420,8 +420,8 @@ module Twilio
|
|
|
420
420
|
ParticipantInstance.new(
|
|
421
421
|
@version,
|
|
422
422
|
payload,
|
|
423
|
-
|
|
424
|
-
|
|
423
|
+
conversation_id: @solution[:conversation_id],
|
|
424
|
+
id: @solution[:id],
|
|
425
425
|
)
|
|
426
426
|
end
|
|
427
427
|
|
|
@@ -442,8 +442,8 @@ module Twilio
|
|
|
442
442
|
participant_instance = ParticipantInstance.new(
|
|
443
443
|
@version,
|
|
444
444
|
response.body,
|
|
445
|
-
|
|
446
|
-
|
|
445
|
+
conversation_id: @solution[:conversation_id],
|
|
446
|
+
id: @solution[:id],
|
|
447
447
|
)
|
|
448
448
|
ParticipantInstanceMetadata.new(
|
|
449
449
|
@version,
|
|
@@ -537,7 +537,7 @@ module Twilio
|
|
|
537
537
|
# @param [Hash] payload Payload response from the API
|
|
538
538
|
# @return [ParticipantInstance] ParticipantInstance
|
|
539
539
|
def get_instance(payload)
|
|
540
|
-
ParticipantInstance.new(@version, payload,
|
|
540
|
+
ParticipantInstance.new(@version, payload, conversation_id: @solution[:conversation_id])
|
|
541
541
|
end
|
|
542
542
|
|
|
543
543
|
##
|
|
@@ -616,7 +616,7 @@ module Twilio
|
|
|
616
616
|
# resource.
|
|
617
617
|
# @param [String] sid The SID of the Call resource to fetch.
|
|
618
618
|
# @return [ParticipantInstance] ParticipantInstance
|
|
619
|
-
def initialize(version, payload ,
|
|
619
|
+
def initialize(version, payload , conversation_id: nil, id: nil)
|
|
620
620
|
|
|
621
621
|
apiV1Version = ApiV1Version.new version.domain, version
|
|
622
622
|
super(apiV1Version)
|
|
@@ -636,7 +636,7 @@ module Twilio
|
|
|
636
636
|
|
|
637
637
|
# Context
|
|
638
638
|
@instance_context = nil
|
|
639
|
-
@params = { '
|
|
639
|
+
@params = { 'conversation_id' => conversation_id || @properties['conversation_id'] ,'id' => id || @properties['id'] , }
|
|
640
640
|
end
|
|
641
641
|
|
|
642
642
|
##
|
|
@@ -645,7 +645,7 @@ module Twilio
|
|
|
645
645
|
# @return [ParticipantContext] CallContext for this CallInstance
|
|
646
646
|
def context
|
|
647
647
|
unless @instance_context
|
|
648
|
-
@instance_context = ParticipantContext.new(@version , @params['
|
|
648
|
+
@instance_context = ParticipantContext.new(@version , @params['conversation_id'], @params['id'])
|
|
649
649
|
end
|
|
650
650
|
@instance_context
|
|
651
651
|
end
|
|
@@ -675,7 +675,7 @@ module Twilio
|
|
|
675
675
|
end
|
|
676
676
|
|
|
677
677
|
##
|
|
678
|
-
# @return [
|
|
678
|
+
# @return [ConversationsV2ParticipantType]
|
|
679
679
|
def type
|
|
680
680
|
@properties['type']
|
|
681
681
|
end
|
|
@@ -45,90 +45,90 @@ module Twilio
|
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
47
|
##
|
|
48
|
-
# @param [String]
|
|
49
|
-
# @param [String]
|
|
50
|
-
# @return [Twilio::REST::Conversations::V2::CommunicationContext] if
|
|
48
|
+
# @param [String] conversation_id
|
|
49
|
+
# @param [String] id
|
|
50
|
+
# @return [Twilio::REST::Conversations::V2::CommunicationContext] if id was passed.
|
|
51
51
|
# @return [Twilio::REST::Conversations::V2::CommunicationList]
|
|
52
|
-
def communications(
|
|
53
|
-
if
|
|
54
|
-
raise ArgumentError, '
|
|
52
|
+
def communications(conversation_id=:unset, id=:unset)
|
|
53
|
+
if conversation_id.nil?
|
|
54
|
+
raise ArgumentError, 'conversation_id cannot be nil'
|
|
55
55
|
end
|
|
56
|
-
if
|
|
57
|
-
raise ArgumentError, '
|
|
56
|
+
if id.nil?
|
|
57
|
+
raise ArgumentError, 'id cannot be nil'
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
-
if
|
|
60
|
+
if conversation_id == :unset && id == :unset
|
|
61
61
|
@communications ||= CommunicationList.new self
|
|
62
|
-
elsif
|
|
63
|
-
CommunicationList.new(self,
|
|
62
|
+
elsif conversation_id != :unset && id == :unset
|
|
63
|
+
CommunicationList.new(self, conversation_id: conversation_id)
|
|
64
64
|
else
|
|
65
|
-
CommunicationContext.new(self,
|
|
65
|
+
CommunicationContext.new(self, conversation_id, id)
|
|
66
66
|
end
|
|
67
67
|
end
|
|
68
68
|
##
|
|
69
|
-
# @param [String]
|
|
70
|
-
# @return [Twilio::REST::Conversations::V2::ConfigurationContext] if
|
|
69
|
+
# @param [String] id
|
|
70
|
+
# @return [Twilio::REST::Conversations::V2::ConfigurationContext] if id was passed.
|
|
71
71
|
# @return [Twilio::REST::Conversations::V2::ConfigurationList]
|
|
72
|
-
def configurations(
|
|
73
|
-
if
|
|
74
|
-
raise ArgumentError, '
|
|
72
|
+
def configurations(id=:unset)
|
|
73
|
+
if id.nil?
|
|
74
|
+
raise ArgumentError, 'id cannot be nil'
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
-
if
|
|
77
|
+
if id == :unset
|
|
78
78
|
@configurations ||= ConfigurationList.new self
|
|
79
79
|
else
|
|
80
|
-
ConfigurationContext.new(self,
|
|
80
|
+
ConfigurationContext.new(self, id)
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
##
|
|
84
|
-
# @param [String]
|
|
85
|
-
# @return [Twilio::REST::Conversations::V2::ConversationContext] if
|
|
84
|
+
# @param [String] id
|
|
85
|
+
# @return [Twilio::REST::Conversations::V2::ConversationContext] if id was passed.
|
|
86
86
|
# @return [Twilio::REST::Conversations::V2::ConversationList]
|
|
87
|
-
def conversations(
|
|
88
|
-
if
|
|
89
|
-
raise ArgumentError, '
|
|
87
|
+
def conversations(id=:unset)
|
|
88
|
+
if id.nil?
|
|
89
|
+
raise ArgumentError, 'id cannot be nil'
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
-
if
|
|
92
|
+
if id == :unset
|
|
93
93
|
@conversations ||= ConversationList.new self
|
|
94
94
|
else
|
|
95
|
-
ConversationContext.new(self,
|
|
95
|
+
ConversationContext.new(self, id)
|
|
96
96
|
end
|
|
97
97
|
end
|
|
98
98
|
##
|
|
99
|
-
# @param [String]
|
|
100
|
-
# @return [Twilio::REST::Conversations::V2::OperationContext] if
|
|
99
|
+
# @param [String] id
|
|
100
|
+
# @return [Twilio::REST::Conversations::V2::OperationContext] if id was passed.
|
|
101
101
|
# @return [Twilio::REST::Conversations::V2::OperationList]
|
|
102
|
-
def operations(
|
|
103
|
-
if
|
|
104
|
-
raise ArgumentError, '
|
|
102
|
+
def operations(id=:unset)
|
|
103
|
+
if id.nil?
|
|
104
|
+
raise ArgumentError, 'id cannot be nil'
|
|
105
105
|
end
|
|
106
106
|
|
|
107
|
-
if
|
|
107
|
+
if id == :unset
|
|
108
108
|
@operations ||= OperationList.new self
|
|
109
109
|
else
|
|
110
|
-
OperationContext.new(self,
|
|
110
|
+
OperationContext.new(self, id)
|
|
111
111
|
end
|
|
112
112
|
end
|
|
113
113
|
##
|
|
114
|
-
# @param [String]
|
|
115
|
-
# @param [String]
|
|
116
|
-
# @return [Twilio::REST::Conversations::V2::ParticipantContext] if
|
|
114
|
+
# @param [String] conversation_id
|
|
115
|
+
# @param [String] id
|
|
116
|
+
# @return [Twilio::REST::Conversations::V2::ParticipantContext] if id was passed.
|
|
117
117
|
# @return [Twilio::REST::Conversations::V2::ParticipantList]
|
|
118
|
-
def participants(
|
|
119
|
-
if
|
|
120
|
-
raise ArgumentError, '
|
|
118
|
+
def participants(conversation_id=:unset, id=:unset)
|
|
119
|
+
if conversation_id.nil?
|
|
120
|
+
raise ArgumentError, 'conversation_id cannot be nil'
|
|
121
121
|
end
|
|
122
|
-
if
|
|
123
|
-
raise ArgumentError, '
|
|
122
|
+
if id.nil?
|
|
123
|
+
raise ArgumentError, 'id cannot be nil'
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
-
if
|
|
126
|
+
if conversation_id == :unset && id == :unset
|
|
127
127
|
@participants ||= ParticipantList.new self
|
|
128
|
-
elsif
|
|
129
|
-
ParticipantList.new(self,
|
|
128
|
+
elsif conversation_id != :unset && id == :unset
|
|
129
|
+
ParticipantList.new(self, conversation_id: conversation_id)
|
|
130
130
|
else
|
|
131
|
-
ParticipantContext.new(self,
|
|
131
|
+
ParticipantContext.new(self, conversation_id, id)
|
|
132
132
|
end
|
|
133
133
|
end
|
|
134
134
|
##
|
|
@@ -35,7 +35,7 @@ module Twilio
|
|
|
35
35
|
# Create the NewApiKeyInstance
|
|
36
36
|
# @param [String] account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
|
|
37
37
|
# @param [String] friendly_name A descriptive string that you create to describe the resource. It can be up to 64 characters long.
|
|
38
|
-
# @param [
|
|
38
|
+
# @param [String] key_type The \\\\`KeyType\\\\` form parameter is used to specify the type of key you want to create. **Default Behavior**: If \\\\`KeyType\\\\` is not specified, the API will generate a standard key. **Restricted Key**: If \\\\`KeyType\\\\` is set to \\\\`restricted\\\\`, the API will create a new restricted key. In this case, a policy object is required to define the permissions.
|
|
39
39
|
# @param [Object] policy The \\\\`Policy\\\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys).
|
|
40
40
|
# @return [NewApiKeyInstance] Created NewApiKeyInstance
|
|
41
41
|
def create(
|
|
@@ -69,7 +69,7 @@ module Twilio
|
|
|
69
69
|
# Create the NewApiKeyInstanceMetadata
|
|
70
70
|
# @param [String] account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
|
|
71
71
|
# @param [String] friendly_name A descriptive string that you create to describe the resource. It can be up to 64 characters long.
|
|
72
|
-
# @param [
|
|
72
|
+
# @param [String] key_type The \\\\`KeyType\\\\` form parameter is used to specify the type of key you want to create. **Default Behavior**: If \\\\`KeyType\\\\` is not specified, the API will generate a standard key. **Restricted Key**: If \\\\`KeyType\\\\` is set to \\\\`restricted\\\\`, the API will create a new restricted key. In this case, a policy object is required to define the permissions.
|
|
73
73
|
# @param [Object] policy The \\\\`Policy\\\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys).
|
|
74
74
|
# @return [NewApiKeyInstance] Created NewApiKeyInstance
|
|
75
75
|
def create_with_metadata(
|
|
@@ -25,15 +25,17 @@ module Twilio
|
|
|
25
25
|
# @param [owner_sid]: [String]
|
|
26
26
|
# @param [description]: [String]
|
|
27
27
|
# @param [client_sid]: [String]
|
|
28
|
+
# @param [token_endpoint_auth_method]: [String] Determines how the client authenticates. Account OAuth apps on v1 only support 'client_secret_basic'. For PKCE (none), use the v2 API.
|
|
28
29
|
# @param [policy]: [OAuthAppList.IamV1OrganizationVendoroauthappPolicy]
|
|
29
30
|
# @param [access_token_ttl]: [String]
|
|
30
|
-
attr_accessor :type, :friendly_name, :owner_sid, :description, :client_sid, :policy, :access_token_ttl
|
|
31
|
+
attr_accessor :type, :friendly_name, :owner_sid, :description, :client_sid, :token_endpoint_auth_method, :policy, :access_token_ttl
|
|
31
32
|
def initialize(payload)
|
|
32
33
|
@type = payload["type"]
|
|
33
34
|
@friendly_name = payload["friendly_name"]
|
|
34
35
|
@owner_sid = payload["owner_sid"]
|
|
35
36
|
@description = payload["description"]
|
|
36
37
|
@client_sid = payload["client_sid"]
|
|
38
|
+
@token_endpoint_auth_method = payload["token_endpoint_auth_method"]
|
|
37
39
|
@policy = payload["policy"]
|
|
38
40
|
@access_token_ttl = payload["access_token_ttl"]
|
|
39
41
|
end
|
|
@@ -44,6 +46,7 @@ module Twilio
|
|
|
44
46
|
"owner_sid": @owner_sid,
|
|
45
47
|
"description": @description,
|
|
46
48
|
"client_sid": @client_sid,
|
|
49
|
+
"token_endpoint_auth_method": @token_endpoint_auth_method,
|
|
47
50
|
"policy": @policy,
|
|
48
51
|
"access_token_ttl": @access_token_ttl,
|
|
49
52
|
}.to_json(options)
|
|
@@ -98,15 +101,17 @@ module Twilio
|
|
|
98
101
|
# @param [owner_sid]: [String]
|
|
99
102
|
# @param [description]: [String]
|
|
100
103
|
# @param [client_sid]: [String]
|
|
104
|
+
# @param [token_endpoint_auth_method]: [String] Determines how the client authenticates. Account OAuth apps on v1 only support 'client_secret_basic'. For PKCE (none), use the v2 API.
|
|
101
105
|
# @param [policy]: [OAuthAppList.IamV1OrganizationVendoroauthappPolicy]
|
|
102
106
|
# @param [access_token_ttl]: [String]
|
|
103
|
-
attr_accessor :type, :friendly_name, :owner_sid, :description, :client_sid, :policy, :access_token_ttl
|
|
107
|
+
attr_accessor :type, :friendly_name, :owner_sid, :description, :client_sid, :token_endpoint_auth_method, :policy, :access_token_ttl
|
|
104
108
|
def initialize(payload)
|
|
105
109
|
@type = payload["type"]
|
|
106
110
|
@friendly_name = payload["friendly_name"]
|
|
107
111
|
@owner_sid = payload["owner_sid"]
|
|
108
112
|
@description = payload["description"]
|
|
109
113
|
@client_sid = payload["client_sid"]
|
|
114
|
+
@token_endpoint_auth_method = payload["token_endpoint_auth_method"]
|
|
110
115
|
@policy = payload["policy"]
|
|
111
116
|
@access_token_ttl = payload["access_token_ttl"]
|
|
112
117
|
end
|
|
@@ -117,6 +122,7 @@ module Twilio
|
|
|
117
122
|
"owner_sid": @owner_sid,
|
|
118
123
|
"description": @description,
|
|
119
124
|
"client_sid": @client_sid,
|
|
125
|
+
"token_endpoint_auth_method": @token_endpoint_auth_method,
|
|
120
126
|
"policy": @policy,
|
|
121
127
|
"access_token_ttl": @access_token_ttl,
|
|
122
128
|
}.to_json(options)
|
|
@@ -503,6 +509,7 @@ module Twilio
|
|
|
503
509
|
'description' => payload['description'],
|
|
504
510
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
505
511
|
'created_by' => payload['created_by'],
|
|
512
|
+
'creator_sid' => payload['creator_sid'],
|
|
506
513
|
'secret' => payload['secret'],
|
|
507
514
|
'status' => payload['status'],
|
|
508
515
|
'policy' => payload['policy'],
|
|
@@ -564,6 +571,12 @@ module Twilio
|
|
|
564
571
|
@properties['created_by']
|
|
565
572
|
end
|
|
566
573
|
|
|
574
|
+
##
|
|
575
|
+
# @return [String] The unique identifier (SID) of the user who created this OAuth app.
|
|
576
|
+
def creator_sid
|
|
577
|
+
@properties['creator_sid']
|
|
578
|
+
end
|
|
579
|
+
|
|
567
580
|
##
|
|
568
581
|
# @return [String]
|
|
569
582
|
def secret
|
|
@@ -21,12 +21,17 @@ module Twilio
|
|
|
21
21
|
@base_url = "https://iam.twilio.com"
|
|
22
22
|
@host = "iam.twilio.com"
|
|
23
23
|
@port = 443
|
|
24
|
+
@v1 = nil
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def v1
|
|
28
|
+
@v1 ||= Iam::V1.new self
|
|
24
29
|
end
|
|
25
30
|
|
|
26
31
|
##
|
|
27
32
|
# Provide a user friendly representation
|
|
28
33
|
def to_s
|
|
29
|
-
'<Twilio::REST::Iam>';
|
|
34
|
+
'<Twilio::REST::Iam::V1>';
|
|
30
35
|
end
|
|
31
36
|
end
|
|
32
37
|
end
|
|
@@ -306,6 +306,7 @@ module Twilio
|
|
|
306
306
|
'properties' => payload['properties'],
|
|
307
307
|
'trust' => payload['trust'],
|
|
308
308
|
'annotation' => payload['annotation'],
|
|
309
|
+
'agent_session_summaries' => payload['agent_session_summaries'],
|
|
309
310
|
}
|
|
310
311
|
|
|
311
312
|
# Context
|
|
@@ -462,6 +463,12 @@ module Twilio
|
|
|
462
463
|
@properties['annotation']
|
|
463
464
|
end
|
|
464
465
|
|
|
466
|
+
##
|
|
467
|
+
# @return [Array<CallSummaryAgentSessionSummary>] `object` List of session summaries for conversation relay. See [Details: Call Summary](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-summary#conversation-relay-object) for the object properties.
|
|
468
|
+
def agent_session_summaries
|
|
469
|
+
@properties['agent_session_summaries']
|
|
470
|
+
end
|
|
471
|
+
|
|
465
472
|
##
|
|
466
473
|
# Fetch the CallSummaryInstance
|
|
467
474
|
# @param [ProcessingState] processing_state The Processing State of this Call Summary. One of `complete`, `partial` or `all`.
|
|
@@ -283,6 +283,7 @@ module Twilio
|
|
|
283
283
|
'sip_edge' => payload['sip_edge'],
|
|
284
284
|
'sdk_edge' => payload['sdk_edge'],
|
|
285
285
|
'client_edge' => payload['client_edge'],
|
|
286
|
+
'conversation_relay_data' => payload['conversation_relay_data'],
|
|
286
287
|
}
|
|
287
288
|
end
|
|
288
289
|
|
|
@@ -353,6 +354,12 @@ module Twilio
|
|
|
353
354
|
@properties['client_edge']
|
|
354
355
|
end
|
|
355
356
|
|
|
357
|
+
##
|
|
358
|
+
# @return [InsightsV1CallEventConversationRelayData]
|
|
359
|
+
def conversation_relay_data
|
|
360
|
+
@properties['conversation_relay_data']
|
|
361
|
+
end
|
|
362
|
+
|
|
356
363
|
##
|
|
357
364
|
# Provide a user friendly representation
|
|
358
365
|
def to_s
|
|
@@ -573,6 +573,7 @@ module Twilio
|
|
|
573
573
|
'properties' => payload['properties'],
|
|
574
574
|
'trust' => payload['trust'],
|
|
575
575
|
'annotation' => payload['annotation'],
|
|
576
|
+
'agent_session_summaries' => payload['agent_session_summaries'],
|
|
576
577
|
}
|
|
577
578
|
end
|
|
578
579
|
|
|
@@ -715,6 +716,12 @@ module Twilio
|
|
|
715
716
|
@properties['annotation']
|
|
716
717
|
end
|
|
717
718
|
|
|
719
|
+
##
|
|
720
|
+
# @return [Array<CallSummaryAgentSessionSummary>] `array[object]` List of agent session summaries for conversation relay. See [Details: Call Summary](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-summary#conversation-relay-object) for the object properties.
|
|
721
|
+
def agent_session_summaries
|
|
722
|
+
@properties['agent_session_summaries']
|
|
723
|
+
end
|
|
724
|
+
|
|
718
725
|
##
|
|
719
726
|
# Provide a user friendly representation
|
|
720
727
|
def to_s
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
6
|
#
|
|
7
7
|
# Twilio - Insights
|
|
8
|
-
# Insights Domain V3 API.
|
|
8
|
+
# Insights Domain V3 API. Includes synchronous Query, Metadata, and Async Query (long-running operation) endpoints.
|
|
9
9
|
#
|
|
10
10
|
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
11
|
# https://openapi-generator.tech
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
6
|
#
|
|
7
7
|
# Twilio - Insights
|
|
8
|
-
# Insights Domain V3 API.
|
|
8
|
+
# Insights Domain V3 API. Includes synchronous Query, Metadata, and Async Query (long-running operation) endpoints.
|
|
9
9
|
#
|
|
10
10
|
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
11
|
# https://openapi-generator.tech
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
6
|
#
|
|
7
7
|
# Twilio - Insights
|
|
8
|
-
# Insights Domain V3 API.
|
|
8
|
+
# Insights Domain V3 API. Includes synchronous Query, Metadata, and Async Query (long-running operation) endpoints.
|
|
9
9
|
#
|
|
10
10
|
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
11
|
# https://openapi-generator.tech
|