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
|
@@ -43,40 +43,13 @@ module Twilio
|
|
|
43
43
|
# Initialize the SearchList
|
|
44
44
|
# @param [Version] version Version that contains the resource
|
|
45
45
|
# @return [SearchList] SearchList
|
|
46
|
-
def initialize(version)
|
|
46
|
+
def initialize(version, kb_id: nil)
|
|
47
47
|
|
|
48
48
|
apiV1Version = ApiV1Version.new version.domain, version
|
|
49
49
|
super(apiV1Version)
|
|
50
50
|
# Path Solution
|
|
51
|
-
@solution = {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
# Provide a user friendly representation
|
|
59
|
-
def to_s
|
|
60
|
-
'#<Twilio.Knowledge.V2.SearchList>'
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
class SearchContext < InstanceContext
|
|
66
|
-
##
|
|
67
|
-
# Initialize the SearchContext
|
|
68
|
-
# @param [Version] version Version that contains the resource
|
|
69
|
-
# @param [String] kb_id A unique Knowledge Base ID using Twilio Type ID (TTID) format
|
|
70
|
-
# @return [SearchContext] SearchContext
|
|
71
|
-
def initialize(version, kb_id)
|
|
72
|
-
|
|
73
|
-
apiV1Version = ApiV1Version.new version.domain, version
|
|
74
|
-
super(apiV1Version)
|
|
75
|
-
|
|
76
|
-
# Path Solution
|
|
77
|
-
@solution = { kb_id: kb_id, }
|
|
51
|
+
@solution = { kb_id: kb_id }
|
|
78
52
|
@uri = "/KnowledgeBases/#{@solution[:kb_id]}/Search"
|
|
79
|
-
|
|
80
53
|
|
|
81
54
|
end
|
|
82
55
|
##
|
|
@@ -127,69 +100,15 @@ module Twilio
|
|
|
127
100
|
)
|
|
128
101
|
end
|
|
129
102
|
|
|
103
|
+
|
|
130
104
|
|
|
131
|
-
##
|
|
132
|
-
# Provide a user friendly representation
|
|
133
|
-
def to_s
|
|
134
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
135
|
-
"#<Twilio.Knowledge.V2.SearchContext #{context}>"
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
##
|
|
139
|
-
# Provide a detailed, user friendly representation
|
|
140
|
-
def inspect
|
|
141
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
142
|
-
"#<Twilio.Knowledge.V2.SearchContext #{context}>"
|
|
143
|
-
end
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
class SearchInstanceMetadata < InstanceResourceMetadata
|
|
147
|
-
##
|
|
148
|
-
# Initializes a new SearchInstanceMetadata.
|
|
149
|
-
# @param [Version] version Version that contains the resource
|
|
150
|
-
# @param [}SearchInstance] search_instance The instance associated with the metadata.
|
|
151
|
-
# @param [Hash] headers Header object with response headers.
|
|
152
|
-
# @param [Integer] status_code The HTTP status code of the response.
|
|
153
|
-
# @return [SearchInstanceMetadata] The initialized instance with metadata.
|
|
154
|
-
def initialize(version, search_instance, headers, status_code)
|
|
155
|
-
super(version, headers, status_code)
|
|
156
|
-
@search_instance = search_instance
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
def search
|
|
160
|
-
@search_instance
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
def headers
|
|
164
|
-
@headers
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
def status_code
|
|
168
|
-
@status_code
|
|
169
|
-
end
|
|
170
105
|
|
|
106
|
+
# Provide a user friendly representation
|
|
171
107
|
def to_s
|
|
172
|
-
|
|
108
|
+
'#<Twilio.Knowledge.V2.SearchList>'
|
|
173
109
|
end
|
|
174
110
|
end
|
|
175
111
|
|
|
176
|
-
class SearchListResponse < InstanceListResource
|
|
177
|
-
# @param [Array<SearchInstance>] instance
|
|
178
|
-
# @param [Hash{String => Object}] headers
|
|
179
|
-
# @param [Integer] status_code
|
|
180
|
-
def initialize(version, payload, key)
|
|
181
|
-
@search_instance = payload.body[key].map do |data|
|
|
182
|
-
SearchInstance.new(version, data)
|
|
183
|
-
end
|
|
184
|
-
@headers = payload.headers
|
|
185
|
-
@status_code = payload.status_code
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
def search_instance
|
|
189
|
-
@instance
|
|
190
|
-
end
|
|
191
|
-
end
|
|
192
|
-
|
|
193
112
|
class SearchPage < TokenPage
|
|
194
113
|
##
|
|
195
114
|
# Initialize the SearchPage
|
|
@@ -211,7 +130,7 @@ module Twilio
|
|
|
211
130
|
# @param [Hash] payload Payload response from the API
|
|
212
131
|
# @return [SearchInstance] SearchInstance
|
|
213
132
|
def get_instance(payload)
|
|
214
|
-
SearchInstance.new(@version, payload)
|
|
133
|
+
SearchInstance.new(@version, payload, kb_id: @solution[:kb_id])
|
|
215
134
|
end
|
|
216
135
|
|
|
217
136
|
##
|
|
@@ -299,22 +218,8 @@ module Twilio
|
|
|
299
218
|
@properties = {
|
|
300
219
|
'chunks' => payload['chunks'],
|
|
301
220
|
}
|
|
302
|
-
|
|
303
|
-
# Context
|
|
304
|
-
@instance_context = nil
|
|
305
|
-
@params = { 'kb_id' => kb_id || @properties['kb_id'] , }
|
|
306
221
|
end
|
|
307
222
|
|
|
308
|
-
##
|
|
309
|
-
# Generate an instance context for the instance, the context is capable of
|
|
310
|
-
# performing various actions. All instance actions are proxied to the context
|
|
311
|
-
# @return [SearchContext] CallContext for this CallInstance
|
|
312
|
-
def context
|
|
313
|
-
unless @instance_context
|
|
314
|
-
@instance_context = SearchContext.new(@version , @params['kb_id'])
|
|
315
|
-
end
|
|
316
|
-
@instance_context
|
|
317
|
-
end
|
|
318
223
|
|
|
319
224
|
##
|
|
320
225
|
# @return [Array<KnowledgeChunkResult>]
|
|
@@ -322,30 +227,16 @@ module Twilio
|
|
|
322
227
|
@properties['chunks']
|
|
323
228
|
end
|
|
324
229
|
|
|
325
|
-
##
|
|
326
|
-
# Create the SearchInstance
|
|
327
|
-
# @param [KnowledgeSearch] knowledge_search
|
|
328
|
-
# @return [SearchInstance] Created SearchInstance
|
|
329
|
-
def create(knowledge_search: :unset
|
|
330
|
-
)
|
|
331
|
-
|
|
332
|
-
context.create(
|
|
333
|
-
knowledge_search: knowledge_search,
|
|
334
|
-
)
|
|
335
|
-
end
|
|
336
|
-
|
|
337
230
|
##
|
|
338
231
|
# Provide a user friendly representation
|
|
339
232
|
def to_s
|
|
340
|
-
|
|
341
|
-
"<Twilio.Knowledge.V2.SearchInstance #{values}>"
|
|
233
|
+
"<Twilio.Knowledge.V2.SearchInstance>"
|
|
342
234
|
end
|
|
343
235
|
|
|
344
236
|
##
|
|
345
237
|
# Provide a detailed, user friendly representation
|
|
346
238
|
def inspect
|
|
347
|
-
|
|
348
|
-
"<Twilio.Knowledge.V2.SearchInstance #{values}>"
|
|
239
|
+
"<Twilio.Knowledge.V2.SearchInstance>"
|
|
349
240
|
end
|
|
350
241
|
end
|
|
351
242
|
|
|
@@ -121,7 +121,6 @@ module Twilio
|
|
|
121
121
|
end
|
|
122
122
|
##
|
|
123
123
|
# @param [String] kb_id A unique Knowledge Base ID using Twilio Type ID (TTID) format
|
|
124
|
-
# @return [Twilio::REST::Knowledge::V2::SearchContext] if kbId was passed.
|
|
125
124
|
# @return [Twilio::REST::Knowledge::V2::SearchList]
|
|
126
125
|
def search(kb_id=:unset)
|
|
127
126
|
if kb_id.nil?
|
|
@@ -131,7 +130,7 @@ module Twilio
|
|
|
131
130
|
if kb_id == :unset
|
|
132
131
|
@search ||= SearchList.new self
|
|
133
132
|
else
|
|
134
|
-
|
|
133
|
+
SearchList.new(self, kb_id: kb_id)
|
|
135
134
|
end
|
|
136
135
|
end
|
|
137
136
|
##
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
6
|
#
|
|
7
7
|
# Twilio Memory API
|
|
8
|
-
# APIs for managing memory stores, profiles,
|
|
8
|
+
# APIs for managing memory stores, profiles, and conversational intelligence capabilities.
|
|
9
9
|
#
|
|
10
10
|
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
11
|
# https://openapi-generator.tech
|
|
@@ -50,40 +50,13 @@ module Twilio
|
|
|
50
50
|
# Initialize the BulkList
|
|
51
51
|
# @param [Version] version Version that contains the resource
|
|
52
52
|
# @return [BulkList] BulkList
|
|
53
|
-
def initialize(version)
|
|
53
|
+
def initialize(version, store_id: nil)
|
|
54
54
|
|
|
55
55
|
apiV1Version = ApiV1Version.new version.domain, version
|
|
56
56
|
super(apiV1Version)
|
|
57
57
|
# Path Solution
|
|
58
|
-
@solution = {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
# Provide a user friendly representation
|
|
66
|
-
def to_s
|
|
67
|
-
'#<Twilio.Memory.V1.BulkList>'
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
class BulkContext < InstanceContext
|
|
73
|
-
##
|
|
74
|
-
# Initialize the BulkContext
|
|
75
|
-
# @param [Version] version Version that contains the resource
|
|
76
|
-
# @param [String] store_id A unique Memory Store ID using Twilio Type ID (TTID) format
|
|
77
|
-
# @return [BulkContext] BulkContext
|
|
78
|
-
def initialize(version, store_id)
|
|
79
|
-
|
|
80
|
-
apiV1Version = ApiV1Version.new version.domain, version
|
|
81
|
-
super(apiV1Version)
|
|
82
|
-
|
|
83
|
-
# Path Solution
|
|
84
|
-
@solution = { store_id: store_id, }
|
|
58
|
+
@solution = { store_id: store_id }
|
|
85
59
|
@uri = "/Stores/#{@solution[:store_id]}/Profiles/Bulk"
|
|
86
|
-
|
|
87
60
|
|
|
88
61
|
end
|
|
89
62
|
##
|
|
@@ -134,69 +107,15 @@ module Twilio
|
|
|
134
107
|
)
|
|
135
108
|
end
|
|
136
109
|
|
|
110
|
+
|
|
137
111
|
|
|
138
|
-
##
|
|
139
|
-
# Provide a user friendly representation
|
|
140
|
-
def to_s
|
|
141
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
142
|
-
"#<Twilio.Memory.V1.BulkContext #{context}>"
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
##
|
|
146
|
-
# Provide a detailed, user friendly representation
|
|
147
|
-
def inspect
|
|
148
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
149
|
-
"#<Twilio.Memory.V1.BulkContext #{context}>"
|
|
150
|
-
end
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
class BulkInstanceMetadata < InstanceResourceMetadata
|
|
154
|
-
##
|
|
155
|
-
# Initializes a new BulkInstanceMetadata.
|
|
156
|
-
# @param [Version] version Version that contains the resource
|
|
157
|
-
# @param [}BulkInstance] bulk_instance The instance associated with the metadata.
|
|
158
|
-
# @param [Hash] headers Header object with response headers.
|
|
159
|
-
# @param [Integer] status_code The HTTP status code of the response.
|
|
160
|
-
# @return [BulkInstanceMetadata] The initialized instance with metadata.
|
|
161
|
-
def initialize(version, bulk_instance, headers, status_code)
|
|
162
|
-
super(version, headers, status_code)
|
|
163
|
-
@bulk_instance = bulk_instance
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
def bulk
|
|
167
|
-
@bulk_instance
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
def headers
|
|
171
|
-
@headers
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
def status_code
|
|
175
|
-
@status_code
|
|
176
|
-
end
|
|
177
112
|
|
|
113
|
+
# Provide a user friendly representation
|
|
178
114
|
def to_s
|
|
179
|
-
|
|
115
|
+
'#<Twilio.Memory.V1.BulkList>'
|
|
180
116
|
end
|
|
181
117
|
end
|
|
182
118
|
|
|
183
|
-
class BulkListResponse < InstanceListResource
|
|
184
|
-
# @param [Array<BulkInstance>] instance
|
|
185
|
-
# @param [Hash{String => Object}] headers
|
|
186
|
-
# @param [Integer] status_code
|
|
187
|
-
def initialize(version, payload, key)
|
|
188
|
-
@bulk_instance = payload.body[key].map do |data|
|
|
189
|
-
BulkInstance.new(version, data)
|
|
190
|
-
end
|
|
191
|
-
@headers = payload.headers
|
|
192
|
-
@status_code = payload.status_code
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
def bulk_instance
|
|
196
|
-
@instance
|
|
197
|
-
end
|
|
198
|
-
end
|
|
199
|
-
|
|
200
119
|
class BulkPage < TokenPage
|
|
201
120
|
##
|
|
202
121
|
# Initialize the BulkPage
|
|
@@ -218,7 +137,7 @@ module Twilio
|
|
|
218
137
|
# @param [Hash] payload Payload response from the API
|
|
219
138
|
# @return [BulkInstance] BulkInstance
|
|
220
139
|
def get_instance(payload)
|
|
221
|
-
BulkInstance.new(@version, payload)
|
|
140
|
+
BulkInstance.new(@version, payload, store_id: @solution[:store_id])
|
|
222
141
|
end
|
|
223
142
|
|
|
224
143
|
##
|
|
@@ -306,22 +225,8 @@ module Twilio
|
|
|
306
225
|
@properties = {
|
|
307
226
|
'message' => payload['message'],
|
|
308
227
|
}
|
|
309
|
-
|
|
310
|
-
# Context
|
|
311
|
-
@instance_context = nil
|
|
312
|
-
@params = { 'store_id' => store_id || @properties['store_id'] , }
|
|
313
228
|
end
|
|
314
229
|
|
|
315
|
-
##
|
|
316
|
-
# Generate an instance context for the instance, the context is capable of
|
|
317
|
-
# performing various actions. All instance actions are proxied to the context
|
|
318
|
-
# @return [BulkContext] CallContext for this CallInstance
|
|
319
|
-
def context
|
|
320
|
-
unless @instance_context
|
|
321
|
-
@instance_context = BulkContext.new(@version , @params['store_id'])
|
|
322
|
-
end
|
|
323
|
-
@instance_context
|
|
324
|
-
end
|
|
325
230
|
|
|
326
231
|
##
|
|
327
232
|
# @return [String]
|
|
@@ -329,30 +234,16 @@ module Twilio
|
|
|
329
234
|
@properties['message']
|
|
330
235
|
end
|
|
331
236
|
|
|
332
|
-
##
|
|
333
|
-
# Update the BulkInstance
|
|
334
|
-
# @param [UpdateProfilesBulkRequest] update_profiles_bulk_request
|
|
335
|
-
# @return [BulkInstance] Updated BulkInstance
|
|
336
|
-
def update(update_profiles_bulk_request: nil
|
|
337
|
-
)
|
|
338
|
-
|
|
339
|
-
context.update(
|
|
340
|
-
update_profiles_bulk_request: update_profiles_bulk_request,
|
|
341
|
-
)
|
|
342
|
-
end
|
|
343
|
-
|
|
344
237
|
##
|
|
345
238
|
# Provide a user friendly representation
|
|
346
239
|
def to_s
|
|
347
|
-
|
|
348
|
-
"<Twilio.Memory.V1.BulkInstance #{values}>"
|
|
240
|
+
"<Twilio.Memory.V1.BulkInstance>"
|
|
349
241
|
end
|
|
350
242
|
|
|
351
243
|
##
|
|
352
244
|
# Provide a detailed, user friendly representation
|
|
353
245
|
def inspect
|
|
354
|
-
|
|
355
|
-
"<Twilio.Memory.V1.BulkInstance #{values}>"
|
|
246
|
+
"<Twilio.Memory.V1.BulkInstance>"
|
|
356
247
|
end
|
|
357
248
|
end
|
|
358
249
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
6
|
#
|
|
7
7
|
# Twilio Memory API
|
|
8
|
-
# APIs for managing memory stores, profiles,
|
|
8
|
+
# APIs for managing memory stores, profiles, and conversational intelligence capabilities.
|
|
9
9
|
#
|
|
10
10
|
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
11
|
# https://openapi-generator.tech
|
|
@@ -214,6 +214,7 @@ module Twilio
|
|
|
214
214
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
215
215
|
# memory before returning.
|
|
216
216
|
# @param [String] page_token The token for the page of results to retrieve.
|
|
217
|
+
# @param [String] conversation_id Filter by conversation ID. Returns only items associated with the specified conversation.
|
|
217
218
|
# @param [String] accept_encoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
|
|
218
219
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
219
220
|
# guarantees to never return more than limit. Default is no limit
|
|
@@ -222,9 +223,10 @@ module Twilio
|
|
|
222
223
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
223
224
|
# efficient page size, i.e. min(limit, 1000)
|
|
224
225
|
# @return [Array] Array of up to limit results
|
|
225
|
-
def list(page_token: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
226
|
+
def list(page_token: :unset, conversation_id: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
226
227
|
self.stream(
|
|
227
228
|
page_token: page_token,
|
|
229
|
+
conversation_id: conversation_id,
|
|
228
230
|
accept_encoding: accept_encoding,
|
|
229
231
|
limit: limit,
|
|
230
232
|
page_size: page_size
|
|
@@ -236,6 +238,7 @@ module Twilio
|
|
|
236
238
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
237
239
|
# is reached.
|
|
238
240
|
# @param [String] page_token The token for the page of results to retrieve.
|
|
241
|
+
# @param [String] conversation_id Filter by conversation ID. Returns only items associated with the specified conversation.
|
|
239
242
|
# @param [String] accept_encoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
|
|
240
243
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
241
244
|
# guarantees to never return more than limit. Default is no limit
|
|
@@ -244,11 +247,12 @@ module Twilio
|
|
|
244
247
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
245
248
|
# efficient page size, i.e. min(limit, 1000)
|
|
246
249
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
247
|
-
def stream(page_token: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
250
|
+
def stream(page_token: :unset, conversation_id: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
248
251
|
limits = @version.read_limits(limit, page_size)
|
|
249
252
|
|
|
250
253
|
page = self.page(
|
|
251
254
|
page_token: page_token,
|
|
255
|
+
conversation_id: conversation_id,
|
|
252
256
|
accept_encoding: accept_encoding,
|
|
253
257
|
page_size: limits[:page_size], )
|
|
254
258
|
|
|
@@ -262,6 +266,7 @@ module Twilio
|
|
|
262
266
|
##
|
|
263
267
|
# Lists ConversationSummaryPageMetadata records from the API as a list.
|
|
264
268
|
# @param [String] page_token The token for the page of results to retrieve.
|
|
269
|
+
# @param [String] conversation_id Filter by conversation ID. Returns only items associated with the specified conversation.
|
|
265
270
|
# @param [String] accept_encoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
|
|
266
271
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
267
272
|
# guarantees to never return more than limit. Default is no limit
|
|
@@ -270,10 +275,11 @@ module Twilio
|
|
|
270
275
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
271
276
|
# efficient page size, i.e. min(limit, 1000)
|
|
272
277
|
# @return [Array] Array of up to limit results
|
|
273
|
-
def list_with_metadata(page_token: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
278
|
+
def list_with_metadata(page_token: :unset, conversation_id: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
|
|
274
279
|
limits = @version.read_limits(limit, page_size)
|
|
275
280
|
params = Twilio::Values.of({
|
|
276
281
|
'pageToken' => page_token,
|
|
282
|
+
'conversationId' => conversation_id,
|
|
277
283
|
'Accept-Encoding' => accept_encoding,
|
|
278
284
|
|
|
279
285
|
'PageSize' => limits[:page_size],
|
|
@@ -307,12 +313,14 @@ module Twilio
|
|
|
307
313
|
# Retrieve a single page of ConversationSummaryInstance records from the API.
|
|
308
314
|
# Request is executed immediately.
|
|
309
315
|
# @param [String] page_token The token for the page of results to retrieve.
|
|
316
|
+
# @param [String] conversation_id Filter by conversation ID. Returns only items associated with the specified conversation.
|
|
310
317
|
# @param [String] accept_encoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
|
|
311
318
|
|
|
312
319
|
# @return [Page] Page of ConversationSummaryInstance
|
|
313
|
-
def page(page_token: :unset, accept_encoding: :unset, page_size: :unset)
|
|
320
|
+
def page(page_token: :unset, conversation_id: :unset, accept_encoding: :unset, page_size: :unset)
|
|
314
321
|
params = Twilio::Values.of({
|
|
315
322
|
'pageToken' => page_token,
|
|
323
|
+
'conversationId' => conversation_id,
|
|
316
324
|
'Accept-Encoding' => accept_encoding,
|
|
317
325
|
'PageSize' => page_size,
|
|
318
326
|
})
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
6
|
#
|
|
7
7
|
# Twilio Memory API
|
|
8
|
-
# APIs for managing memory stores, profiles,
|
|
8
|
+
# APIs for managing memory stores, profiles, and conversational intelligence capabilities.
|
|
9
9
|
#
|
|
10
10
|
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
11
|
# https://openapi-generator.tech
|
|
@@ -24,7 +24,7 @@ module Twilio
|
|
|
24
24
|
# @param [description]: [String] A human readable description of this resource, up to 512 characters.
|
|
25
25
|
# @param [is_enabled]: [Boolean] Flag indicating whether the data mapping is active. When true, data will be ingested and mapped according to the configuration. When false, the data mapping will be inactive and no data will be ingested into the Memory Store.
|
|
26
26
|
# @param [mapping_to]: [DataMappingList.DataMappingToTraits]
|
|
27
|
-
# @param [mapping_from]: [DataMappingList.
|
|
27
|
+
# @param [mapping_from]: [DataMappingList.DataMappingFromTypes]
|
|
28
28
|
attr_accessor :display_name, :description, :is_enabled, :mapping_to, :mapping_from
|
|
29
29
|
def initialize(payload)
|
|
30
30
|
@display_name = payload["display_name"]
|
|
@@ -67,20 +67,17 @@ module Twilio
|
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
class MappingTraitItem
|
|
70
|
-
# @param [field_name]: [String] The name of the field/column in the source. Deprecated in favor of expression.
|
|
71
70
|
# @param [expression]: [String] The expression identifying the field/column in the source.
|
|
72
71
|
# @param [trait_group]: [String] The name of the Trait Group to map to.
|
|
73
72
|
# @param [trait_name]: [String] The name of the trait within the Trait Group to map to.
|
|
74
|
-
attr_accessor :
|
|
73
|
+
attr_accessor :expression, :trait_group, :trait_name
|
|
75
74
|
def initialize(payload)
|
|
76
|
-
@field_name = payload["field_name"]
|
|
77
75
|
@expression = payload["expression"]
|
|
78
76
|
@trait_group = payload["trait_group"]
|
|
79
77
|
@trait_name = payload["trait_name"]
|
|
80
78
|
end
|
|
81
79
|
def to_json(options = {})
|
|
82
80
|
{
|
|
83
|
-
"fieldName": @field_name,
|
|
84
81
|
"expression": @expression,
|
|
85
82
|
"traitGroup": @trait_group,
|
|
86
83
|
"traitName": @trait_name,
|
|
@@ -94,7 +91,7 @@ module Twilio
|
|
|
94
91
|
# @param [description]: [String] A human readable description of this resource, up to 512 characters.
|
|
95
92
|
# @param [is_enabled]: [Boolean] Flag indicating whether the data mapping is active. When true, data will be ingested and mapped according to the configuration. When false, the data mapping will be inactive and no data will be ingested into the Memory Store.
|
|
96
93
|
# @param [mapping_to]: [DataMappingList.DataMappingToTraits]
|
|
97
|
-
# @param [mapping_from]: [DataMappingList.
|
|
94
|
+
# @param [mapping_from]: [DataMappingList.DataMappingFromTypes]
|
|
98
95
|
attr_accessor :display_name, :description, :is_enabled, :mapping_to, :mapping_from
|
|
99
96
|
def initialize(payload)
|
|
100
97
|
@display_name = payload["display_name"]
|
|
@@ -137,20 +134,17 @@ module Twilio
|
|
|
137
134
|
end
|
|
138
135
|
|
|
139
136
|
class MappingTraitItem
|
|
140
|
-
# @param [field_name]: [String] The name of the field/column in the source. Deprecated in favor of expression.
|
|
141
137
|
# @param [expression]: [String] The expression identifying the field/column in the source.
|
|
142
138
|
# @param [trait_group]: [String] The name of the Trait Group to map to.
|
|
143
139
|
# @param [trait_name]: [String] The name of the trait within the Trait Group to map to.
|
|
144
|
-
attr_accessor :
|
|
140
|
+
attr_accessor :expression, :trait_group, :trait_name
|
|
145
141
|
def initialize(payload)
|
|
146
|
-
@field_name = payload["field_name"]
|
|
147
142
|
@expression = payload["expression"]
|
|
148
143
|
@trait_group = payload["trait_group"]
|
|
149
144
|
@trait_name = payload["trait_name"]
|
|
150
145
|
end
|
|
151
146
|
def to_json(options = {})
|
|
152
147
|
{
|
|
153
|
-
"fieldName": @field_name,
|
|
154
148
|
"expression": @expression,
|
|
155
149
|
"traitGroup": @trait_group,
|
|
156
150
|
"traitName": @trait_name,
|
|
@@ -761,7 +755,7 @@ module Twilio
|
|
|
761
755
|
end
|
|
762
756
|
|
|
763
757
|
##
|
|
764
|
-
# @return [
|
|
758
|
+
# @return [DataMappingFromTypes]
|
|
765
759
|
def mapping_from
|
|
766
760
|
@properties['mapping_from']
|
|
767
761
|
end
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
6
|
#
|
|
7
7
|
# Twilio Memory API
|
|
8
|
-
# APIs for managing memory stores, profiles,
|
|
8
|
+
# APIs for managing memory stores, profiles, and conversational intelligence capabilities.
|
|
9
9
|
#
|
|
10
10
|
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
11
|
# https://openapi-generator.tech
|