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.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test-and-deploy.yml +43 -67
  3. data/.gitignore +0 -1
  4. data/CHANGES.md +46 -0
  5. data/Gemfile +2 -0
  6. data/Gemfile.lock +154 -0
  7. data/README.md +3 -3
  8. data/Rakefile +1 -1
  9. data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +25 -6
  10. data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +48 -12
  11. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +6 -0
  12. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +56 -2
  13. data/lib/twilio-ruby/rest/client.rb +0 -5
  14. data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +11 -1
  15. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -10
  16. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +10 -10
  17. data/lib/twilio-ruby/rest/conversations/v2/action.rb +2 -2
  18. data/lib/twilio-ruby/rest/conversations/v2/communication.rb +43 -21
  19. data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +59 -21
  20. data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +28 -28
  21. data/lib/twilio-ruby/rest/conversations/v2/operation.rb +10 -10
  22. data/lib/twilio-ruby/rest/conversations/v2/participant.rb +58 -58
  23. data/lib/twilio-ruby/rest/conversations/v2.rb +45 -45
  24. data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +2 -2
  25. data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +15 -2
  26. data/lib/twilio-ruby/rest/iam_base.rb +6 -1
  27. data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +7 -0
  28. data/lib/twilio-ruby/rest/insights/v1/call/event.rb +7 -0
  29. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +7 -0
  30. data/lib/twilio-ruby/rest/insights/v3/metadata.rb +1 -1
  31. data/lib/twilio-ruby/rest/insights/v3/query.rb +1 -1
  32. data/lib/twilio-ruby/rest/insights/v3.rb +1 -1
  33. data/lib/twilio-ruby/rest/intelligence/v3/conversation.rb +8 -8
  34. data/lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb +502 -0
  35. data/lib/twilio-ruby/rest/intelligence/v3.rb +6 -0
  36. data/lib/twilio-ruby/rest/knowledge/v2/chunk.rb +28 -0
  37. data/lib/twilio-ruby/rest/knowledge/v2/knowledge.rb +38 -0
  38. data/lib/twilio-ruby/rest/knowledge/v2/search.rb +8 -117
  39. data/lib/twilio-ruby/rest/knowledge/v2.rb +1 -2
  40. data/lib/twilio-ruby/rest/memory/v1/bulk.rb +9 -118
  41. data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +13 -5
  42. data/lib/twilio-ruby/rest/memory/v1/data_mapping.rb +6 -12
  43. data/lib/twilio-ruby/rest/memory/v1/identifier.rb +1 -1
  44. data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +11 -132
  45. data/lib/twilio-ruby/rest/memory/v1/import.rb +28 -5
  46. data/lib/twilio-ruby/rest/memory/v1/lookup.rb +1 -1
  47. data/lib/twilio-ruby/rest/memory/v1/observation.rb +70 -18
  48. data/lib/twilio-ruby/rest/memory/v1/operation.rb +1 -1
  49. data/lib/twilio-ruby/rest/memory/v1/profile.rb +2 -2
  50. data/lib/twilio-ruby/rest/memory/v1/recall.rb +1 -1
  51. data/lib/twilio-ruby/rest/memory/v1/revision.rb +1 -1
  52. data/lib/twilio-ruby/rest/memory/v1/store.rb +1 -1
  53. data/lib/twilio-ruby/rest/memory/v1/trait.rb +1 -1
  54. data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +56 -6
  55. data/lib/twilio-ruby/rest/memory/v1.rb +3 -46
  56. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -18
  57. data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +23 -4
  58. data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +4 -4
  59. data/lib/twilio-ruby/rest/numbers/v1/sms_verification.rb +231 -0
  60. data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +238 -0
  61. data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +245 -0
  62. data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +224 -0
  63. data/lib/twilio-ruby/rest/numbers/v1.rb +24 -0
  64. data/lib/twilio-ruby/rest/{assistants/v1/session.rb → numbers/v2/caller_id.rb} +141 -127
  65. data/lib/twilio-ruby/rest/numbers/v2.rb +16 -0
  66. data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +14 -2
  67. data/lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb +259 -0
  68. data/lib/twilio-ruby/rest/oauth/v2/token.rb +8 -2
  69. data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +0 -19
  70. data/lib/twilio-ruby/rest/routes/v3/phone_number.rb +465 -0
  71. data/lib/twilio-ruby/rest/routes/v3.rb +50 -0
  72. data/lib/twilio-ruby/rest/routes_base.rb +6 -1
  73. data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration.rb +330 -0
  74. data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration_embedded_session.rb +233 -0
  75. data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration.rb +321 -0
  76. data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration_embedded_session.rb +233 -0
  77. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles_provisional_copy.rb +445 -0
  78. data/lib/twilio-ruby/rest/trusthub/v1/trust_products_provisional_copy.rb +445 -0
  79. data/lib/twilio-ruby/rest/trusthub/v1.rb +74 -0
  80. data/lib/twilio-ruby/rest/voice/v2/account_default_configuration.rb +556 -0
  81. data/lib/twilio-ruby/rest/voice/v2/configuration/default.rb +356 -0
  82. data/lib/twilio-ruby/rest/voice/v2/configuration.rb +412 -0
  83. data/lib/twilio-ruby/rest/voice/v2/recording.rb +616 -0
  84. data/lib/twilio-ruby/rest/voice/v2/transcription.rb +591 -0
  85. data/lib/twilio-ruby/rest/voice/v2/type.rb +518 -0
  86. data/lib/twilio-ruby/rest/voice/v2.rb +141 -0
  87. data/lib/twilio-ruby/rest/voice_base.rb +5 -0
  88. data/lib/twilio-ruby/twiml/voice_response.rb +6 -68
  89. data/lib/twilio-ruby/version.rb +1 -1
  90. data/twilio-ruby.gemspec +1 -1
  91. metadata +33 -21
  92. data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +0 -558
  93. data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +0 -558
  94. data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +0 -431
  95. data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +0 -296
  96. data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +0 -927
  97. data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +0 -325
  98. data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +0 -349
  99. data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +0 -871
  100. data/lib/twilio-ruby/rest/assistants/v1/policy.rb +0 -364
  101. data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +0 -360
  102. data/lib/twilio-ruby/rest/assistants/v1/tool.rb +0 -847
  103. data/lib/twilio-ruby/rest/assistants/v1.rb +0 -104
  104. data/lib/twilio-ruby/rest/assistants.rb +0 -6
  105. data/lib/twilio-ruby/rest/assistants_base.rb +0 -38
@@ -5,7 +5,7 @@
5
5
  # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
6
  #
7
7
  # Twilio Memory API
8
- # APIs for managing memory stores, profiles, events, and conversational intelligence capabilities.
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
@@ -21,7 +21,7 @@ module Twilio
21
21
 
22
22
  class IdentityResolutionSettingsCore
23
23
  # @param [identifier_configs]: [Array<IdentityResolutionSettingList.IdentifierConfig>] List of identifier types and their resolution settings.
24
- # @param [matching_rules]: [Array<String>] Priority list of identifiers to locate profiles to apply new data to, or for determining if two existing profiles should merge. Rules are evaluated in order. - If no rule matches against existing profiles, a new profile will be created. - If a rule matches to a single existing profile, the profile will be updated. - If a rule matches to multiple existing profiles, those existing profiles will be merged.
24
+ # @param [matching_rules]: [Array<String>] Priority list of identifiers to locate profiles to apply new data to, or for determining if two existing profiles should merge. Individual rules are evaluated with `OR` logic between them, meaning that satisfying any single rule will trigger a match. Each rule is a single identifier type; compound rules are not supported. Rules are evaluated in order. - If no rule matches against existing profiles, a new profile will be created. - If a rule matches to a single existing profile, the profile will be updated. - If a rule matches to multiple existing profiles, those existing profiles will be merged.
25
25
  attr_accessor :identifier_configs, :matching_rules
26
26
  def initialize(payload)
27
27
  @identifier_configs = payload["identifier_configs"]
@@ -40,40 +40,13 @@ module Twilio
40
40
  # Initialize the IdentityResolutionSettingList
41
41
  # @param [Version] version Version that contains the resource
42
42
  # @return [IdentityResolutionSettingList] IdentityResolutionSettingList
43
- def initialize(version)
43
+ def initialize(version, store_id: nil)
44
44
 
45
45
  apiV1Version = ApiV1Version.new version.domain, version
46
46
  super(apiV1Version)
47
47
  # Path Solution
48
- @solution = { }
49
-
50
-
51
- end
52
-
53
-
54
-
55
- # Provide a user friendly representation
56
- def to_s
57
- '#<Twilio.Memory.V1.IdentityResolutionSettingList>'
58
- end
59
- end
60
-
61
-
62
- class IdentityResolutionSettingContext < InstanceContext
63
- ##
64
- # Initialize the IdentityResolutionSettingContext
65
- # @param [Version] version Version that contains the resource
66
- # @param [String] store_id A unique Memory Store ID using Twilio Type ID (TTID) format
67
- # @return [IdentityResolutionSettingContext] IdentityResolutionSettingContext
68
- def initialize(version, store_id)
69
-
70
- apiV1Version = ApiV1Version.new version.domain, version
71
- super(apiV1Version)
72
-
73
- # Path Solution
74
- @solution = { store_id: store_id, }
48
+ @solution = { store_id: store_id }
75
49
  @uri = "/ControlPlane/Stores/#{@solution[:store_id]}/IdentityResolutionSettings"
76
-
77
50
 
78
51
  end
79
52
  ##
@@ -174,69 +147,15 @@ module Twilio
174
147
  )
175
148
  end
176
149
 
150
+
177
151
 
178
- ##
179
- # Provide a user friendly representation
180
- def to_s
181
- context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
182
- "#<Twilio.Memory.V1.IdentityResolutionSettingContext #{context}>"
183
- end
184
-
185
- ##
186
- # Provide a detailed, user friendly representation
187
- def inspect
188
- context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
189
- "#<Twilio.Memory.V1.IdentityResolutionSettingContext #{context}>"
190
- end
191
- end
192
-
193
- class IdentityResolutionSettingInstanceMetadata < InstanceResourceMetadata
194
- ##
195
- # Initializes a new IdentityResolutionSettingInstanceMetadata.
196
- # @param [Version] version Version that contains the resource
197
- # @param [}IdentityResolutionSettingInstance] identity_resolution_setting_instance The instance associated with the metadata.
198
- # @param [Hash] headers Header object with response headers.
199
- # @param [Integer] status_code The HTTP status code of the response.
200
- # @return [IdentityResolutionSettingInstanceMetadata] The initialized instance with metadata.
201
- def initialize(version, identity_resolution_setting_instance, headers, status_code)
202
- super(version, headers, status_code)
203
- @identity_resolution_setting_instance = identity_resolution_setting_instance
204
- end
205
-
206
- def identity_resolution_setting
207
- @identity_resolution_setting_instance
208
- end
209
-
210
- def headers
211
- @headers
212
- end
213
-
214
- def status_code
215
- @status_code
216
- end
217
152
 
153
+ # Provide a user friendly representation
218
154
  def to_s
219
- "<Twilio.Api.V2010.IdentityResolutionSettingInstanceMetadata status=#{@status_code}>"
155
+ '#<Twilio.Memory.V1.IdentityResolutionSettingList>'
220
156
  end
221
157
  end
222
158
 
223
- class IdentityResolutionSettingListResponse < InstanceListResource
224
- # @param [Array<IdentityResolutionSettingInstance>] instance
225
- # @param [Hash{String => Object}] headers
226
- # @param [Integer] status_code
227
- def initialize(version, payload, key)
228
- @identity_resolution_setting_instance = payload.body[key].map do |data|
229
- IdentityResolutionSettingInstance.new(version, data)
230
- end
231
- @headers = payload.headers
232
- @status_code = payload.status_code
233
- end
234
-
235
- def identity_resolution_setting_instance
236
- @instance
237
- end
238
- end
239
-
240
159
  class IdentityResolutionSettingPage < TokenPage
241
160
  ##
242
161
  # Initialize the IdentityResolutionSettingPage
@@ -258,7 +177,7 @@ module Twilio
258
177
  # @param [Hash] payload Payload response from the API
259
178
  # @return [IdentityResolutionSettingInstance] IdentityResolutionSettingInstance
260
179
  def get_instance(payload)
261
- IdentityResolutionSettingInstance.new(@version, payload)
180
+ IdentityResolutionSettingInstance.new(@version, payload, store_id: @solution[:store_id])
262
181
  end
263
182
 
264
183
  ##
@@ -350,22 +269,8 @@ module Twilio
350
269
  'message' => payload['message'],
351
270
  'status_url' => payload['status_url'],
352
271
  }
353
-
354
- # Context
355
- @instance_context = nil
356
- @params = { 'store_id' => store_id || @properties['store_id'] , }
357
272
  end
358
273
 
359
- ##
360
- # Generate an instance context for the instance, the context is capable of
361
- # performing various actions. All instance actions are proxied to the context
362
- # @return [IdentityResolutionSettingContext] CallContext for this CallInstance
363
- def context
364
- unless @instance_context
365
- @instance_context = IdentityResolutionSettingContext.new(@version , @params['store_id'])
366
- end
367
- @instance_context
368
- end
369
274
 
370
275
  ##
371
276
  # @return [Array<IdentifierConfig>] List of identifier types and their resolution settings.
@@ -374,7 +279,7 @@ module Twilio
374
279
  end
375
280
 
376
281
  ##
377
- # @return [Array<String>] Priority list of identifiers to locate profiles to apply new data to, or for determining if two existing profiles should merge. Rules are evaluated in order. - If no rule matches against existing profiles, a new profile will be created. - If a rule matches to a single existing profile, the profile will be updated. - If a rule matches to multiple existing profiles, those existing profiles will be merged.
282
+ # @return [Array<String>] Priority list of identifiers to locate profiles to apply new data to, or for determining if two existing profiles should merge. Individual rules are evaluated with `OR` logic between them, meaning that satisfying any single rule will trigger a match. Each rule is a single identifier type; compound rules are not supported. Rules are evaluated in order. - If no rule matches against existing profiles, a new profile will be created. - If a rule matches to a single existing profile, the profile will be updated. - If a rule matches to multiple existing profiles, those existing profiles will be merged.
378
283
  def matching_rules
379
284
  @properties['matching_rules']
380
285
  end
@@ -397,42 +302,16 @@ module Twilio
397
302
  @properties['status_url']
398
303
  end
399
304
 
400
- ##
401
- # Fetch the IdentityResolutionSettingInstance
402
- # @return [IdentityResolutionSettingInstance] Fetched IdentityResolutionSettingInstance
403
- def fetch
404
-
405
- context.fetch
406
- end
407
-
408
- ##
409
- # Update the IdentityResolutionSettingInstance
410
- # @param [String] if_match Allows for optimistic concurrency control by making the request conditional. Server will only act if the resource's current Entity Tag (ETag) matches the one provided, preventing accidental overwrites.
411
- # @param [IdentityResolutionSettingsCore] identity_resolution_settings_core
412
- # @return [IdentityResolutionSettingInstance] Updated IdentityResolutionSettingInstance
413
- def update(
414
- if_match: :unset,
415
- identity_resolution_settings_core: nil
416
- )
417
-
418
- context.update(
419
- if_match: if_match,
420
- identity_resolution_settings_core: identity_resolution_settings_core,
421
- )
422
- end
423
-
424
305
  ##
425
306
  # Provide a user friendly representation
426
307
  def to_s
427
- values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
428
- "<Twilio.Memory.V1.IdentityResolutionSettingInstance #{values}>"
308
+ "<Twilio.Memory.V1.IdentityResolutionSettingInstance>"
429
309
  end
430
310
 
431
311
  ##
432
312
  # Provide a detailed, user friendly representation
433
313
  def inspect
434
- values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
435
- "<Twilio.Memory.V1.IdentityResolutionSettingInstance #{values}>"
314
+ "<Twilio.Memory.V1.IdentityResolutionSettingInstance>"
436
315
  end
437
316
  end
438
317
 
@@ -5,7 +5,7 @@
5
5
  # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
6
  #
7
7
  # Twilio Memory API
8
- # APIs for managing memory stores, profiles, events, and conversational intelligence capabilities.
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
@@ -105,6 +105,8 @@ module Twilio
105
105
  # Lists ImportInstance records from the API as a list.
106
106
  # Unlike stream(), this operation is eager and will load `limit` records into
107
107
  # memory before returning.
108
+ # @param [String] page_token The token for the page of results to retrieve.
109
+ # @param [String] order_by Either 'ASC' or 'DESC' to sort results ascending or descending respectively.
108
110
  # @param [Integer] limit Upper limit for the number of records to return. stream()
109
111
  # guarantees to never return more than limit. Default is no limit
110
112
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -112,8 +114,10 @@ module Twilio
112
114
  # but a limit is defined, stream() will attempt to read the limit with the most
113
115
  # efficient page size, i.e. min(limit, 1000)
114
116
  # @return [Array] Array of up to limit results
115
- def list(limit: nil, page_size: nil)
117
+ def list(page_token: :unset, order_by: :unset, limit: nil, page_size: nil)
116
118
  self.stream(
119
+ page_token: page_token,
120
+ order_by: order_by,
117
121
  limit: limit,
118
122
  page_size: page_size
119
123
  ).entries
@@ -123,6 +127,8 @@ module Twilio
123
127
  # Streams Instance records from the API as an Enumerable.
124
128
  # This operation lazily loads records as efficiently as possible until the limit
125
129
  # is reached.
130
+ # @param [String] page_token The token for the page of results to retrieve.
131
+ # @param [String] order_by Either 'ASC' or 'DESC' to sort results ascending or descending respectively.
126
132
  # @param [Integer] limit Upper limit for the number of records to return. stream()
127
133
  # guarantees to never return more than limit. Default is no limit
128
134
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -130,10 +136,12 @@ module Twilio
130
136
  # but a limit is defined, stream() will attempt to read the limit with the most
131
137
  # efficient page size, i.e. min(limit, 1000)
132
138
  # @return [Enumerable] Enumerable that will yield up to limit results
133
- def stream(limit: nil, page_size: nil)
139
+ def stream(page_token: :unset, order_by: :unset, limit: nil, page_size: nil)
134
140
  limits = @version.read_limits(limit, page_size)
135
141
 
136
142
  page = self.page(
143
+ page_token: page_token,
144
+ order_by: order_by,
137
145
  page_size: limits[:page_size], )
138
146
 
139
147
  return [].each if page.nil?
@@ -145,6 +153,8 @@ module Twilio
145
153
 
146
154
  ##
147
155
  # Lists ImportPageMetadata records from the API as a list.
156
+ # @param [String] page_token The token for the page of results to retrieve.
157
+ # @param [String] order_by Either 'ASC' or 'DESC' to sort results ascending or descending respectively.
148
158
  # @param [Integer] limit Upper limit for the number of records to return. stream()
149
159
  # guarantees to never return more than limit. Default is no limit
150
160
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -152,9 +162,11 @@ module Twilio
152
162
  # but a limit is defined, stream() will attempt to read the limit with the most
153
163
  # efficient page size, i.e. min(limit, 1000)
154
164
  # @return [Array] Array of up to limit results
155
- def list_with_metadata(limit: nil, page_size: nil)
165
+ def list_with_metadata(page_token: :unset, order_by: :unset, limit: nil, page_size: nil)
156
166
  limits = @version.read_limits(limit, page_size)
157
167
  params = Twilio::Values.of({
168
+ 'pageToken' => page_token,
169
+ 'orderBy' => order_by,
158
170
 
159
171
  'PageSize' => limits[:page_size],
160
172
  });
@@ -186,10 +198,14 @@ module Twilio
186
198
  ##
187
199
  # Retrieve a single page of ImportInstance records from the API.
188
200
  # Request is executed immediately.
201
+ # @param [String] page_token The token for the page of results to retrieve.
202
+ # @param [String] order_by Either 'ASC' or 'DESC' to sort results ascending or descending respectively.
189
203
 
190
204
  # @return [Page] Page of ImportInstance
191
- def page(page_size: :unset)
205
+ def page(page_token: :unset, order_by: :unset, page_size: :unset)
192
206
  params = Twilio::Values.of({
207
+ 'pageToken' => page_token,
208
+ 'orderBy' => order_by,
193
209
  'PageSize' => page_size,
194
210
  })
195
211
  headers = Twilio::Values.of({})
@@ -467,6 +483,7 @@ module Twilio
467
483
  'column_mappings' => payload['column_mappings'],
468
484
  'summary' => payload['summary'],
469
485
  'imports' => payload['imports'],
486
+ 'meta' => payload['meta'],
470
487
  }
471
488
 
472
489
  # Context
@@ -545,6 +562,12 @@ module Twilio
545
562
  @properties['imports']
546
563
  end
547
564
 
565
+ ##
566
+ # @return [ListProfileImportsV2200ResponseMeta]
567
+ def meta
568
+ @properties['meta']
569
+ end
570
+
548
571
  ##
549
572
  # Fetch the ImportInstance
550
573
  # @return [ImportInstance] Fetched ImportInstance
@@ -5,7 +5,7 @@
5
5
  # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
6
  #
7
7
  # Twilio Memory API
8
- # APIs for managing memory stores, profiles, events, and conversational intelligence capabilities.
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
@@ -5,7 +5,7 @@
5
5
  # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
6
  #
7
7
  # Twilio Memory API
8
- # APIs for managing memory stores, profiles, events, and conversational intelligence capabilities.
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
@@ -20,7 +20,7 @@ module Twilio
20
20
  class ObservationList < ListResource
21
21
 
22
22
  class CreateObservationsRequest
23
- # @param [observations]: [Array<ObservationList.ObservationCore>] Array of observations to create in a single batch operation.
23
+ # @param [observations]: [Array<ObservationList.ObservationCreateRequest>] Array of observations to create in a single batch operation.
24
24
  attr_accessor :observations
25
25
  def initialize(payload)
26
26
  @observations = payload["observations"]
@@ -32,7 +32,29 @@ module Twilio
32
32
  end
33
33
  end
34
34
 
35
- class ObservationCore
35
+ class ObservationBase
36
+ # @param [content]: [String] The main content of the observation.
37
+ # @param [occurred_at]: [Time] The timestamp when the observation originally occurred.
38
+ # @param [source]: [String] The source system that generated this observation. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
39
+ # @param [conversation_ids]: [Array<String>] Array of conversation IDs associated with this observation.
40
+ attr_accessor :content, :occurred_at, :source, :conversation_ids
41
+ def initialize(payload)
42
+ @content = payload["content"]
43
+ @occurred_at = payload["occurred_at"]
44
+ @source = payload["source"]
45
+ @conversation_ids = payload["conversation_ids"]
46
+ end
47
+ def to_json(options = {})
48
+ {
49
+ "content": @content,
50
+ "occurredAt": @occurred_at,
51
+ "source": @source,
52
+ "conversationIds": @conversation_ids,
53
+ }.to_json(options)
54
+ end
55
+ end
56
+
57
+ class ObservationCreateRequest
36
58
  # @param [content]: [String] The main content of the observation.
37
59
  # @param [occurred_at]: [Time] The timestamp when the observation originally occurred.
38
60
  # @param [source]: [String] The source system that generated this observation. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
@@ -56,7 +78,7 @@ module Twilio
56
78
 
57
79
 
58
80
  class CreateObservationsRequest
59
- # @param [observations]: [Array<ObservationList.ObservationCore>] Array of observations to create in a single batch operation.
81
+ # @param [observations]: [Array<ObservationList.ObservationCreateRequest>] Array of observations to create in a single batch operation.
60
82
  attr_accessor :observations
61
83
  def initialize(payload)
62
84
  @observations = payload["observations"]
@@ -68,7 +90,29 @@ module Twilio
68
90
  end
69
91
  end
70
92
 
71
- class ObservationCore
93
+ class ObservationBase
94
+ # @param [content]: [String] The main content of the observation.
95
+ # @param [occurred_at]: [Time] The timestamp when the observation originally occurred.
96
+ # @param [source]: [String] The source system that generated this observation. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
97
+ # @param [conversation_ids]: [Array<String>] Array of conversation IDs associated with this observation.
98
+ attr_accessor :content, :occurred_at, :source, :conversation_ids
99
+ def initialize(payload)
100
+ @content = payload["content"]
101
+ @occurred_at = payload["occurred_at"]
102
+ @source = payload["source"]
103
+ @conversation_ids = payload["conversation_ids"]
104
+ end
105
+ def to_json(options = {})
106
+ {
107
+ "content": @content,
108
+ "occurredAt": @occurred_at,
109
+ "source": @source,
110
+ "conversationIds": @conversation_ids,
111
+ }.to_json(options)
112
+ end
113
+ end
114
+
115
+ class ObservationCreateRequest
72
116
  # @param [content]: [String] The main content of the observation.
73
117
  # @param [occurred_at]: [Time] The timestamp when the observation originally occurred.
74
118
  # @param [source]: [String] The source system that generated this observation. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
@@ -174,6 +218,7 @@ module Twilio
174
218
  # @param [String] source Filter by source. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
175
219
  # @param [Time] created_after Filter observations created after this timestamp (inclusive).
176
220
  # @param [Time] created_before Filter observations created before this timestamp (exclusive).
221
+ # @param [String] conversation_id Filter by conversation ID. Returns only items associated with the specified conversation.
177
222
  # @param [String] accept_encoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
178
223
  # @param [Integer] limit Upper limit for the number of records to return. stream()
179
224
  # guarantees to never return more than limit. Default is no limit
@@ -182,13 +227,14 @@ module Twilio
182
227
  # but a limit is defined, stream() will attempt to read the limit with the most
183
228
  # efficient page size, i.e. min(limit, 1000)
184
229
  # @return [Array] Array of up to limit results
185
- def list(page_token: :unset, order_by: :unset, source: :unset, created_after: :unset, created_before: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
230
+ def list(page_token: :unset, order_by: :unset, source: :unset, created_after: :unset, created_before: :unset, conversation_id: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
186
231
  self.stream(
187
232
  page_token: page_token,
188
233
  order_by: order_by,
189
234
  source: source,
190
235
  created_after: created_after,
191
236
  created_before: created_before,
237
+ conversation_id: conversation_id,
192
238
  accept_encoding: accept_encoding,
193
239
  limit: limit,
194
240
  page_size: page_size
@@ -204,6 +250,7 @@ module Twilio
204
250
  # @param [String] source Filter by source. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
205
251
  # @param [Time] created_after Filter observations created after this timestamp (inclusive).
206
252
  # @param [Time] created_before Filter observations created before this timestamp (exclusive).
253
+ # @param [String] conversation_id Filter by conversation ID. Returns only items associated with the specified conversation.
207
254
  # @param [String] accept_encoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
208
255
  # @param [Integer] limit Upper limit for the number of records to return. stream()
209
256
  # guarantees to never return more than limit. Default is no limit
@@ -212,7 +259,7 @@ module Twilio
212
259
  # but a limit is defined, stream() will attempt to read the limit with the most
213
260
  # efficient page size, i.e. min(limit, 1000)
214
261
  # @return [Enumerable] Enumerable that will yield up to limit results
215
- def stream(page_token: :unset, order_by: :unset, source: :unset, created_after: :unset, created_before: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
262
+ def stream(page_token: :unset, order_by: :unset, source: :unset, created_after: :unset, created_before: :unset, conversation_id: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
216
263
  limits = @version.read_limits(limit, page_size)
217
264
 
218
265
  page = self.page(
@@ -221,6 +268,7 @@ module Twilio
221
268
  source: source,
222
269
  created_after: created_after,
223
270
  created_before: created_before,
271
+ conversation_id: conversation_id,
224
272
  accept_encoding: accept_encoding,
225
273
  page_size: limits[:page_size], )
226
274
 
@@ -238,6 +286,7 @@ module Twilio
238
286
  # @param [String] source Filter by source. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
239
287
  # @param [Time] created_after Filter observations created after this timestamp (inclusive).
240
288
  # @param [Time] created_before Filter observations created before this timestamp (exclusive).
289
+ # @param [String] conversation_id Filter by conversation ID. Returns only items associated with the specified conversation.
241
290
  # @param [String] accept_encoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
242
291
  # @param [Integer] limit Upper limit for the number of records to return. stream()
243
292
  # guarantees to never return more than limit. Default is no limit
@@ -246,7 +295,7 @@ module Twilio
246
295
  # but a limit is defined, stream() will attempt to read the limit with the most
247
296
  # efficient page size, i.e. min(limit, 1000)
248
297
  # @return [Array] Array of up to limit results
249
- def list_with_metadata(page_token: :unset, order_by: :unset, source: :unset, created_after: :unset, created_before: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
298
+ def list_with_metadata(page_token: :unset, order_by: :unset, source: :unset, created_after: :unset, created_before: :unset, conversation_id: :unset, accept_encoding: :unset, limit: nil, page_size: nil)
250
299
  limits = @version.read_limits(limit, page_size)
251
300
  params = Twilio::Values.of({
252
301
  'pageToken' => page_token,
@@ -254,6 +303,7 @@ module Twilio
254
303
  'source' => source,
255
304
  'createdAfter' => Twilio.serialize_iso8601_datetime(created_after),
256
305
  'createdBefore' => Twilio.serialize_iso8601_datetime(created_before),
306
+ 'conversationId' => conversation_id,
257
307
  'Accept-Encoding' => accept_encoding,
258
308
 
259
309
  'PageSize' => limits[:page_size],
@@ -291,16 +341,18 @@ module Twilio
291
341
  # @param [String] source Filter by source. Allows letters, numbers, spaces, and URL-safe symbols. Excludes URL-unsafe characters like quotes, angle brackets, and control characters.
292
342
  # @param [Time] created_after Filter observations created after this timestamp (inclusive).
293
343
  # @param [Time] created_before Filter observations created before this timestamp (exclusive).
344
+ # @param [String] conversation_id Filter by conversation ID. Returns only items associated with the specified conversation.
294
345
  # @param [String] accept_encoding Compression algorithms supported by the client (e.g., gzip, deflate, br)
295
346
 
296
347
  # @return [Page] Page of ObservationInstance
297
- def page(page_token: :unset, order_by: :unset, source: :unset, created_after: :unset, created_before: :unset, accept_encoding: :unset, page_size: :unset)
348
+ def page(page_token: :unset, order_by: :unset, source: :unset, created_after: :unset, created_before: :unset, conversation_id: :unset, accept_encoding: :unset, page_size: :unset)
298
349
  params = Twilio::Values.of({
299
350
  'pageToken' => page_token,
300
351
  'orderBy' => order_by,
301
352
  'source' => source,
302
353
  'createdAfter' => Twilio.serialize_iso8601_datetime(created_after),
303
354
  'createdBefore' => Twilio.serialize_iso8601_datetime(created_before),
355
+ 'conversationId' => conversation_id,
304
356
  'Accept-Encoding' => accept_encoding,
305
357
  'PageSize' => page_size,
306
358
  })
@@ -443,9 +495,9 @@ module Twilio
443
495
 
444
496
  ##
445
497
  # Patch the ObservationInstance
446
- # @param [ObservationCore] observation_core
498
+ # @param [ObservationBase] observation_base
447
499
  # @return [ObservationInstance] Patched ObservationInstance
448
- def patch(observation_core: nil
500
+ def patch(observation_base: nil
449
501
  )
450
502
 
451
503
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -454,7 +506,7 @@ module Twilio
454
506
 
455
507
 
456
508
 
457
- payload = @version.patch('PATCH', @uri, headers: headers, data: observation_core.to_json)
509
+ payload = @version.patch('PATCH', @uri, headers: headers, data: observation_base.to_json)
458
510
  ObservationInstance.new(
459
511
  @version,
460
512
  payload,
@@ -466,9 +518,9 @@ module Twilio
466
518
 
467
519
  ##
468
520
  # Patch the ObservationInstanceMetadata
469
- # @param [ObservationCore] observation_core
521
+ # @param [ObservationBase] observation_base
470
522
  # @return [ObservationInstance] Patchd ObservationInstance
471
- def patch_with_metadata(observation_core: nil
523
+ def patch_with_metadata(observation_base: nil
472
524
  )
473
525
 
474
526
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -477,7 +529,7 @@ module Twilio
477
529
 
478
530
 
479
531
 
480
- response = @version.patch_with_metadata('PATCH', @uri, headers: headers, data: observation_core.to_json)
532
+ response = @version.patch_with_metadata('PATCH', @uri, headers: headers, data: observation_base.to_json)
481
533
  observation_instance = ObservationInstance.new(
482
534
  @version,
483
535
  response.body,
@@ -755,13 +807,13 @@ module Twilio
755
807
 
756
808
  ##
757
809
  # Patch the ObservationInstance
758
- # @param [ObservationCore] observation_core
810
+ # @param [ObservationBase] observation_base
759
811
  # @return [ObservationInstance] Patched ObservationInstance
760
- def patch(observation_core: nil
812
+ def patch(observation_base: nil
761
813
  )
762
814
 
763
815
  context.patch(
764
- observation_core: observation_core,
816
+ observation_base: observation_base,
765
817
  )
766
818
  end
767
819
 
@@ -5,7 +5,7 @@
5
5
  # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
6
  #
7
7
  # Twilio Memory API
8
- # APIs for managing memory stores, profiles, events, and conversational intelligence capabilities.
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
@@ -5,7 +5,7 @@
5
5
  # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
6
  #
7
7
  # Twilio Memory API
8
- # APIs for managing memory stores, profiles, events, and conversational intelligence capabilities.
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
@@ -662,7 +662,7 @@ module Twilio
662
662
  end
663
663
 
664
664
  ##
665
- # @return [ProfilesMeta]
665
+ # @return [IdentityProfilesMeta]
666
666
  def meta
667
667
  @properties['meta']
668
668
  end
@@ -5,7 +5,7 @@
5
5
  # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
6
  #
7
7
  # Twilio Memory API
8
- # APIs for managing memory stores, profiles, events, and conversational intelligence capabilities.
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
@@ -5,7 +5,7 @@
5
5
  # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
6
  #
7
7
  # Twilio Memory API
8
- # APIs for managing memory stores, profiles, events, and conversational intelligence capabilities.
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
@@ -5,7 +5,7 @@
5
5
  # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
6
  #
7
7
  # Twilio Memory API
8
- # APIs for managing memory stores, profiles, events, and conversational intelligence capabilities.
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
@@ -5,7 +5,7 @@
5
5
  # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
6
  #
7
7
  # Twilio Memory API
8
- # APIs for managing memory stores, profiles, events, and conversational intelligence capabilities.
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