twilio-ruby 7.2.4 → 7.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +20 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +303 -0
  5. data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +626 -0
  6. data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +229 -0
  7. data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +593 -0
  8. data/lib/twilio-ruby/rest/assistants/v1/policy.rb +264 -0
  9. data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +264 -0
  10. data/lib/twilio-ruby/rest/assistants/v1/session.rb +328 -0
  11. data/lib/twilio-ruby/rest/assistants/v1/tool.rb +549 -0
  12. data/lib/twilio-ruby/rest/assistants/v1.rb +100 -0
  13. data/lib/twilio-ruby/rest/assistants.rb +6 -0
  14. data/lib/twilio-ruby/rest/assistants_base.rb +38 -0
  15. data/lib/twilio-ruby/rest/client.rb +10 -0
  16. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +11 -11
  17. data/lib/twilio-ruby/rest/content/v1/content.rb +103 -6
  18. data/lib/twilio-ruby/rest/iam/v1/api_key.rb +270 -0
  19. data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +223 -0
  20. data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +177 -0
  21. data/lib/twilio-ruby/rest/iam/v1.rb +61 -0
  22. data/lib/twilio-ruby/rest/iam.rb +6 -0
  23. data/lib/twilio-ruby/rest/iam_base.rb +38 -0
  24. data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +11 -24
  25. data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +28 -15
  26. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +2 -2
  27. data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +2 -2
  28. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +4 -4
  29. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +7 -0
  30. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
  31. data/lib/twilio-ruby/version.rb +1 -1
  32. metadata +19 -2
@@ -44,7 +44,7 @@ module Twilio
44
44
  ##
45
45
  # Initialize the ModuleDataManagementContext
46
46
  # @param [Version] version Version that contains the resource
47
- # @param [String] sid
47
+ # @param [String] sid SID that uniquely identifies the Listing.
48
48
  # @return [ModuleDataManagementContext] ModuleDataManagementContext
49
49
  def initialize(version, sid)
50
50
  super(version)
@@ -72,12 +72,13 @@ module Twilio
72
72
 
73
73
  ##
74
74
  # Update the ModuleDataManagementInstance
75
- # @param [String] module_info
76
- # @param [String] description
77
- # @param [String] documentation
78
- # @param [String] policies
79
- # @param [String] support
80
- # @param [String] configuration
75
+ # @param [String] module_info A JSON object containing essential attributes that define a Listing.
76
+ # @param [String] description A JSON object describing the Listing. You can define the main body of the description, highlight key features or aspects of the Listing, and provide code samples for developers if applicable.
77
+ # @param [String] documentation A JSON object for providing comprehensive information, instructions, and resources related to the Listing.
78
+ # @param [String] policies A JSON object describing the Listing's privacy and legal policies. The maximum file size for Policies is 5MB.
79
+ # @param [String] support A JSON object containing information on how Marketplace users can obtain support for the Listing. Use this parameter to provide details such as contact information and support description.
80
+ # @param [String] configuration A JSON object for providing Listing-specific configuration. Contains button setup, notification URL, and more.
81
+ # @param [String] pricing A JSON object for providing Listing's purchase options.
81
82
  # @return [ModuleDataManagementInstance] Updated ModuleDataManagementInstance
82
83
  def update(
83
84
  module_info: :unset,
@@ -85,7 +86,8 @@ module Twilio
85
86
  documentation: :unset,
86
87
  policies: :unset,
87
88
  support: :unset,
88
- configuration: :unset
89
+ configuration: :unset,
90
+ pricing: :unset
89
91
  )
90
92
 
91
93
  data = Twilio::Values.of({
@@ -95,6 +97,7 @@ module Twilio
95
97
  'Policies' => policies,
96
98
  'Support' => support,
97
99
  'Configuration' => configuration,
100
+ 'Pricing' => pricing,
98
101
  })
99
102
 
100
103
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -174,6 +177,7 @@ module Twilio
174
177
  'module_info' => payload['module_info'],
175
178
  'documentation' => payload['documentation'],
176
179
  'configuration' => payload['configuration'],
180
+ 'pricing' => payload['pricing'],
177
181
  }
178
182
 
179
183
  # Context
@@ -240,6 +244,12 @@ module Twilio
240
244
  @properties['configuration']
241
245
  end
242
246
 
247
+ ##
248
+ # @return [Hash] A JSON object for providing Listing specific pricing information.
249
+ def pricing
250
+ @properties['pricing']
251
+ end
252
+
243
253
  ##
244
254
  # Fetch the ModuleDataManagementInstance
245
255
  # @return [ModuleDataManagementInstance] Fetched ModuleDataManagementInstance
@@ -250,12 +260,13 @@ module Twilio
250
260
 
251
261
  ##
252
262
  # Update the ModuleDataManagementInstance
253
- # @param [String] module_info
254
- # @param [String] description
255
- # @param [String] documentation
256
- # @param [String] policies
257
- # @param [String] support
258
- # @param [String] configuration
263
+ # @param [String] module_info A JSON object containing essential attributes that define a Listing.
264
+ # @param [String] description A JSON object describing the Listing. You can define the main body of the description, highlight key features or aspects of the Listing, and provide code samples for developers if applicable.
265
+ # @param [String] documentation A JSON object for providing comprehensive information, instructions, and resources related to the Listing.
266
+ # @param [String] policies A JSON object describing the Listing's privacy and legal policies. The maximum file size for Policies is 5MB.
267
+ # @param [String] support A JSON object containing information on how Marketplace users can obtain support for the Listing. Use this parameter to provide details such as contact information and support description.
268
+ # @param [String] configuration A JSON object for providing Listing-specific configuration. Contains button setup, notification URL, and more.
269
+ # @param [String] pricing A JSON object for providing Listing's purchase options.
259
270
  # @return [ModuleDataManagementInstance] Updated ModuleDataManagementInstance
260
271
  def update(
261
272
  module_info: :unset,
@@ -263,7 +274,8 @@ module Twilio
263
274
  documentation: :unset,
264
275
  policies: :unset,
265
276
  support: :unset,
266
- configuration: :unset
277
+ configuration: :unset,
278
+ pricing: :unset
267
279
  )
268
280
 
269
281
  context.update(
@@ -273,6 +285,7 @@ module Twilio
273
285
  policies: policies,
274
286
  support: support,
275
287
  configuration: configuration,
288
+ pricing: pricing,
276
289
  )
277
290
  end
278
291
 
@@ -166,7 +166,7 @@ module Twilio
166
166
  'losing_carrier_information' => payload['losing_carrier_information'],
167
167
  'phone_numbers' => payload['phone_numbers'],
168
168
  'documents' => payload['documents'],
169
- 'date_created' => Twilio.deserialize_iso8601_date(payload['date_created']),
169
+ 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
170
170
  }
171
171
 
172
172
  # Context
@@ -252,7 +252,7 @@ module Twilio
252
252
  end
253
253
 
254
254
  ##
255
- # @return [Date]
255
+ # @return [Time]
256
256
  def date_created
257
257
  @properties['date_created']
258
258
  end
@@ -58,7 +58,7 @@ module Twilio
58
58
  ##
59
59
  # Create the BundleCloneInstance
60
60
  # @param [String] target_account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) where the bundle needs to be cloned.
61
- # @param [Boolean] move_to_draft This is to determine whether the cloned bundle needs to be in draft state or not.
61
+ # @param [Boolean] move_to_draft If set to true, the cloned bundle will be in the DRAFT state, else it will be twilio-approved
62
62
  # @param [String] friendly_name The string that you assigned to describe the cloned bundle.
63
63
  # @return [BundleCloneInstance] Created BundleCloneInstance
64
64
  def create(
@@ -240,7 +240,7 @@ module Twilio
240
240
  ##
241
241
  # Create the BundleCloneInstance
242
242
  # @param [String] target_account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) where the bundle needs to be cloned.
243
- # @param [Boolean] move_to_draft This is to determine whether the cloned bundle needs to be in draft state or not.
243
+ # @param [Boolean] move_to_draft If set to true, the cloned bundle will be in the DRAFT state, else it will be twilio-approved
244
244
  # @param [String] friendly_name The string that you assigned to describe the cloned bundle.
245
245
  # @return [BundleCloneInstance] Created BundleCloneInstance
246
246
  def create(
@@ -40,7 +40,7 @@ module Twilio
40
40
  # @param [String] regulation_sid The unique string of a regulation that is associated to the Bundle resource.
41
41
  # @param [String] iso_country The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
42
42
  # @param [EndUserType] end_user_type
43
- # @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll free`.
43
+ # @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
44
44
  # @param [Boolean] is_test Indicates that Bundle is a Test Bundle and will be Auto-Rejected
45
45
  # @return [BundleInstance] Created BundleInstance
46
46
  def create(
@@ -83,7 +83,7 @@ module Twilio
83
83
  # @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
84
84
  # @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
85
85
  # @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
86
- # @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `tollfree`.
86
+ # @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
87
87
  # @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
88
88
  # @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
89
89
  # @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
@@ -123,7 +123,7 @@ module Twilio
123
123
  # @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
124
124
  # @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
125
125
  # @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
126
- # @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `tollfree`.
126
+ # @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
127
127
  # @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
128
128
  # @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
129
129
  # @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
@@ -178,7 +178,7 @@ module Twilio
178
178
  # @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
179
179
  # @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
180
180
  # @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
181
- # @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `tollfree`.
181
+ # @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
182
182
  # @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
183
183
  # @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
184
184
  # @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
@@ -283,6 +283,7 @@ module Twilio
283
283
  'mime_type' => payload['mime_type'],
284
284
  'status' => payload['status'],
285
285
  'failure_reason' => payload['failure_reason'],
286
+ 'errors' => payload['errors'],
286
287
  'type' => payload['type'],
287
288
  'attributes' => payload['attributes'],
288
289
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
@@ -342,6 +343,12 @@ module Twilio
342
343
  @properties['failure_reason']
343
344
  end
344
345
 
346
+ ##
347
+ # @return [Array<Hash>] A list of errors that occurred during the registering RC Bundle
348
+ def errors
349
+ @properties['errors']
350
+ end
351
+
345
352
  ##
346
353
  # @return [String] The type of the Supporting Document.
347
354
  def type
@@ -227,7 +227,7 @@ module Twilio
227
227
  end
228
228
 
229
229
  ##
230
- # @return [String] The total number of Workers available for Tasks in the TaskQueue.
230
+ # @return [String] The total number of Workers in the TaskQueue with an `available` status. Workers with an `available` status may already have active interactions or may have none.
231
231
  def total_available_workers
232
232
  @properties['total_available_workers']
233
233
  end
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '7.2.4'
2
+ VERSION = '7.3.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilio-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.4
4
+ version: 7.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twilio API Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-26 00:00:00.000000000 Z
11
+ date: 2024-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -334,6 +334,17 @@ files:
334
334
  - lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb
335
335
  - lib/twilio-ruby/rest/api/v2010/account/validation_request.rb
336
336
  - lib/twilio-ruby/rest/api_base.rb
337
+ - lib/twilio-ruby/rest/assistants.rb
338
+ - lib/twilio-ruby/rest/assistants/v1.rb
339
+ - lib/twilio-ruby/rest/assistants/v1/assistant.rb
340
+ - lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb
341
+ - lib/twilio-ruby/rest/assistants/v1/knowledge.rb
342
+ - lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb
343
+ - lib/twilio-ruby/rest/assistants/v1/policy.rb
344
+ - lib/twilio-ruby/rest/assistants/v1/session.rb
345
+ - lib/twilio-ruby/rest/assistants/v1/session/message.rb
346
+ - lib/twilio-ruby/rest/assistants/v1/tool.rb
347
+ - lib/twilio-ruby/rest/assistants_base.rb
337
348
  - lib/twilio-ruby/rest/bulkexports.rb
338
349
  - lib/twilio-ruby/rest/bulkexports/v1.rb
339
350
  - lib/twilio-ruby/rest/bulkexports/v1/export.rb
@@ -460,6 +471,12 @@ files:
460
471
  - lib/twilio-ruby/rest/frontline_api/v1.rb
461
472
  - lib/twilio-ruby/rest/frontline_api/v1/user.rb
462
473
  - lib/twilio-ruby/rest/frontline_api_base.rb
474
+ - lib/twilio-ruby/rest/iam.rb
475
+ - lib/twilio-ruby/rest/iam/v1.rb
476
+ - lib/twilio-ruby/rest/iam/v1/api_key.rb
477
+ - lib/twilio-ruby/rest/iam/v1/get_api_keys.rb
478
+ - lib/twilio-ruby/rest/iam/v1/new_api_key.rb
479
+ - lib/twilio-ruby/rest/iam_base.rb
463
480
  - lib/twilio-ruby/rest/insights.rb
464
481
  - lib/twilio-ruby/rest/insights/v1.rb
465
482
  - lib/twilio-ruby/rest/insights/v1/call.rb