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
@@ -0,0 +1,445 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Trusthub
8
+ # This is the public Twilio REST API.
9
+ #
10
+ # NOTE: This class is auto generated by OpenAPI Generator.
11
+ # https://openapi-generator.tech
12
+ # Do not edit the class manually.
13
+ #
14
+
15
+
16
+ module Twilio
17
+ module REST
18
+ class Trusthub < TrusthubBase
19
+ class V1 < Version
20
+ class TrustProductsProvisionalCopyList < ListResource
21
+
22
+ ##
23
+ # Initialize the TrustProductsProvisionalCopyList
24
+ # @param [Version] version Version that contains the resource
25
+ # @return [TrustProductsProvisionalCopyList] TrustProductsProvisionalCopyList
26
+ def initialize(version)
27
+ super(version)
28
+
29
+ # Path Solution
30
+ @solution = { }
31
+
32
+
33
+ end
34
+
35
+
36
+
37
+ # Provide a user friendly representation
38
+ def to_s
39
+ '#<Twilio.Trusthub.V1.TrustProductsProvisionalCopyList>'
40
+ end
41
+ end
42
+
43
+
44
+ class TrustProductsProvisionalCopyContext < InstanceContext
45
+ ##
46
+ # Initialize the TrustProductsProvisionalCopyContext
47
+ # @param [Version] version Version that contains the resource
48
+ # @param [String] trust_product_sid The unique SID identifier of the Trust Product.
49
+ # @return [TrustProductsProvisionalCopyContext] TrustProductsProvisionalCopyContext
50
+ def initialize(version, trust_product_sid)
51
+ super(version)
52
+
53
+
54
+ # Path Solution
55
+ @solution = { trust_product_sid: trust_product_sid, }
56
+ @uri = "/TrustProducts/#{@solution[:trust_product_sid]}/ProvisionalCopy"
57
+
58
+
59
+ end
60
+ ##
61
+ # Create the TrustProductsProvisionalCopyInstance
62
+ # @return [TrustProductsProvisionalCopyInstance] Created TrustProductsProvisionalCopyInstance
63
+ def create
64
+
65
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
66
+
67
+
68
+
69
+
70
+
71
+ payload = @version.create('POST', @uri, headers: headers)
72
+ TrustProductsProvisionalCopyInstance.new(
73
+ @version,
74
+ payload,
75
+ trust_product_sid: @solution[:trust_product_sid],
76
+ )
77
+ end
78
+
79
+ ##
80
+ # Create the TrustProductsProvisionalCopyInstanceMetadata
81
+ # @return [TrustProductsProvisionalCopyInstance] Created TrustProductsProvisionalCopyInstance
82
+ def create_with_metadata
83
+
84
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
85
+
86
+
87
+
88
+
89
+
90
+ response = @version.create_with_metadata('POST', @uri, headers: headers)
91
+ trust_products_provisional_copy_instance = TrustProductsProvisionalCopyInstance.new(
92
+ @version,
93
+ response.body,
94
+ trust_product_sid: @solution[:trust_product_sid],
95
+ )
96
+ TrustProductsProvisionalCopyInstanceMetadata.new(
97
+ @version,
98
+ trust_products_provisional_copy_instance,
99
+ response.headers,
100
+ response.status_code
101
+ )
102
+ end
103
+
104
+ ##
105
+ # Fetch the TrustProductsProvisionalCopyInstance
106
+ # @return [TrustProductsProvisionalCopyInstance] Fetched TrustProductsProvisionalCopyInstance
107
+ def fetch
108
+
109
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
110
+
111
+
112
+
113
+
114
+
115
+ payload = @version.fetch('GET', @uri, headers: headers)
116
+ TrustProductsProvisionalCopyInstance.new(
117
+ @version,
118
+ payload,
119
+ trust_product_sid: @solution[:trust_product_sid],
120
+ )
121
+ end
122
+
123
+ ##
124
+ # Fetch the TrustProductsProvisionalCopyInstanceMetadata
125
+ # @return [TrustProductsProvisionalCopyInstance] Fetched TrustProductsProvisionalCopyInstance
126
+ def fetch_with_metadata
127
+
128
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
129
+
130
+
131
+
132
+
133
+
134
+ response = @version.fetch_with_metadata('GET', @uri, headers: headers)
135
+ trust_products_provisional_copy_instance = TrustProductsProvisionalCopyInstance.new(
136
+ @version,
137
+ response.body,
138
+ trust_product_sid: @solution[:trust_product_sid],
139
+ )
140
+ TrustProductsProvisionalCopyInstanceMetadata.new(
141
+ @version,
142
+ trust_products_provisional_copy_instance,
143
+ response.headers,
144
+ response.status_code
145
+ )
146
+ end
147
+
148
+
149
+ ##
150
+ # Provide a user friendly representation
151
+ def to_s
152
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
153
+ "#<Twilio.Trusthub.V1.TrustProductsProvisionalCopyContext #{context}>"
154
+ end
155
+
156
+ ##
157
+ # Provide a detailed, user friendly representation
158
+ def inspect
159
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
160
+ "#<Twilio.Trusthub.V1.TrustProductsProvisionalCopyContext #{context}>"
161
+ end
162
+ end
163
+
164
+ class TrustProductsProvisionalCopyInstanceMetadata < InstanceResourceMetadata
165
+ ##
166
+ # Initializes a new TrustProductsProvisionalCopyInstanceMetadata.
167
+ # @param [Version] version Version that contains the resource
168
+ # @param [}TrustProductsProvisionalCopyInstance] trust_products_provisional_copy_instance The instance associated with the metadata.
169
+ # @param [Hash] headers Header object with response headers.
170
+ # @param [Integer] status_code The HTTP status code of the response.
171
+ # @return [TrustProductsProvisionalCopyInstanceMetadata] The initialized instance with metadata.
172
+ def initialize(version, trust_products_provisional_copy_instance, headers, status_code)
173
+ super(version, headers, status_code)
174
+ @trust_products_provisional_copy_instance = trust_products_provisional_copy_instance
175
+ end
176
+
177
+ def trust_products_provisional_copy
178
+ @trust_products_provisional_copy_instance
179
+ end
180
+
181
+ def headers
182
+ @headers
183
+ end
184
+
185
+ def status_code
186
+ @status_code
187
+ end
188
+
189
+ def to_s
190
+ "<Twilio.Api.V2010.TrustProductsProvisionalCopyInstanceMetadata status=#{@status_code}>"
191
+ end
192
+ end
193
+
194
+ class TrustProductsProvisionalCopyListResponse < InstanceListResource
195
+ # @param [Array<TrustProductsProvisionalCopyInstance>] instance
196
+ # @param [Hash{String => Object}] headers
197
+ # @param [Integer] status_code
198
+ def initialize(version, payload, key)
199
+ @trust_products_provisional_copy_instance = payload.body[key].map do |data|
200
+ TrustProductsProvisionalCopyInstance.new(version, data)
201
+ end
202
+ @headers = payload.headers
203
+ @status_code = payload.status_code
204
+ end
205
+
206
+ def trust_products_provisional_copy_instance
207
+ @instance
208
+ end
209
+ end
210
+
211
+ class TrustProductsProvisionalCopyPage < Page
212
+ ##
213
+ # Initialize the TrustProductsProvisionalCopyPage
214
+ # @param [Version] version Version that contains the resource
215
+ # @param [Response] response Response from the API
216
+ # @param [Hash] solution Path solution for the resource
217
+ # @return [TrustProductsProvisionalCopyPage] TrustProductsProvisionalCopyPage
218
+ def initialize(version, response, solution)
219
+ super(version, response)
220
+
221
+
222
+ # Path Solution
223
+ @solution = solution
224
+ end
225
+
226
+ ##
227
+ # Build an instance of TrustProductsProvisionalCopyInstance
228
+ # @param [Hash] payload Payload response from the API
229
+ # @return [TrustProductsProvisionalCopyInstance] TrustProductsProvisionalCopyInstance
230
+ def get_instance(payload)
231
+ TrustProductsProvisionalCopyInstance.new(@version, payload)
232
+ end
233
+
234
+ ##
235
+ # Provide a user friendly representation
236
+ def to_s
237
+ '<Twilio.Trusthub.V1.TrustProductsProvisionalCopyPage>'
238
+ end
239
+ end
240
+
241
+ class TrustProductsProvisionalCopyPageMetadata < PageMetadata
242
+ attr_reader :trust_products_provisional_copy_page
243
+
244
+ def initialize(version, response, solution, limit)
245
+ super(version, response)
246
+ @trust_products_provisional_copy_page = []
247
+ @limit = limit
248
+ key = get_key(response.body)
249
+ records = 0
250
+ while( limit != :unset && records < limit )
251
+ @trust_products_provisional_copy_page << TrustProductsProvisionalCopyListResponse.new(version, @payload, key, limit - records)
252
+ @payload = self.next_page
253
+ break unless @payload
254
+ records += (@payload.body[key] || []).size
255
+ end
256
+ # Path Solution
257
+ @solution = solution
258
+ end
259
+
260
+ def each
261
+ @trust_products_provisional_copy_page.each do |record|
262
+ yield record
263
+ end
264
+ end
265
+
266
+ def to_s
267
+ '<Twilio::REST::Trusthub::V1PageMetadata>';
268
+ end
269
+ end
270
+ class TrustProductsProvisionalCopyListResponse < InstanceListResource
271
+
272
+ # @param [Array<TrustProductsProvisionalCopyInstance>] instance
273
+ # @param [Hash{String => Object}] headers
274
+ # @param [Integer] status_code
275
+ def initialize(version, payload, key, limit = :unset)
276
+ data_list = payload.body[key] || []
277
+ if limit != :unset
278
+ data_list = data_list[0, limit]
279
+ end
280
+ @trust_products_provisional_copy = data_list.map do |data|
281
+ TrustProductsProvisionalCopyInstance.new(version, data)
282
+ end
283
+ @headers = payload.headers
284
+ @status_code = payload.status_code
285
+ end
286
+
287
+ def trust_products_provisional_copy
288
+ @trust_products_provisional_copy
289
+ end
290
+
291
+ def headers
292
+ @headers
293
+ end
294
+
295
+ def status_code
296
+ @status_code
297
+ end
298
+ end
299
+
300
+ class TrustProductsProvisionalCopyInstance < InstanceResource
301
+ ##
302
+ # Initialize the TrustProductsProvisionalCopyInstance
303
+ # @param [Version] version Version that contains the resource
304
+ # @param [Hash] payload payload that contains response from Twilio
305
+ # @param [String] account_sid The SID of the
306
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this TrustProductsProvisionalCopy
307
+ # resource.
308
+ # @param [String] sid The SID of the Call resource to fetch.
309
+ # @return [TrustProductsProvisionalCopyInstance] TrustProductsProvisionalCopyInstance
310
+ def initialize(version, payload , trust_product_sid: nil)
311
+ super(version)
312
+
313
+
314
+ # Marshaled Properties
315
+ @properties = {
316
+ 'trust_product_sid' => payload['trust_product_sid'],
317
+ 'account_sid' => payload['account_sid'],
318
+ 'policy_sid' => payload['policy_sid'],
319
+ 'friendly_name' => payload['friendly_name'],
320
+ 'status' => payload['status'],
321
+ 'email' => payload['email'],
322
+ 'status_callback' => payload['status_callback'],
323
+ 'valid_until' => Twilio.deserialize_iso8601_datetime(payload['valid_until']),
324
+ 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
325
+ 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
326
+ 'url' => payload['url'],
327
+ }
328
+
329
+ # Context
330
+ @instance_context = nil
331
+ @params = { 'trust_product_sid' => trust_product_sid || @properties['trust_product_sid'] , }
332
+ end
333
+
334
+ ##
335
+ # Generate an instance context for the instance, the context is capable of
336
+ # performing various actions. All instance actions are proxied to the context
337
+ # @return [TrustProductsProvisionalCopyContext] CallContext for this CallInstance
338
+ def context
339
+ unless @instance_context
340
+ @instance_context = TrustProductsProvisionalCopyContext.new(@version , @params['trust_product_sid'])
341
+ end
342
+ @instance_context
343
+ end
344
+
345
+ ##
346
+ # @return [String] The unique SID identifier of the Trust Product.
347
+ def trust_product_sid
348
+ @properties['trust_product_sid']
349
+ end
350
+
351
+ ##
352
+ # @return [String] The unique SID identifier of the Account.
353
+ def account_sid
354
+ @properties['account_sid']
355
+ end
356
+
357
+ ##
358
+ # @return [String] The unique SID identifier of the Policy.
359
+ def policy_sid
360
+ @properties['policy_sid']
361
+ end
362
+
363
+ ##
364
+ # @return [String] A human readable description of this resource, up to 64 characters.
365
+ def friendly_name
366
+ @properties['friendly_name']
367
+ end
368
+
369
+ ##
370
+ # @return [String] The verification status of the Customer-Profile resource.
371
+ def status
372
+ @properties['status']
373
+ end
374
+
375
+ ##
376
+ # @return [String] The email address that will receive updates when the trust product resource changes status.
377
+ def email
378
+ @properties['email']
379
+ end
380
+
381
+ ##
382
+ # @return [String] The URL we call to inform your application of status changes.
383
+ def status_callback
384
+ @properties['status_callback']
385
+ end
386
+
387
+ ##
388
+ # @return [Time] The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format when the resource will be valid until.
389
+ def valid_until
390
+ @properties['valid_until']
391
+ end
392
+
393
+ ##
394
+ # @return [Time] The date that this Trust Products Provisional Copy was created, given in ISO 8601 format.
395
+ def date_created
396
+ @properties['date_created']
397
+ end
398
+
399
+ ##
400
+ # @return [Time] The date that this Trust Products Provisional Copy was updated, given in ISO 8601 format.
401
+ def date_updated
402
+ @properties['date_updated']
403
+ end
404
+
405
+ ##
406
+ # @return [String] The URL of this resource.
407
+ def url
408
+ @properties['url']
409
+ end
410
+
411
+ ##
412
+ # Create the TrustProductsProvisionalCopyInstance
413
+ # @return [TrustProductsProvisionalCopyInstance] Created TrustProductsProvisionalCopyInstance
414
+ def create
415
+
416
+ context.create
417
+ end
418
+
419
+ ##
420
+ # Fetch the TrustProductsProvisionalCopyInstance
421
+ # @return [TrustProductsProvisionalCopyInstance] Fetched TrustProductsProvisionalCopyInstance
422
+ def fetch
423
+
424
+ context.fetch
425
+ end
426
+
427
+ ##
428
+ # Provide a user friendly representation
429
+ def to_s
430
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
431
+ "<Twilio.Trusthub.V1.TrustProductsProvisionalCopyInstance #{values}>"
432
+ end
433
+
434
+ ##
435
+ # Provide a detailed, user friendly representation
436
+ def inspect
437
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
438
+ "<Twilio.Trusthub.V1.TrustProductsProvisionalCopyInstance #{values}>"
439
+ end
440
+ end
441
+
442
+ end
443
+ end
444
+ end
445
+ end
@@ -21,18 +21,62 @@ module Twilio
21
21
  def initialize(domain)
22
22
  super
23
23
  @version = 'v1'
24
+ @a2p_brand_registrations = nil
25
+ @a2p_brand_registration_embedded_sessions = nil
26
+ @a2p_campaign_registrations = nil
27
+ @a2p_campaign_registration_embedded_sessions = nil
24
28
  @compliance_inquiries = nil
25
29
  @compliance_registration_inquiries = nil
26
30
  @compliance_tollfree_inquiries = nil
27
31
  @customer_profiles = nil
32
+ @customer_profiles_provisional_copy = nil
28
33
  @end_users = nil
29
34
  @end_user_types = nil
30
35
  @policies = nil
31
36
  @supporting_documents = nil
32
37
  @supporting_document_types = nil
33
38
  @trust_products = nil
39
+ @trust_products_provisional_copy = nil
34
40
  end
35
41
 
42
+ ##
43
+ # @return [Twilio::REST::Trusthub::V1::A2PBrandRegistrationList]
44
+ def a2p_brand_registrations
45
+ @a2p_brand_registrations ||= A2PBrandRegistrationList.new self
46
+ end
47
+ ##
48
+ # @param [String] id The unique identifier for the A2P Brand Registration.
49
+ # @return [Twilio::REST::Trusthub::V1::A2PBrandRegistrationEmbeddedSessionList]
50
+ def a2p_brand_registration_embedded_sessions(id=:unset)
51
+ if id.nil?
52
+ raise ArgumentError, 'id cannot be nil'
53
+ end
54
+
55
+ if id == :unset
56
+ @a2p_brand_registration_embedded_sessions ||= A2PBrandRegistrationEmbeddedSessionList.new self
57
+ else
58
+ A2PBrandRegistrationEmbeddedSessionList.new(self, id: id)
59
+ end
60
+ end
61
+ ##
62
+ # @return [Twilio::REST::Trusthub::V1::A2PCampaignRegistrationList]
63
+ def a2p_campaign_registrations
64
+ @a2p_campaign_registrations ||= A2PCampaignRegistrationList.new self
65
+ end
66
+ ##
67
+ # @param [String] id The unique identifier for the A2P Campaign Registration. This can be either an A2P Campaign Registration ID (formatted `tri1.us1.account.AC.../registration.BU...`) returned from the Initialize Campaign endpoint, or a Messaging Service SID (`MG...`) for campaigns created outside the embeddable.
68
+ # @return [Twilio::REST::Trusthub::V1::A2PCampaignRegistrationEmbeddedSessionList]
69
+ def a2p_campaign_registration_embedded_sessions(id=:unset)
70
+ if id.nil?
71
+ raise ArgumentError, 'id cannot be nil'
72
+ end
73
+
74
+ if id == :unset
75
+ @a2p_campaign_registration_embedded_sessions ||= A2PCampaignRegistrationEmbeddedSessionList.new self
76
+ else
77
+ A2PCampaignRegistrationEmbeddedSessionList.new(self, id: id)
78
+ end
79
+ end
36
80
  ##
37
81
  # @param [String] customer_id The unique CustomerId matching the Customer Profile/Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Inquiry creation call.
38
82
  # @return [Twilio::REST::Trusthub::V1::ComplianceInquiriesContext] if customerId was passed.
@@ -84,6 +128,21 @@ module Twilio
84
128
  end
85
129
  end
86
130
  ##
131
+ # @param [String] customer_profile_sid The unique SID identifier of the Customer Profile.
132
+ # @return [Twilio::REST::Trusthub::V1::CustomerProfilesProvisionalCopyContext] if customerProfileSid was passed.
133
+ # @return [Twilio::REST::Trusthub::V1::CustomerProfilesProvisionalCopyList]
134
+ def customer_profiles_provisional_copy(customer_profile_sid=:unset)
135
+ if customer_profile_sid.nil?
136
+ raise ArgumentError, 'customer_profile_sid cannot be nil'
137
+ end
138
+
139
+ if customer_profile_sid == :unset
140
+ @customer_profiles_provisional_copy ||= CustomerProfilesProvisionalCopyList.new self
141
+ else
142
+ CustomerProfilesProvisionalCopyContext.new(self, customer_profile_sid)
143
+ end
144
+ end
145
+ ##
87
146
  # @param [String] sid The unique string created by Twilio to identify the End User resource.
88
147
  # @return [Twilio::REST::Trusthub::V1::EndUserContext] if sid was passed.
89
148
  # @return [Twilio::REST::Trusthub::V1::EndUserList]
@@ -174,6 +233,21 @@ module Twilio
174
233
  end
175
234
  end
176
235
  ##
236
+ # @param [String] trust_product_sid The unique SID identifier of the Trust Product.
237
+ # @return [Twilio::REST::Trusthub::V1::TrustProductsProvisionalCopyContext] if trustProductSid was passed.
238
+ # @return [Twilio::REST::Trusthub::V1::TrustProductsProvisionalCopyList]
239
+ def trust_products_provisional_copy(trust_product_sid=:unset)
240
+ if trust_product_sid.nil?
241
+ raise ArgumentError, 'trust_product_sid cannot be nil'
242
+ end
243
+
244
+ if trust_product_sid == :unset
245
+ @trust_products_provisional_copy ||= TrustProductsProvisionalCopyList.new self
246
+ else
247
+ TrustProductsProvisionalCopyContext.new(self, trust_product_sid)
248
+ end
249
+ end
250
+ ##
177
251
  # Provide a user friendly representation
178
252
  def to_s
179
253
  '<Twilio::REST::Trusthub::V1>';