twilio-ruby 7.3.2 → 7.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +13 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/iam/v1/{new_api_key.rb → key.rb} +20 -20
- data/lib/twilio-ruby/rest/iam/v1.rb +4 -4
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +8 -2
- data/lib/twilio-ruby/rest/preview_base.rb +0 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +3 -0
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +4 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +3 -9
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -424
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -408
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -463
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -421
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -511
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +0 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f2e73c51c288976c1c887e2f7b531eac33660aa
|
4
|
+
data.tar.gz: 7cd72222c429642bdbc322d64074b1d949dae3e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c01620723f63074f14f586946d602a29e82b49a348753fae96686d8c573ca968a7c738f04e6d69ecccfd5943d9e27befeadfbe336331e15cc4cb10ccac5fac0a
|
7
|
+
data.tar.gz: 21442f7a242ef06a5b5f0dfe6ccc4d7da1599973707b4dbb0945814e42220264ec1de69c8354318c230dce73e8e71f3562f1754ea18d25dc37e5c55eedbf1212
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,19 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2024-10-03] Version 7.3.3
|
5
|
+
--------------------------
|
6
|
+
**Messaging**
|
7
|
+
- Add A2P external campaign CnpMigration flag
|
8
|
+
|
9
|
+
**Numbers**
|
10
|
+
- Add address sid to portability API
|
11
|
+
|
12
|
+
**Verify**
|
13
|
+
- Add `SnaClientToken` optional parameter on Verification check.
|
14
|
+
- Add `EnableSnaClientToken` optional parameter for Verification creation.
|
15
|
+
|
16
|
+
|
4
17
|
[2024-09-25] Version 7.3.2
|
5
18
|
--------------------------
|
6
19
|
**Accounts**
|
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.3.
|
42
|
+
gem 'twilio-ruby', '~> 7.3.3'
|
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.3.
|
48
|
+
gem install twilio-ruby -v 7.3.3
|
49
49
|
```
|
50
50
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
@@ -17,12 +17,12 @@ module Twilio
|
|
17
17
|
module REST
|
18
18
|
class Iam < IamBase
|
19
19
|
class V1 < Version
|
20
|
-
class
|
20
|
+
class KeyList < ListResource
|
21
21
|
|
22
22
|
##
|
23
|
-
# Initialize the
|
23
|
+
# Initialize the KeyList
|
24
24
|
# @param [Version] version Version that contains the resource
|
25
|
-
# @return [
|
25
|
+
# @return [KeyList] KeyList
|
26
26
|
def initialize(version)
|
27
27
|
super(version)
|
28
28
|
# Path Solution
|
@@ -31,12 +31,12 @@ module Twilio
|
|
31
31
|
|
32
32
|
end
|
33
33
|
##
|
34
|
-
# Create the
|
34
|
+
# Create the KeyInstance
|
35
35
|
# @param [String] account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
|
36
36
|
# @param [String] friendly_name A descriptive string that you create to describe the resource. It can be up to 64 characters long.
|
37
37
|
# @param [Keytype] key_type
|
38
38
|
# @param [Object] policy The \\\\`Policy\\\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys).
|
39
|
-
# @return [
|
39
|
+
# @return [KeyInstance] Created KeyInstance
|
40
40
|
def create(
|
41
41
|
account_sid: nil,
|
42
42
|
friendly_name: :unset,
|
@@ -54,7 +54,7 @@ module Twilio
|
|
54
54
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
55
55
|
|
56
56
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
57
|
-
|
57
|
+
KeyInstance.new(
|
58
58
|
@version,
|
59
59
|
payload,
|
60
60
|
)
|
@@ -65,17 +65,17 @@ module Twilio
|
|
65
65
|
|
66
66
|
# Provide a user friendly representation
|
67
67
|
def to_s
|
68
|
-
'#<Twilio.Iam.V1.
|
68
|
+
'#<Twilio.Iam.V1.KeyList>'
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
|
-
class
|
72
|
+
class KeyPage < Page
|
73
73
|
##
|
74
|
-
# Initialize the
|
74
|
+
# Initialize the KeyPage
|
75
75
|
# @param [Version] version Version that contains the resource
|
76
76
|
# @param [Response] response Response from the API
|
77
77
|
# @param [Hash] solution Path solution for the resource
|
78
|
-
# @return [
|
78
|
+
# @return [KeyPage] KeyPage
|
79
79
|
def initialize(version, response, solution)
|
80
80
|
super(version, response)
|
81
81
|
|
@@ -84,29 +84,29 @@ module Twilio
|
|
84
84
|
end
|
85
85
|
|
86
86
|
##
|
87
|
-
# Build an instance of
|
87
|
+
# Build an instance of KeyInstance
|
88
88
|
# @param [Hash] payload Payload response from the API
|
89
|
-
# @return [
|
89
|
+
# @return [KeyInstance] KeyInstance
|
90
90
|
def get_instance(payload)
|
91
|
-
|
91
|
+
KeyInstance.new(@version, payload)
|
92
92
|
end
|
93
93
|
|
94
94
|
##
|
95
95
|
# Provide a user friendly representation
|
96
96
|
def to_s
|
97
|
-
'<Twilio.Iam.V1.
|
97
|
+
'<Twilio.Iam.V1.KeyPage>'
|
98
98
|
end
|
99
99
|
end
|
100
|
-
class
|
100
|
+
class KeyInstance < InstanceResource
|
101
101
|
##
|
102
|
-
# Initialize the
|
102
|
+
# Initialize the KeyInstance
|
103
103
|
# @param [Version] version Version that contains the resource
|
104
104
|
# @param [Hash] payload payload that contains response from Twilio
|
105
105
|
# @param [String] account_sid The SID of the
|
106
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this
|
106
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Key
|
107
107
|
# resource.
|
108
108
|
# @param [String] sid The SID of the Call resource to fetch.
|
109
|
-
# @return [
|
109
|
+
# @return [KeyInstance] KeyInstance
|
110
110
|
def initialize(version, payload )
|
111
111
|
super(version)
|
112
112
|
|
@@ -161,13 +161,13 @@ module Twilio
|
|
161
161
|
##
|
162
162
|
# Provide a user friendly representation
|
163
163
|
def to_s
|
164
|
-
"<Twilio.Iam.V1.
|
164
|
+
"<Twilio.Iam.V1.KeyInstance>"
|
165
165
|
end
|
166
166
|
|
167
167
|
##
|
168
168
|
# Provide a detailed, user friendly representation
|
169
169
|
def inspect
|
170
|
-
"<Twilio.Iam.V1.
|
170
|
+
"<Twilio.Iam.V1.KeyInstance>"
|
171
171
|
end
|
172
172
|
end
|
173
173
|
|
@@ -23,7 +23,7 @@ module Twilio
|
|
23
23
|
@version = 'v1'
|
24
24
|
@api_key = nil
|
25
25
|
@get_api_keys = nil
|
26
|
-
@
|
26
|
+
@keys = nil
|
27
27
|
end
|
28
28
|
|
29
29
|
##
|
@@ -46,9 +46,9 @@ module Twilio
|
|
46
46
|
@get_api_keys ||= GetApiKeysList.new self
|
47
47
|
end
|
48
48
|
##
|
49
|
-
# @return [Twilio::REST::Iam::V1::
|
50
|
-
def
|
51
|
-
@
|
49
|
+
# @return [Twilio::REST::Iam::V1::KeyList]
|
50
|
+
def keys
|
51
|
+
@keys ||= KeyList.new self
|
52
52
|
end
|
53
53
|
##
|
54
54
|
# Provide a user friendly representation
|
@@ -58,13 +58,16 @@ module Twilio
|
|
58
58
|
##
|
59
59
|
# Fetch the PortingPortabilityInstance
|
60
60
|
# @param [String] target_account_sid Account Sid to which the number will be ported. This can be used to determine if a sub account already has the number in its inventory or a different sub account. If this is not provided, the authenticated account will be assumed to be the target account.
|
61
|
+
# @param [String] address_sid Address Sid of customer to which the number will be ported.
|
61
62
|
# @return [PortingPortabilityInstance] Fetched PortingPortabilityInstance
|
62
63
|
def fetch(
|
63
|
-
target_account_sid: :unset
|
64
|
+
target_account_sid: :unset,
|
65
|
+
address_sid: :unset
|
64
66
|
)
|
65
67
|
|
66
68
|
params = Twilio::Values.of({
|
67
69
|
'TargetAccountSid' => target_account_sid,
|
70
|
+
'AddressSid' => address_sid,
|
68
71
|
})
|
69
72
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
70
73
|
|
@@ -219,13 +222,16 @@ module Twilio
|
|
219
222
|
##
|
220
223
|
# Fetch the PortingPortabilityInstance
|
221
224
|
# @param [String] target_account_sid Account Sid to which the number will be ported. This can be used to determine if a sub account already has the number in its inventory or a different sub account. If this is not provided, the authenticated account will be assumed to be the target account.
|
225
|
+
# @param [String] address_sid Address Sid of customer to which the number will be ported.
|
222
226
|
# @return [PortingPortabilityInstance] Fetched PortingPortabilityInstance
|
223
227
|
def fetch(
|
224
|
-
target_account_sid: :unset
|
228
|
+
target_account_sid: :unset,
|
229
|
+
address_sid: :unset
|
225
230
|
)
|
226
231
|
|
227
232
|
context.fetch(
|
228
233
|
target_account_sid: target_account_sid,
|
234
|
+
address_sid: address_sid,
|
229
235
|
)
|
230
236
|
end
|
231
237
|
|
@@ -21,17 +21,12 @@ module Twilio
|
|
21
21
|
@base_url = "https://preview.twilio.com"
|
22
22
|
@host = "preview.twilio.com"
|
23
23
|
@port = 443
|
24
|
-
@deployed_devices = nil
|
25
24
|
@hosted_numbers = nil
|
26
25
|
@sync = nil
|
27
26
|
@marketplace = nil
|
28
27
|
@wireless = nil
|
29
28
|
end
|
30
29
|
|
31
|
-
def deployed_devices
|
32
|
-
@deployed_devices ||= Preview::DeployedDevices.new self
|
33
|
-
end
|
34
|
-
|
35
30
|
def hosted_numbers
|
36
31
|
@hosted_numbers ||= Preview::HostedNumbers.new self
|
37
32
|
end
|
@@ -39,7 +39,7 @@ module Twilio
|
|
39
39
|
# @param [String] task_channel When MultiTasking is enabled, specify the TaskChannel by passing either its `unique_name` or `sid`. Default value is `default`.
|
40
40
|
# @param [String] workflow_sid The SID of the Workflow that you would like to handle routing for the new Task. If there is only one Workflow defined for the Workspace that you are posting the new task to, this parameter is optional.
|
41
41
|
# @param [String] attributes A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`.
|
42
|
-
# @param [Time] virtual_start_time The virtual start time to assign the new task and override the default. When supplied, the new task will have this virtual start time. When not supplied, the new task will have the virtual start time equal to `date_created`. Value can't be in the future.
|
42
|
+
# @param [Time] virtual_start_time The virtual start time to assign the new task and override the default. When supplied, the new task will have this virtual start time. When not supplied, the new task will have the virtual start time equal to `date_created`. Value can't be in the future or before the year of 1900.
|
43
43
|
# @param [String] routing_target A SID of a Worker, Queue, or Workflow to route a Task to
|
44
44
|
# @param [String] ignore_capacity A boolean that indicates if the Task should respect a Worker's capacity and availability during assignment. This field can only be used when the `RoutingTarget` field is set to a Worker SID. By setting `IgnoreCapacity` to a value of `true`, `1`, or `yes`, the Task will be routed to the Worker without respecting their capacity and availability. Any other value will enforce the Worker's capacity and availability. The default value of `IgnoreCapacity` is `true` when the `RoutingTarget` is set to a Worker SID.
|
45
45
|
# @param [String] task_queue_sid The SID of the TaskQueue in which the Task belongs
|
@@ -286,7 +286,7 @@ module Twilio
|
|
286
286
|
# @param [String] reason The reason that the Task was canceled or completed. This parameter is required only if the Task is canceled or completed. Setting this value queues the task for deletion and logs the reason.
|
287
287
|
# @param [String] priority The Task's new priority value. When supplied, the Task takes on the specified priority unless it matches a Workflow Target with a Priority set. Value can be 0 to 2^31^ (2,147,483,647).
|
288
288
|
# @param [String] task_channel When MultiTasking is enabled, specify the TaskChannel with the task to update. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`.
|
289
|
-
# @param [Time] virtual_start_time The task's new virtual start time value. When supplied, the Task takes on the specified virtual start time. Value can't be in the future.
|
289
|
+
# @param [Time] virtual_start_time The task's new virtual start time value. When supplied, the Task takes on the specified virtual start time. Value can't be in the future or before the year of 1900.
|
290
290
|
# @param [String] if_match If provided, applies this mutation if (and only if) the [ETag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag) header of the Task matches the provided value. This matches the semantics of (and is implemented with) the HTTP [If-Match header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match).
|
291
291
|
# @return [TaskInstance] Updated TaskInstance
|
292
292
|
def update(
|
@@ -611,7 +611,7 @@ module Twilio
|
|
611
611
|
# @param [String] reason The reason that the Task was canceled or completed. This parameter is required only if the Task is canceled or completed. Setting this value queues the task for deletion and logs the reason.
|
612
612
|
# @param [String] priority The Task's new priority value. When supplied, the Task takes on the specified priority unless it matches a Workflow Target with a Priority set. Value can be 0 to 2^31^ (2,147,483,647).
|
613
613
|
# @param [String] task_channel When MultiTasking is enabled, specify the TaskChannel with the task to update. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`.
|
614
|
-
# @param [Time] virtual_start_time The task's new virtual start time value. When supplied, the Task takes on the specified virtual start time. Value can't be in the future.
|
614
|
+
# @param [Time] virtual_start_time The task's new virtual start time value. When supplied, the Task takes on the specified virtual start time. Value can't be in the future or before the year of 1900.
|
615
615
|
# @param [String] if_match If provided, applies this mutation if (and only if) the [ETag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag) header of the Task matches the provided value. This matches the semantics of (and is implemented with) the HTTP [If-Match header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match).
|
616
616
|
# @return [TaskInstance] Updated TaskInstance
|
617
617
|
def update(
|
@@ -49,6 +49,7 @@ module Twilio
|
|
49
49
|
# @param [String] template_sid The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only.
|
50
50
|
# @param [String] template_custom_substitutions A stringified JSON object in which the keys are the template's special variables and the values are the variables substitutions.
|
51
51
|
# @param [String] device_ip Strongly encouraged if using the auto channel. The IP address of the client's device. If provided, it has to be a valid IPv4 or IPv6 address.
|
52
|
+
# @param [Boolean] enable_sna_client_token An optional Boolean value to indicate the requirement of sna client token in the SNA URL invocation response for added security. This token must match in the Verification Check request to confirm phone number verification.
|
52
53
|
# @param [RiskCheck] risk_check
|
53
54
|
# @param [String] tags A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length.
|
54
55
|
# @return [VerificationInstance] Created VerificationInstance
|
@@ -68,6 +69,7 @@ module Twilio
|
|
68
69
|
template_sid: :unset,
|
69
70
|
template_custom_substitutions: :unset,
|
70
71
|
device_ip: :unset,
|
72
|
+
enable_sna_client_token: :unset,
|
71
73
|
risk_check: :unset,
|
72
74
|
tags: :unset
|
73
75
|
)
|
@@ -88,6 +90,7 @@ module Twilio
|
|
88
90
|
'TemplateSid' => template_sid,
|
89
91
|
'TemplateCustomSubstitutions' => template_custom_substitutions,
|
90
92
|
'DeviceIp' => device_ip,
|
93
|
+
'EnableSnaClientToken' => enable_sna_client_token,
|
91
94
|
'RiskCheck' => risk_check,
|
92
95
|
'Tags' => tags,
|
93
96
|
})
|
@@ -39,13 +39,15 @@ module Twilio
|
|
39
39
|
# @param [String] verification_sid A SID that uniquely identifies the Verification Check. Either this parameter or the `to` phone number/[email](https://www.twilio.com/docs/verify/email) must be specified.
|
40
40
|
# @param [String] amount The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled.
|
41
41
|
# @param [String] payee The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled.
|
42
|
+
# @param [String] sna_client_token A sna client token received in sna url invocation response needs to be passed in Verification Check request and should match to get successful response.
|
42
43
|
# @return [VerificationCheckInstance] Created VerificationCheckInstance
|
43
44
|
def create(
|
44
45
|
code: :unset,
|
45
46
|
to: :unset,
|
46
47
|
verification_sid: :unset,
|
47
48
|
amount: :unset,
|
48
|
-
payee: :unset
|
49
|
+
payee: :unset,
|
50
|
+
sna_client_token: :unset
|
49
51
|
)
|
50
52
|
|
51
53
|
data = Twilio::Values.of({
|
@@ -54,6 +56,7 @@ module Twilio
|
|
54
56
|
'VerificationSid' => verification_sid,
|
55
57
|
'Amount' => amount,
|
56
58
|
'Payee' => payee,
|
59
|
+
'SnaClientToken' => sna_client_token,
|
57
60
|
})
|
58
61
|
|
59
62
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
data/lib/twilio-ruby/version.rb
CHANGED
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.3.
|
4
|
+
version: 7.3.3
|
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-
|
11
|
+
date: 2024-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -481,7 +481,7 @@ files:
|
|
481
481
|
- lib/twilio-ruby/rest/iam/v1.rb
|
482
482
|
- lib/twilio-ruby/rest/iam/v1/api_key.rb
|
483
483
|
- lib/twilio-ruby/rest/iam/v1/get_api_keys.rb
|
484
|
-
- lib/twilio-ruby/rest/iam/v1/
|
484
|
+
- lib/twilio-ruby/rest/iam/v1/key.rb
|
485
485
|
- lib/twilio-ruby/rest/iam_base.rb
|
486
486
|
- lib/twilio-ruby/rest/insights.rb
|
487
487
|
- lib/twilio-ruby/rest/insights/v1.rb
|
@@ -631,12 +631,6 @@ files:
|
|
631
631
|
- lib/twilio-ruby/rest/oauth/v1/token.rb
|
632
632
|
- lib/twilio-ruby/rest/oauth_base.rb
|
633
633
|
- lib/twilio-ruby/rest/preview.rb
|
634
|
-
- lib/twilio-ruby/rest/preview/deployed_devices.rb
|
635
|
-
- lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb
|
636
|
-
- lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb
|
637
|
-
- lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb
|
638
|
-
- lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb
|
639
|
-
- lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb
|
640
634
|
- lib/twilio-ruby/rest/preview/hosted_numbers.rb
|
641
635
|
- lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb
|
642
636
|
- lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
|