twilio-ruby 7.3.1 → 7.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +24 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +133 -0
  5. data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +133 -0
  6. data/lib/twilio-ruby/rest/accounts/v1.rb +12 -0
  7. data/lib/twilio-ruby/rest/{preview/deployed_devices/fleet/key.rb → assistants/v1/assistant/assistants_knowledge.rb} +104 -170
  8. data/lib/twilio-ruby/rest/{preview/deployed_devices/fleet/deployment.rb → assistants/v1/assistant/assistants_tool.rb} +111 -157
  9. data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +1 -1
  10. data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +201 -0
  11. data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +57 -15
  12. data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +209 -0
  13. data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +21 -23
  14. data/lib/twilio-ruby/rest/assistants/v1/tool.rb +37 -0
  15. data/lib/twilio-ruby/rest/iam/v1/{new_api_key.rb → key.rb} +20 -20
  16. data/lib/twilio-ruby/rest/iam/v1.rb +4 -4
  17. data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +8 -2
  18. data/lib/twilio-ruby/rest/numbers/v1/{porting_webhook_configuration_fetch.rb → webhook.rb} +20 -20
  19. data/lib/twilio-ruby/rest/numbers/v1.rb +6 -6
  20. data/lib/twilio-ruby/rest/preview_base.rb +0 -5
  21. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +4 -1
  22. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +3 -3
  23. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +3 -0
  24. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +4 -1
  25. data/lib/twilio-ruby/version.rb +1 -1
  26. metadata +10 -10
  27. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -424
  28. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -463
  29. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -511
  30. data/lib/twilio-ruby/rest/preview/deployed_devices.rb +0 -49
@@ -345,6 +345,21 @@ module Twilio
345
345
  @version.delete('DELETE', @uri, headers: headers)
346
346
  end
347
347
 
348
+ ##
349
+ # Fetch the ToolInstance
350
+ # @return [ToolInstance] Fetched ToolInstance
351
+ def fetch
352
+
353
+ headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
354
+
355
+ payload = @version.fetch('GET', @uri, headers: headers)
356
+ ToolInstance.new(
357
+ @version,
358
+ payload,
359
+ id: @solution[:id],
360
+ )
361
+ end
362
+
348
363
  ##
349
364
  # Update the ToolInstance
350
365
  # @param [AssistantsV1ServiceUpdateToolRequest] assistants_v1_service_update_tool_request
@@ -429,8 +444,10 @@ module Twilio
429
444
  'name' => payload['name'],
430
445
  'requires_auth' => payload['requires_auth'],
431
446
  'type' => payload['type'],
447
+ 'url' => payload['url'],
432
448
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
433
449
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
450
+ 'policies' => payload['policies'],
434
451
  }
435
452
 
436
453
  # Context
@@ -497,6 +514,12 @@ module Twilio
497
514
  @properties['type']
498
515
  end
499
516
 
517
+ ##
518
+ # @return [String] The url of the tool resource.
519
+ def url
520
+ @properties['url']
521
+ end
522
+
500
523
  ##
501
524
  # @return [Time] The date and time in GMT when the Tool was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
502
525
  def date_created
@@ -509,6 +532,12 @@ module Twilio
509
532
  @properties['date_updated']
510
533
  end
511
534
 
535
+ ##
536
+ # @return [Array<AssistantsV1ServicePolicy>] The Policies associated with the tool.
537
+ def policies
538
+ @properties['policies']
539
+ end
540
+
512
541
  ##
513
542
  # Delete the ToolInstance
514
543
  # @return [Boolean] True if delete succeeds, false otherwise
@@ -517,6 +546,14 @@ module Twilio
517
546
  context.delete
518
547
  end
519
548
 
549
+ ##
550
+ # Fetch the ToolInstance
551
+ # @return [ToolInstance] Fetched ToolInstance
552
+ def fetch
553
+
554
+ context.fetch
555
+ end
556
+
520
557
  ##
521
558
  # Update the ToolInstance
522
559
  # @param [AssistantsV1ServiceUpdateToolRequest] assistants_v1_service_update_tool_request
@@ -17,12 +17,12 @@ module Twilio
17
17
  module REST
18
18
  class Iam < IamBase
19
19
  class V1 < Version
20
- class NewApiKeyList < ListResource
20
+ class KeyList < ListResource
21
21
 
22
22
  ##
23
- # Initialize the NewApiKeyList
23
+ # Initialize the KeyList
24
24
  # @param [Version] version Version that contains the resource
25
- # @return [NewApiKeyList] NewApiKeyList
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 NewApiKeyInstance
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 [NewApiKeyInstance] Created NewApiKeyInstance
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
- NewApiKeyInstance.new(
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.NewApiKeyList>'
68
+ '#<Twilio.Iam.V1.KeyList>'
69
69
  end
70
70
  end
71
71
 
72
- class NewApiKeyPage < Page
72
+ class KeyPage < Page
73
73
  ##
74
- # Initialize the NewApiKeyPage
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 [NewApiKeyPage] NewApiKeyPage
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 NewApiKeyInstance
87
+ # Build an instance of KeyInstance
88
88
  # @param [Hash] payload Payload response from the API
89
- # @return [NewApiKeyInstance] NewApiKeyInstance
89
+ # @return [KeyInstance] KeyInstance
90
90
  def get_instance(payload)
91
- NewApiKeyInstance.new(@version, payload)
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.NewApiKeyPage>'
97
+ '<Twilio.Iam.V1.KeyPage>'
98
98
  end
99
99
  end
100
- class NewApiKeyInstance < InstanceResource
100
+ class KeyInstance < InstanceResource
101
101
  ##
102
- # Initialize the NewApiKeyInstance
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 NewApiKey
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 [NewApiKeyInstance] NewApiKeyInstance
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.NewApiKeyInstance>"
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.NewApiKeyInstance>"
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
- @new_api_key = nil
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::NewApiKeyList]
50
- def new_api_key
51
- @new_api_key ||= NewApiKeyList.new self
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
 
@@ -17,12 +17,12 @@ module Twilio
17
17
  module REST
18
18
  class Numbers < NumbersBase
19
19
  class V1 < Version
20
- class PortingWebhookConfigurationFetchList < ListResource
20
+ class WebhookList < ListResource
21
21
 
22
22
  ##
23
- # Initialize the PortingWebhookConfigurationFetchList
23
+ # Initialize the WebhookList
24
24
  # @param [Version] version Version that contains the resource
25
- # @return [PortingWebhookConfigurationFetchList] PortingWebhookConfigurationFetchList
25
+ # @return [WebhookList] WebhookList
26
26
  def initialize(version)
27
27
  super(version)
28
28
  # Path Solution
@@ -31,14 +31,14 @@ module Twilio
31
31
 
32
32
  end
33
33
  ##
34
- # Fetch the PortingWebhookConfigurationFetchInstance
35
- # @return [PortingWebhookConfigurationFetchInstance] Fetched PortingWebhookConfigurationFetchInstance
34
+ # Fetch the WebhookInstance
35
+ # @return [WebhookInstance] Fetched WebhookInstance
36
36
  def fetch
37
37
 
38
38
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
39
39
 
40
40
  payload = @version.fetch('GET', @uri, headers: headers)
41
- PortingWebhookConfigurationFetchInstance.new(
41
+ WebhookInstance.new(
42
42
  @version,
43
43
  payload,
44
44
  )
@@ -49,17 +49,17 @@ module Twilio
49
49
 
50
50
  # Provide a user friendly representation
51
51
  def to_s
52
- '#<Twilio.Numbers.V1.PortingWebhookConfigurationFetchList>'
52
+ '#<Twilio.Numbers.V1.WebhookList>'
53
53
  end
54
54
  end
55
55
 
56
- class PortingWebhookConfigurationFetchPage < Page
56
+ class WebhookPage < Page
57
57
  ##
58
- # Initialize the PortingWebhookConfigurationFetchPage
58
+ # Initialize the WebhookPage
59
59
  # @param [Version] version Version that contains the resource
60
60
  # @param [Response] response Response from the API
61
61
  # @param [Hash] solution Path solution for the resource
62
- # @return [PortingWebhookConfigurationFetchPage] PortingWebhookConfigurationFetchPage
62
+ # @return [WebhookPage] WebhookPage
63
63
  def initialize(version, response, solution)
64
64
  super(version, response)
65
65
 
@@ -68,29 +68,29 @@ module Twilio
68
68
  end
69
69
 
70
70
  ##
71
- # Build an instance of PortingWebhookConfigurationFetchInstance
71
+ # Build an instance of WebhookInstance
72
72
  # @param [Hash] payload Payload response from the API
73
- # @return [PortingWebhookConfigurationFetchInstance] PortingWebhookConfigurationFetchInstance
73
+ # @return [WebhookInstance] WebhookInstance
74
74
  def get_instance(payload)
75
- PortingWebhookConfigurationFetchInstance.new(@version, payload)
75
+ WebhookInstance.new(@version, payload)
76
76
  end
77
77
 
78
78
  ##
79
79
  # Provide a user friendly representation
80
80
  def to_s
81
- '<Twilio.Numbers.V1.PortingWebhookConfigurationFetchPage>'
81
+ '<Twilio.Numbers.V1.WebhookPage>'
82
82
  end
83
83
  end
84
- class PortingWebhookConfigurationFetchInstance < InstanceResource
84
+ class WebhookInstance < InstanceResource
85
85
  ##
86
- # Initialize the PortingWebhookConfigurationFetchInstance
86
+ # Initialize the WebhookInstance
87
87
  # @param [Version] version Version that contains the resource
88
88
  # @param [Hash] payload payload that contains response from Twilio
89
89
  # @param [String] account_sid The SID of the
90
- # {Account}[https://www.twilio.com/docs/iam/api/account] that created this PortingWebhookConfigurationFetch
90
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Webhook
91
91
  # resource.
92
92
  # @param [String] sid The SID of the Call resource to fetch.
93
- # @return [PortingWebhookConfigurationFetchInstance] PortingWebhookConfigurationFetchInstance
93
+ # @return [WebhookInstance] WebhookInstance
94
94
  def initialize(version, payload )
95
95
  super(version)
96
96
 
@@ -145,13 +145,13 @@ module Twilio
145
145
  ##
146
146
  # Provide a user friendly representation
147
147
  def to_s
148
- "<Twilio.Numbers.V1.PortingWebhookConfigurationFetchInstance>"
148
+ "<Twilio.Numbers.V1.WebhookInstance>"
149
149
  end
150
150
 
151
151
  ##
152
152
  # Provide a detailed, user friendly representation
153
153
  def inspect
154
- "<Twilio.Numbers.V1.PortingWebhookConfigurationFetchInstance>"
154
+ "<Twilio.Numbers.V1.WebhookInstance>"
155
155
  end
156
156
  end
157
157
 
@@ -28,8 +28,8 @@ module Twilio
28
28
  @porting_portabilities = nil
29
29
  @porting_webhook_configurations = nil
30
30
  @porting_webhook_configurations_delete = nil
31
- @porting_webhook_configuration_fetch = nil
32
31
  @signing_request_configurations = nil
32
+ @webhook = nil
33
33
  end
34
34
 
35
35
  ##
@@ -135,16 +135,16 @@ module Twilio
135
135
  end
136
136
  end
137
137
  ##
138
- # @return [Twilio::REST::Numbers::V1::PortingWebhookConfigurationFetchList]
139
- def porting_webhook_configuration_fetch
140
- @porting_webhook_configuration_fetch ||= PortingWebhookConfigurationFetchList.new self
141
- end
142
- ##
143
138
  # @return [Twilio::REST::Numbers::V1::SigningRequestConfigurationList]
144
139
  def signing_request_configurations
145
140
  @signing_request_configurations ||= SigningRequestConfigurationList.new self
146
141
  end
147
142
  ##
143
+ # @return [Twilio::REST::Numbers::V1::WebhookList]
144
+ def webhook
145
+ @webhook ||= WebhookList.new self
146
+ end
147
+ ##
148
148
  # Provide a user friendly representation
149
149
  def to_s
150
150
  '<Twilio::REST::Numbers::V1>';
@@ -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
@@ -36,13 +36,16 @@ module Twilio
36
36
  ##
37
37
  # Create the DeploymentInstance
38
38
  # @param [String] build_sid The SID of the Build for the Deployment.
39
+ # @param [Boolean] is_plugin Whether the Deployment is a plugin.
39
40
  # @return [DeploymentInstance] Created DeploymentInstance
40
41
  def create(
41
- build_sid: :unset
42
+ build_sid: :unset,
43
+ is_plugin: :unset
42
44
  )
43
45
 
44
46
  data = Twilio::Values.of({
45
47
  'BuildSid' => build_sid,
48
+ 'IsPlugin' => is_plugin,
46
49
  })
47
50
 
48
51
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -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', })
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '7.3.1'
2
+ VERSION = '7.3.3'
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.3.1
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-09-18 00:00:00.000000000 Z
11
+ date: 2024-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -246,6 +246,8 @@ files:
246
246
  - lib/twilio-ruby/rest/accounts.rb
247
247
  - lib/twilio-ruby/rest/accounts/v1.rb
248
248
  - lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb
249
+ - lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb
250
+ - lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb
249
251
  - lib/twilio-ruby/rest/accounts/v1/credential.rb
250
252
  - lib/twilio-ruby/rest/accounts/v1/credential/aws.rb
251
253
  - lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb
@@ -337,9 +339,13 @@ files:
337
339
  - lib/twilio-ruby/rest/assistants.rb
338
340
  - lib/twilio-ruby/rest/assistants/v1.rb
339
341
  - lib/twilio-ruby/rest/assistants/v1/assistant.rb
342
+ - lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb
343
+ - lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb
340
344
  - lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb
345
+ - lib/twilio-ruby/rest/assistants/v1/assistant/message.rb
341
346
  - lib/twilio-ruby/rest/assistants/v1/knowledge.rb
342
347
  - lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb
348
+ - lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb
343
349
  - lib/twilio-ruby/rest/assistants/v1/policy.rb
344
350
  - lib/twilio-ruby/rest/assistants/v1/session.rb
345
351
  - lib/twilio-ruby/rest/assistants/v1/session/message.rb
@@ -475,7 +481,7 @@ files:
475
481
  - lib/twilio-ruby/rest/iam/v1.rb
476
482
  - lib/twilio-ruby/rest/iam/v1/api_key.rb
477
483
  - lib/twilio-ruby/rest/iam/v1/get_api_keys.rb
478
- - lib/twilio-ruby/rest/iam/v1/new_api_key.rb
484
+ - lib/twilio-ruby/rest/iam/v1/key.rb
479
485
  - lib/twilio-ruby/rest/iam_base.rb
480
486
  - lib/twilio-ruby/rest/insights.rb
481
487
  - lib/twilio-ruby/rest/insights/v1.rb
@@ -599,8 +605,8 @@ files:
599
605
  - lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
600
606
  - lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb
601
607
  - lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb
602
- - lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb
603
608
  - lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb
609
+ - lib/twilio-ruby/rest/numbers/v1/webhook.rb
604
610
  - lib/twilio-ruby/rest/numbers/v2.rb
605
611
  - lib/twilio-ruby/rest/numbers/v2/authorization_document.rb
606
612
  - lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb
@@ -625,12 +631,6 @@ files:
625
631
  - lib/twilio-ruby/rest/oauth/v1/token.rb
626
632
  - lib/twilio-ruby/rest/oauth_base.rb
627
633
  - lib/twilio-ruby/rest/preview.rb
628
- - lib/twilio-ruby/rest/preview/deployed_devices.rb
629
- - lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb
630
- - lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb
631
- - lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb
632
- - lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb
633
- - lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb
634
634
  - lib/twilio-ruby/rest/preview/hosted_numbers.rb
635
635
  - lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb
636
636
  - lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb