twilio-ruby 7.6.2 → 7.6.4

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 (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +48 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +5 -5
  5. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +1 -1
  6. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +1 -1
  7. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +1 -1
  8. data/lib/twilio-ruby/rest/client.rb +0 -10
  9. data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +315 -0
  10. data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +390 -0
  11. data/lib/twilio-ruby/rest/lookups/v2/query.rb +456 -0
  12. data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +136 -0
  13. data/lib/twilio-ruby/rest/lookups/v2.rb +86 -0
  14. data/lib/twilio-ruby/rest/messaging/v1/service/destination_alpha_sender.rb +9 -3
  15. data/lib/twilio-ruby/rest/messaging/v1/service.rb +4 -4
  16. data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +133 -1
  17. data/lib/twilio-ruby/rest/proxy/v1/service.rb +0 -27
  18. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +1 -1
  19. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +1 -1
  20. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +7 -0
  21. data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +3 -3
  22. data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +2 -2
  23. data/lib/twilio-ruby/rest/{proxy/v1/service/short_code.rb → video/v1/room/transcriptions.rb} +110 -123
  24. data/lib/twilio-ruby/rest/video/v1/room.rb +27 -0
  25. data/lib/twilio-ruby/twiml/voice_response.rb +24 -0
  26. data/lib/twilio-ruby/version.rb +1 -1
  27. metadata +7 -19
  28. data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +0 -232
  29. data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -213
  30. data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +0 -617
  31. data/lib/twilio-ruby/rest/knowledge/v1.rb +0 -49
  32. data/lib/twilio-ruby/rest/knowledge.rb +0 -6
  33. data/lib/twilio-ruby/rest/knowledge_base.rb +0 -38
  34. data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -382
  35. data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -375
  36. data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -213
  37. data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -361
  38. data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -398
  39. data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -391
  40. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -441
  41. data/lib/twilio-ruby/rest/microvisor/v1.rb +0 -94
  42. data/lib/twilio-ruby/rest/microvisor.rb +0 -24
  43. data/lib/twilio-ruby/rest/microvisor_base.rb +0 -38
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f321f5183bb9ab541e4744c4a2a213cc0946181
4
- data.tar.gz: e7985074741cbbf76e57097bad449f6414438285
3
+ metadata.gz: d3aabe2d10f18948707c56a5b645b942a0b57506
4
+ data.tar.gz: 615afb1db51c0deca5f519632f852b2431f0e692
5
5
  SHA512:
6
- metadata.gz: e1d83e1a70972240293d5515935f372a84a7bdf226da8f5529707f331abd74024039105156a3288f17d78ed2bb2862fb0e06aa1dde66d283b86dd7e8e6c88997
7
- data.tar.gz: 6bd6e7ca9ea2d99e9863f3859aaea80ea3e015988be4f39d4951a06233fc52665715ca8e54b01899a8f22f47dc156ed00435de5f5942a0e52499f5f996359746
6
+ metadata.gz: 6561467ff44a322cdf93f0bec0a355aba581f8c1d2dd400ab2188d2e2efae5b84695d25e0fee7b039b4bf1a798b46a3acdf36a5bc41f3324c35403ff6d63480f
7
+ data.tar.gz: 1d85accc8aaa2a76d5cbeac39d6c11feaffa499409460b49b1c02a02f762d3f2dc21f8194149395b24ea34a1b119e3ab17b1d03abbff809ccee368564a6c4da9
data/CHANGES.md CHANGED
@@ -1,6 +1,54 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2025-07-03] Version 7.6.4
5
+ --------------------------
6
+ **Library - Chore**
7
+ - [PR #750](https://github.com/twilio/twilio-ruby/pull/750): Remove references to microvisor. Thanks to [@akhani18](https://github.com/akhani18)!
8
+ - [PR #752](https://github.com/twilio/twilio-ruby/pull/752): remove knowledge domain. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
9
+
10
+ **Bulkexports**
11
+ - Changed the type of 'details' field to be a list of objects instead of a single object
12
+
13
+ **Conversations**
14
+ - Updates to `method` casing for ConfgurationAddress, ConversationScopedWebhook, and ServiceConversationScopedWebhook for RestProxy compatibility
15
+
16
+ **Proxy**
17
+ - remove shortcodes resource as its no longer used
18
+
19
+ **Serverless**
20
+ - Change log field level from type `ienum` to `string` in Logs api
21
+
22
+ **Taskrouter**
23
+ - Remove `URL-encoded` from attributes param definition in tasks
24
+
25
+ **Trunking**
26
+ - Added `symmetric_rtp_enabled` property on Trunks.
27
+
28
+ **Twiml**
29
+ - Add support for `<WhatsApp>` noun under `<Dial>` verb
30
+
31
+
32
+ [2025-06-12] Version 7.6.3
33
+ --------------------------
34
+ **Library - Chore**
35
+ - [PR #751](https://github.com/twilio/twilio-ruby/pull/751): Delete knowledge related files. Thanks to [@krishnakalluri](https://github.com/krishnakalluri)!
36
+
37
+ **Api**
38
+ - Change DependentPhoneNumber `capabilities` type `object` and `date_created`, `date_updated` to `date_time<rfc2822>`
39
+ - Updated the `Default` value from 0 to 1 in the Recordings Resource `channels` property
40
+
41
+ **Serverless**
42
+ - Update `ienum` type level in Logs api
43
+
44
+ **Verify**
45
+ - Update Channel list in Verify Attempst API
46
+ - Update `ienum` type for Conversion_Status in Verify Attempts API
47
+
48
+ **Twiml**
49
+ - Add `us2` to the list of supported values for the region attribute in the `<Conference>` TwiML noun.
50
+
51
+
4
52
  [2025-05-29] Version 7.6.2
5
53
  --------------------------
6
54
  **Library - Chore**
data/README.md CHANGED
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
39
39
  To install using [Bundler][bundler] grab the latest stable version:
40
40
 
41
41
  ```ruby
42
- gem 'twilio-ruby', '~> 7.6.2'
42
+ gem 'twilio-ruby', '~> 7.6.4'
43
43
  ```
44
44
 
45
45
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
46
46
 
47
47
  ```bash
48
- gem install twilio-ruby -v 7.6.2
48
+ gem install twilio-ruby -v 7.6.4
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
@@ -181,8 +181,8 @@ module Twilio
181
181
  'voice_fallback_method' => payload['voice_fallback_method'],
182
182
  'voice_fallback_url' => payload['voice_fallback_url'],
183
183
  'voice_caller_id_lookup' => payload['voice_caller_id_lookup'],
184
- 'date_created' => payload['date_created'],
185
- 'date_updated' => payload['date_updated'],
184
+ 'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
185
+ 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
186
186
  'sms_fallback_method' => payload['sms_fallback_method'],
187
187
  'sms_fallback_url' => payload['sms_fallback_url'],
188
188
  'sms_method' => payload['sms_method'],
@@ -257,13 +257,13 @@ module Twilio
257
257
  end
258
258
 
259
259
  ##
260
- # @return [String] The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
260
+ # @return [Time] The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
261
261
  def date_created
262
262
  @properties['date_created']
263
263
  end
264
264
 
265
265
  ##
266
- # @return [String] The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
266
+ # @return [Time] The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
267
267
  def date_updated
268
268
  @properties['date_updated']
269
269
  end
@@ -299,7 +299,7 @@ module Twilio
299
299
  end
300
300
 
301
301
  ##
302
- # @return [ApiV2010AccountAddressDependentPhoneNumberCapabilities]
302
+ # @return [Hash] The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`.
303
303
  def capabilities
304
304
  @properties['capabilities']
305
305
  end
@@ -428,7 +428,7 @@ module Twilio
428
428
  end
429
429
 
430
430
  ##
431
- # @return [String] The number of channels in the final recording file. Can be: `1` or `2`.
431
+ # @return [String] The number of channels in the final recording file. Can be: `1` or `2`. Default: `1`.
432
432
  def channels
433
433
  @properties['channels']
434
434
  end
@@ -276,7 +276,7 @@ module Twilio
276
276
  end
277
277
 
278
278
  ##
279
- # @return [Hash] The details of a job which is an object that contains an array of status grouped by `status` state. Each `status` object has a `status` string, a count which is the number of days in that `status`, and list of days in that `status`. The day strings are in the format yyyy-MM-dd. As an example, a currently running job may have a status object for COMPLETED and a `status` object for SUBMITTED each with its own count and list of days.
279
+ # @return [Array<Hash>] The details of a job which is an object that contains an array of status grouped by `status` state. Each `status` object has a `status` string, a count which is the number of days in that `status`, and list of days in that `status`. The day strings are in the format yyyy-MM-dd. As an example, a currently running job may have a status object for COMPLETED and a `status` object for SUBMITTED each with its own count and list of days.
280
280
  def details
281
281
  @properties['details']
282
282
  end
@@ -190,7 +190,7 @@ module Twilio
190
190
  end
191
191
 
192
192
  ##
193
- # @return [Hash] The details of a job which is an object that contains an array of status grouped by `status` state. Each `status` object has a `status` string, a count which is the number of days in that `status`, and list of days in that `status`. The day strings are in the format yyyy-MM-dd. As an example, a currently running job may have a status object for COMPLETED and a `status` object for SUBMITTED each with its own count and list of days.
193
+ # @return [Array<Hash>] The details of a job which is an object that contains an array of status grouped by `status` state. Each `status` object has a `status` string, a count which is the number of days in that `status`, and list of days in that `status`. The day strings are in the format yyyy-MM-dd. As an example, a currently running job may have a status object for COMPLETED and a `status` object for SUBMITTED each with its own count and list of days.
194
194
  def details
195
195
  @properties['details']
196
196
  end
@@ -92,11 +92,6 @@ module Twilio
92
92
  @ip_messaging ||= IpMessaging.new self
93
93
  end
94
94
  ##
95
- # Access the Knowledge Twilio Domain
96
- def knowledge
97
- @knowledge ||= Knowledge.new self
98
- end
99
- ##
100
95
  # Access the Lookups Twilio Domain
101
96
  def lookups
102
97
  @lookups ||= Lookups.new self
@@ -112,11 +107,6 @@ module Twilio
112
107
  @messaging ||= Messaging.new self
113
108
  end
114
109
  ##
115
- # Access the Microvisor Twilio Domain
116
- def microvisor
117
- @microvisor ||= Microvisor.new self
118
- end
119
- ##
120
110
  # Access the Monitor Twilio Domain
121
111
  def monitor
122
112
  @monitor ||= Monitor.new self
@@ -0,0 +1,315 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Lookups
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 Lookups < LookupsBase
19
+ class V2 < Version
20
+ class BucketList < ListResource
21
+
22
+ class RateLimitRequest
23
+ # @param [limit]: [String] Limit of requests for the bucket
24
+ # @param [ttl]: [String] Time to live of the rule
25
+ attr_accessor :limit, :ttl
26
+ def initialize(payload)
27
+ @limit = payload["limit"]
28
+ @ttl = payload["ttl"]
29
+ end
30
+ def to_json(options = {})
31
+ {
32
+ "limit": @limit,
33
+ "ttl": @ttl,
34
+ }.to_json(options)
35
+ end
36
+ end
37
+
38
+
39
+ ##
40
+ # Initialize the BucketList
41
+ # @param [Version] version Version that contains the resource
42
+ # @return [BucketList] BucketList
43
+ def initialize(version)
44
+ super(version)
45
+ # Path Solution
46
+ @solution = { }
47
+
48
+
49
+ end
50
+
51
+
52
+
53
+ # Provide a user friendly representation
54
+ def to_s
55
+ '#<Twilio.Lookups.V2.BucketList>'
56
+ end
57
+ end
58
+
59
+
60
+ class BucketContext < InstanceContext
61
+ ##
62
+ # Initialize the BucketContext
63
+ # @param [Version] version Version that contains the resource
64
+ # @param [String] field field name
65
+ # @param [String] bucket bucket name
66
+ # @return [BucketContext] BucketContext
67
+ def initialize(version, field, bucket)
68
+ super(version)
69
+
70
+ # Path Solution
71
+ @solution = { field: field, bucket: bucket, }
72
+ @uri = "/RateLimits/Fields/#{@solution[:field]}/Bucket/#{@solution[:bucket]}"
73
+
74
+
75
+ end
76
+ ##
77
+ # Delete the BucketInstance
78
+ # @return [Boolean] True if delete succeeds, false otherwise
79
+ def delete
80
+
81
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
82
+
83
+
84
+
85
+ @version.delete('DELETE', @uri, headers: headers)
86
+ end
87
+
88
+ ##
89
+ # Fetch the BucketInstance
90
+ # @return [BucketInstance] Fetched BucketInstance
91
+ def fetch
92
+
93
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
94
+
95
+
96
+
97
+
98
+
99
+ payload = @version.fetch('GET', @uri, headers: headers)
100
+ BucketInstance.new(
101
+ @version,
102
+ payload,
103
+ field: @solution[:field],
104
+ bucket: @solution[:bucket],
105
+ )
106
+ end
107
+
108
+ ##
109
+ # Update the BucketInstance
110
+ # @param [RateLimitRequest] rate_limit_request
111
+ # @return [BucketInstance] Updated BucketInstance
112
+ def update(rate_limit_request: :unset
113
+ )
114
+
115
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
116
+ headers['Content-Type'] = 'application/json'
117
+
118
+
119
+
120
+
121
+ payload = @version.update('PUT', @uri, headers: headers, data: rate_limit_request.to_json)
122
+ BucketInstance.new(
123
+ @version,
124
+ payload,
125
+ field: @solution[:field],
126
+ bucket: @solution[:bucket],
127
+ )
128
+ end
129
+
130
+
131
+ ##
132
+ # Provide a user friendly representation
133
+ def to_s
134
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
135
+ "#<Twilio.Lookups.V2.BucketContext #{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.Lookups.V2.BucketContext #{context}>"
143
+ end
144
+ end
145
+
146
+ class BucketPage < Page
147
+ ##
148
+ # Initialize the BucketPage
149
+ # @param [Version] version Version that contains the resource
150
+ # @param [Response] response Response from the API
151
+ # @param [Hash] solution Path solution for the resource
152
+ # @return [BucketPage] BucketPage
153
+ def initialize(version, response, solution)
154
+ super(version, response)
155
+
156
+ # Path Solution
157
+ @solution = solution
158
+ end
159
+
160
+ ##
161
+ # Build an instance of BucketInstance
162
+ # @param [Hash] payload Payload response from the API
163
+ # @return [BucketInstance] BucketInstance
164
+ def get_instance(payload)
165
+ BucketInstance.new(@version, payload)
166
+ end
167
+
168
+ ##
169
+ # Provide a user friendly representation
170
+ def to_s
171
+ '<Twilio.Lookups.V2.BucketPage>'
172
+ end
173
+ end
174
+ class BucketInstance < InstanceResource
175
+ ##
176
+ # Initialize the BucketInstance
177
+ # @param [Version] version Version that contains the resource
178
+ # @param [Hash] payload payload that contains response from Twilio
179
+ # @param [String] account_sid The SID of the
180
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Bucket
181
+ # resource.
182
+ # @param [String] sid The SID of the Call resource to fetch.
183
+ # @return [BucketInstance] BucketInstance
184
+ def initialize(version, payload , field: nil, bucket: nil)
185
+ super(version)
186
+
187
+ # Marshaled Properties
188
+ @properties = {
189
+ 'code' => payload['code'],
190
+ 'message' => payload['message'],
191
+ 'more_info' => payload['more_info'],
192
+ 'status' => payload['status'],
193
+ 'field' => payload['field'],
194
+ 'limit' => payload['limit'],
195
+ 'bucket' => payload['bucket'],
196
+ 'owner' => payload['owner'],
197
+ 'ttl' => payload['ttl'],
198
+ }
199
+
200
+ # Context
201
+ @instance_context = nil
202
+ @params = { 'field' => field || @properties['field'] ,'bucket' => bucket || @properties['bucket'] , }
203
+ end
204
+
205
+ ##
206
+ # Generate an instance context for the instance, the context is capable of
207
+ # performing various actions. All instance actions are proxied to the context
208
+ # @return [BucketContext] CallContext for this CallInstance
209
+ def context
210
+ unless @instance_context
211
+ @instance_context = BucketContext.new(@version , @params['field'], @params['bucket'])
212
+ end
213
+ @instance_context
214
+ end
215
+
216
+ ##
217
+ # @return [String] Twilio-specific error code
218
+ def code
219
+ @properties['code']
220
+ end
221
+
222
+ ##
223
+ # @return [String] Error message
224
+ def message
225
+ @properties['message']
226
+ end
227
+
228
+ ##
229
+ # @return [String] Link to Error Code References
230
+ def more_info
231
+ @properties['more_info']
232
+ end
233
+
234
+ ##
235
+ # @return [String] HTTP response status code
236
+ def status
237
+ @properties['status']
238
+ end
239
+
240
+ ##
241
+ # @return [String] Limit of requests for the bucket
242
+ def field
243
+ @properties['field']
244
+ end
245
+
246
+ ##
247
+ # @return [String] Limit of requests for the bucket
248
+ def limit
249
+ @properties['limit']
250
+ end
251
+
252
+ ##
253
+ # @return [String] Name of the bucket
254
+ def bucket
255
+ @properties['bucket']
256
+ end
257
+
258
+ ##
259
+ # @return [String] Owner of the rule
260
+ def owner
261
+ @properties['owner']
262
+ end
263
+
264
+ ##
265
+ # @return [String] Time to live of the rule
266
+ def ttl
267
+ @properties['ttl']
268
+ end
269
+
270
+ ##
271
+ # Delete the BucketInstance
272
+ # @return [Boolean] True if delete succeeds, false otherwise
273
+ def delete
274
+
275
+ context.delete
276
+ end
277
+
278
+ ##
279
+ # Fetch the BucketInstance
280
+ # @return [BucketInstance] Fetched BucketInstance
281
+ def fetch
282
+
283
+ context.fetch
284
+ end
285
+
286
+ ##
287
+ # Update the BucketInstance
288
+ # @param [RateLimitRequest] rate_limit_request
289
+ # @return [BucketInstance] Updated BucketInstance
290
+ def update(rate_limit_request: :unset
291
+ )
292
+
293
+ context.update(
294
+ )
295
+ end
296
+
297
+ ##
298
+ # Provide a user friendly representation
299
+ def to_s
300
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
301
+ "<Twilio.Lookups.V2.BucketInstance #{values}>"
302
+ end
303
+
304
+ ##
305
+ # Provide a detailed, user friendly representation
306
+ def inspect
307
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
308
+ "<Twilio.Lookups.V2.BucketInstance #{values}>"
309
+ end
310
+ end
311
+
312
+ end
313
+ end
314
+ end
315
+ end