twilio-ruby 7.6.3 → 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.
- checksums.yaml +4 -4
- data/CHANGES.md +28 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +1 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +1 -1
- data/lib/twilio-ruby/rest/client.rb +0 -10
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +315 -0
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +390 -0
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +456 -0
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +136 -0
- data/lib/twilio-ruby/rest/lookups/v2.rb +86 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +4 -4
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +133 -1
- data/lib/twilio-ruby/rest/numbers/v1/{porting_webhook_configuration_fetch.rb → webhook.rb} +20 -20
- data/lib/twilio-ruby/rest/numbers/v1.rb +6 -6
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +0 -27
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +7 -0
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +2 -2
- data/lib/twilio-ruby/rest/{proxy/v1/service/short_code.rb → video/v1/room/transcriptions.rb} +110 -123
- data/lib/twilio-ruby/rest/video/v1/room.rb +27 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +24 -0
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +8 -20
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +0 -232
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -213
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +0 -623
- data/lib/twilio-ruby/rest/knowledge/v1.rb +0 -49
- data/lib/twilio-ruby/rest/knowledge.rb +0 -6
- data/lib/twilio-ruby/rest/knowledge_base.rb +0 -38
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -382
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -375
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -213
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -361
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -398
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -391
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -441
- data/lib/twilio-ruby/rest/microvisor/v1.rb +0 -94
- data/lib/twilio-ruby/rest/microvisor.rb +0 -24
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3aabe2d10f18948707c56a5b645b942a0b57506
|
4
|
+
data.tar.gz: 615afb1db51c0deca5f519632f852b2431f0e692
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6561467ff44a322cdf93f0bec0a355aba581f8c1d2dd400ab2188d2e2efae5b84695d25e0fee7b039b4bf1a798b46a3acdf36a5bc41f3324c35403ff6d63480f
|
7
|
+
data.tar.gz: 1d85accc8aaa2a76d5cbeac39d6c11feaffa499409460b49b1c02a02f762d3f2dc21f8194149395b24ea34a1b119e3ab17b1d03abbff809ccee368564a6c4da9
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,34 @@
|
|
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
|
+
|
4
32
|
[2025-06-12] Version 7.6.3
|
5
33
|
--------------------------
|
6
34
|
**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.
|
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.
|
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:
|
@@ -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
|