twilio-ruby 6.11.0 → 6.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 399c36884cdc02f71ee21db5b9eb072fe4df97fb
4
- data.tar.gz: 5b43bc808532dad8d2a751bbe1299640ed4fb646
3
+ metadata.gz: 48762986794b273b7af2af37ea08f77c99c93049
4
+ data.tar.gz: 530db27d0d445c24427e75f5a311c2df08d06450
5
5
  SHA512:
6
- metadata.gz: cc67a778926052ae03460a5dfa2bc259fbdcea4e8960579690ce74951bce2f0564ba24adfc8dd574cd2b9de9dae089370860fad5c9cad9fe68be67559877f029
7
- data.tar.gz: 565a642a0418ff1664e9e656e39d98cdae16e31e498d9a2043fbe57d26a9b1a4787010acb26bdcdb6ebf1a858a34298c6bbb32db5300131a8891bceea74aea7a
6
+ metadata.gz: 755b266ac2babc4897404c111b3543c3e2a5ba1bba2bb8b23075c57a0ac516be358d934abf2a6b87e484c65559c3ccce767add26eb45feace176869d2ec1b8e5
7
+ data.tar.gz: 39b18ed0075bc5417d16cf2595d2e5e0e62caf2c520d1c72ce5d09231f767396134adbb6e320dbf288da2a92f72b0a67f7997fdf6b57b0b0d475473306aff8ff
@@ -45,15 +45,15 @@ jobs:
45
45
  - name: Run Unit Tests
46
46
  run: make test
47
47
 
48
- # - name: Run Cluster Test
49
- # if: (!github.event.pull_request.head.repo.fork)
50
- # env:
51
- # TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
52
- # TWILIO_API_KEY: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY}}
53
- # TWILIO_API_SECRET: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY_SECRET }}
54
- # TWILIO_FROM_NUMBER: ${{ secrets.TWILIO_FROM_NUMBER }}
55
- # TWILIO_TO_NUMBER: ${{ secrets.TWILIO_TO_NUMBER }}
56
- # run: make cluster-test
48
+ - name: Run Cluster Test
49
+ if: (!github.event.pull_request.head.repo.fork)
50
+ env:
51
+ TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
52
+ TWILIO_API_KEY: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY}}
53
+ TWILIO_API_SECRET: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY_SECRET }}
54
+ TWILIO_FROM_NUMBER: ${{ secrets.TWILIO_FROM_NUMBER }}
55
+ TWILIO_TO_NUMBER: ${{ secrets.TWILIO_TO_NUMBER }}
56
+ run: make cluster-test
57
57
 
58
58
  - name: Fix code coverage paths
59
59
  if: ${{ (github.event_name == 'pull_request' || github.ref_type == 'branch') && matrix.ruby == '3.0' && !github.event.pull_request.head.repo.fork }}
data/CHANGES.md CHANGED
@@ -1,6 +1,33 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2024-02-27] Version 6.12.0
5
+ ---------------------------
6
+ **Library - Chore**
7
+ - [PR #712](https://github.com/twilio/twilio-ruby/pull/712): cluster tests enabled. Thanks to [@sbansla](https://github.com/sbansla)!
8
+
9
+ **Api**
10
+ - remove feedback and feedback summary from call resource
11
+
12
+ **Flex**
13
+ - Adding `routing_properties` to Interactions Channels Participant
14
+
15
+ **Lookups**
16
+ - Add new `line_status` package to the lookup response
17
+ - Remove `live_activity` package from the lookup response **(breaking change)**
18
+
19
+ **Messaging**
20
+ - Add tollfree multiple rejection reasons response array
21
+
22
+ **Trusthub**
23
+ - Add ENUM for businessRegistrationAuthority in compliance_registration. **(breaking change)**
24
+ - Add new field in isIsvEmbed in compliance_registration.
25
+ - Add additional optional fields in compliance_registration for Individual business type.
26
+
27
+ **Twiml**
28
+ - Add support for new Amazon Polly and Google voices (Q1 2024) for `Say` verb
29
+
30
+
4
31
  [2024-02-09] Version 6.11.0
5
32
  ---------------------------
6
33
  **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', '~> 6.11.0'
42
+ gem 'twilio-ruby', '~> 6.12.0'
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 6.11.0
48
+ gem install twilio-ruby -v 6.12.0
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
@@ -30,8 +30,7 @@ module Twilio
30
30
  # Path Solution
31
31
  @solution = { account_sid: account_sid }
32
32
  @uri = "/Accounts/#{@solution[:account_sid]}/Calls.json"
33
- # Components
34
- @feedback_summaries = nil
33
+
35
34
  end
36
35
  ##
37
36
  # Create the CallInstance
@@ -302,19 +301,6 @@ module Twilio
302
301
  end
303
302
 
304
303
 
305
- ##
306
- # Access the feedback_summaries
307
- # @return [FeedbackSummaryList]
308
- # @return [FeedbackSummaryContext] if sid was passed.
309
- def feedback_summaries(sid=:unset)
310
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
311
-
312
- if sid != :unset
313
- return FeedbackSummaryContext.new(@version, @solution[:account_sid],sid )
314
- end
315
-
316
- @feedback_summaries ||= FeedbackSummaryList.new(@version, account_sid: @solution[:account_sid] )
317
- end
318
304
 
319
305
  # Provide a user friendly representation
320
306
  def to_s
@@ -345,7 +331,6 @@ module Twilio
345
331
  @payments = nil
346
332
  @recordings = nil
347
333
  @notifications = nil
348
- @feedback = nil
349
334
  @streams = nil
350
335
  end
351
336
  ##
@@ -536,17 +521,6 @@ module Twilio
536
521
  @notifications
537
522
  end
538
523
  ##
539
- # Access the feedback
540
- # @return [FeedbackList]
541
- # @return [FeedbackContext]
542
- def feedback
543
- FeedbackContext.new(
544
- @version,
545
- @solution[:account_sid],
546
- @solution[:sid]
547
- )
548
- end
549
- ##
550
524
  # Access the streams
551
525
  # @return [StreamList]
552
526
  # @return [StreamContext] if sid was passed.
@@ -926,13 +900,6 @@ module Twilio
926
900
  context.notifications
927
901
  end
928
902
 
929
- ##
930
- # Access the feedback
931
- # @return [feedback] feedback
932
- def feedback
933
- context.feedback
934
- end
935
-
936
903
  ##
937
904
  # Access the streams
938
905
  # @return [streams] streams
@@ -37,15 +37,18 @@ module Twilio
37
37
  # Create the InteractionChannelParticipantInstance
38
38
  # @param [Type] type
39
39
  # @param [Object] media_properties JSON representing the Media Properties for the new Participant.
40
+ # @param [Object] routing_properties Object representing the Routing Properties for the new Participant.
40
41
  # @return [InteractionChannelParticipantInstance] Created InteractionChannelParticipantInstance
41
42
  def create(
42
43
  type: nil,
43
- media_properties: nil
44
+ media_properties: nil,
45
+ routing_properties: :unset
44
46
  )
45
47
 
46
48
  data = Twilio::Values.of({
47
49
  'Type' => type,
48
50
  'MediaProperties' => Twilio.serialize_object(media_properties),
51
+ 'RoutingProperties' => Twilio.serialize_object(routing_properties),
49
52
  })
50
53
 
51
54
 
@@ -256,6 +259,7 @@ module Twilio
256
259
  'interaction_sid' => payload['interaction_sid'],
257
260
  'channel_sid' => payload['channel_sid'],
258
261
  'url' => payload['url'],
262
+ 'routing_properties' => payload['routing_properties'],
259
263
  }
260
264
 
261
265
  # Context
@@ -304,6 +308,12 @@ module Twilio
304
308
  @properties['url']
305
309
  end
306
310
 
311
+ ##
312
+ # @return [Hash] The Participant's routing properties.
313
+ def routing_properties
314
+ @properties['routing_properties']
315
+ end
316
+
307
317
  ##
308
318
  # Update the InteractionChannelParticipantInstance
309
319
  # @param [Status] status
@@ -26,8 +26,6 @@ module Twilio
26
26
  @configuration = nil
27
27
  @flex_flow = nil
28
28
  @insights_assessments_comment = nil
29
- @insights_conversational_ai = nil
30
- @insights_conversational_ai_report_insights = nil
31
29
  @insights_conversations = nil
32
30
  @insights_questionnaires = nil
33
31
  @insights_questionnaires_category = nil
@@ -95,34 +93,6 @@ module Twilio
95
93
  @insights_assessments_comment ||= InsightsAssessmentsCommentList.new self
96
94
  end
97
95
  ##
98
- # @param [String] instance_sid Sid of Flex Service Instance
99
- # @return [Twilio::REST::FlexApi::V1::InsightsConversationalAiContext] if instanceSid was passed.
100
- # @return [Twilio::REST::FlexApi::V1::InsightsConversationalAiList]
101
- def insights_conversational_ai(instance_sid=:unset)
102
- if instance_sid.nil?
103
- raise ArgumentError, 'instance_sid cannot be nil'
104
- end
105
- if instance_sid == :unset
106
- @insights_conversational_ai ||= InsightsConversationalAiList.new self
107
- else
108
- InsightsConversationalAiContext.new(self, instance_sid)
109
- end
110
- end
111
- ##
112
- # @param [String] instance_sid The Instance SID of the instance for which report insights will be fetched
113
- # @return [Twilio::REST::FlexApi::V1::InsightsConversationalAiReportInsightsContext] if instanceSid was passed.
114
- # @return [Twilio::REST::FlexApi::V1::InsightsConversationalAiReportInsightsList]
115
- def insights_conversational_ai_report_insights(instance_sid=:unset)
116
- if instance_sid.nil?
117
- raise ArgumentError, 'instance_sid cannot be nil'
118
- end
119
- if instance_sid == :unset
120
- @insights_conversational_ai_report_insights ||= InsightsConversationalAiReportInsightsList.new self
121
- else
122
- InsightsConversationalAiReportInsightsContext.new(self, instance_sid)
123
- end
124
- end
125
- ##
126
96
  # @return [Twilio::REST::FlexApi::V1::InsightsConversationsList]
127
97
  def insights_conversations
128
98
  @insights_conversations ||= InsightsConversationsList.new self
@@ -59,7 +59,7 @@ module Twilio
59
59
  end
60
60
  ##
61
61
  # Fetch the PhoneNumberInstance
62
- # @param [String] fields A comma-separated list of fields to return. Possible values are caller_name, sim_swap, call_forwarding, live_activity, line_type_intelligence, identity_match, reassigned_number.
62
+ # @param [String] fields A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score.
63
63
  # @param [String] country_code The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format.
64
64
  # @param [String] first_name User’s first name. This query parameter is only used (optionally) for identity_match package requests.
65
65
  # @param [String] last_name User’s last name. This query parameter is only used (optionally) for identity_match package requests.
@@ -181,7 +181,7 @@ module Twilio
181
181
  'caller_name' => payload['caller_name'],
182
182
  'sim_swap' => payload['sim_swap'],
183
183
  'call_forwarding' => payload['call_forwarding'],
184
- 'live_activity' => payload['live_activity'],
184
+ 'line_status' => payload['line_status'],
185
185
  'line_type_intelligence' => payload['line_type_intelligence'],
186
186
  'identity_match' => payload['identity_match'],
187
187
  'reassigned_number' => payload['reassigned_number'],
@@ -261,9 +261,9 @@ module Twilio
261
261
  end
262
262
 
263
263
  ##
264
- # @return [Hash] An object that contains live activity information for a mobile phone number.
265
- def live_activity
266
- @properties['live_activity']
264
+ # @return [Hash] An object that contains line status information for a mobile phone number.
265
+ def line_status
266
+ @properties['line_status']
267
267
  end
268
268
 
269
269
  ##
@@ -304,7 +304,7 @@ module Twilio
304
304
 
305
305
  ##
306
306
  # Fetch the PhoneNumberInstance
307
- # @param [String] fields A comma-separated list of fields to return. Possible values are caller_name, sim_swap, call_forwarding, live_activity, line_type_intelligence, identity_match, reassigned_number.
307
+ # @param [String] fields A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score.
308
308
  # @param [String] country_code The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format.
309
309
  # @param [String] first_name User’s first name. This query parameter is only used (optionally) for identity_match package requests.
310
310
  # @param [String] last_name User’s last name. This query parameter is only used (optionally) for identity_match package requests.
@@ -53,7 +53,7 @@ module Twilio
53
53
  # @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number.
54
54
  # @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
55
55
  # @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
56
- # @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number.
56
+ # @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
57
57
  # @param [String] external_reference_id An optional external reference ID supplied by customer and echoed back on status retrieval.
58
58
  # @return [TollfreeVerificationInstance] Created TollfreeVerificationInstance
59
59
  def create(
@@ -283,7 +283,7 @@ module Twilio
283
283
  # @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number.
284
284
  # @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
285
285
  # @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
286
- # @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number.
286
+ # @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
287
287
  # @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
288
288
  # @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance
289
289
  def update(
@@ -436,6 +436,7 @@ module Twilio
436
436
  'error_code' => payload['error_code'] == nil ? payload['error_code'] : payload['error_code'].to_i,
437
437
  'edit_expiration' => Twilio.deserialize_iso8601_datetime(payload['edit_expiration']),
438
438
  'edit_allowed' => payload['edit_allowed'],
439
+ 'rejection_reasons' => payload['rejection_reasons'],
439
440
  'resource_links' => payload['resource_links'],
440
441
  'external_reference_id' => payload['external_reference_id'],
441
442
  }
@@ -565,7 +566,7 @@ module Twilio
565
566
  end
566
567
 
567
568
  ##
568
- # @return [String] The phone number of the contact for the business or organization using the Tollfree number.
569
+ # @return [String] The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
569
570
  def business_contact_phone
570
571
  @properties['business_contact_phone']
571
572
  end
@@ -660,6 +661,12 @@ module Twilio
660
661
  @properties['edit_allowed']
661
662
  end
662
663
 
664
+ ##
665
+ # @return [Array<Hash>] A list of rejection reasons and codes describing why a Tollfree Verification has been rejected.
666
+ def rejection_reasons
667
+ @properties['rejection_reasons']
668
+ end
669
+
663
670
  ##
664
671
  # @return [Hash] The URLs of the documents associated with the Tollfree Verification resource.
665
672
  def resource_links
@@ -709,7 +716,7 @@ module Twilio
709
716
  # @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number.
710
717
  # @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
711
718
  # @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
712
- # @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number.
719
+ # @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
713
720
  # @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
714
721
  # @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance
715
722
  def update(
@@ -35,7 +35,7 @@ module Twilio
35
35
  # @param [EndUserType] end_user_type
36
36
  # @param [PhoneNumberType] phone_number_type
37
37
  # @param [BusinessIdentityType] business_identity_type
38
- # @param [String] business_registration_authority The authority that registered the business
38
+ # @param [BusinessRegistrationAuthority] business_registration_authority
39
39
  # @param [String] business_legal_name he name of the business or organization using the Tollfree number.
40
40
  # @param [String] notification_email he email address to receive the notification about the verification result.
41
41
  # @param [Boolean] accepted_notification_receipt The email address to receive the notification about the verification result.
@@ -62,6 +62,12 @@ module Twilio
62
62
  # @param [Boolean] use_address_as_emergency_address Use the business address as the emergency address
63
63
  # @param [String] file_name The name of the verification document to upload
64
64
  # @param [String] file The verification document to upload
65
+ # @param [String] first_name The first name of the Individual User.
66
+ # @param [String] last_name The last name of the Individual User.
67
+ # @param [String] date_of_birth The date of birth of the Individual User.
68
+ # @param [String] individual_email The email address of the Individual User.
69
+ # @param [String] individual_phone The phone number of the Individual User.
70
+ # @param [Boolean] is_isv_embed Indicates if the inquiry is being started from an ISV embedded component.
65
71
  # @return [ComplianceRegistrationInquiriesInstance] Created ComplianceRegistrationInquiriesInstance
66
72
  def create(
67
73
  end_user_type: nil,
@@ -93,7 +99,13 @@ module Twilio
93
99
  emergency_address_country_code: :unset,
94
100
  use_address_as_emergency_address: :unset,
95
101
  file_name: :unset,
96
- file: :unset
102
+ file: :unset,
103
+ first_name: :unset,
104
+ last_name: :unset,
105
+ date_of_birth: :unset,
106
+ individual_email: :unset,
107
+ individual_phone: :unset,
108
+ is_isv_embed: :unset
97
109
  )
98
110
 
99
111
  data = Twilio::Values.of({
@@ -127,6 +139,12 @@ module Twilio
127
139
  'UseAddressAsEmergencyAddress' => use_address_as_emergency_address,
128
140
  'FileName' => file_name,
129
141
  'File' => file,
142
+ 'FirstName' => first_name,
143
+ 'LastName' => last_name,
144
+ 'DateOfBirth' => date_of_birth,
145
+ 'IndividualEmail' => individual_email,
146
+ 'IndividualPhone' => individual_phone,
147
+ 'IsIsvEmbed' => is_isv_embed,
130
148
  })
131
149
 
132
150
 
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '6.11.0'
2
+ VERSION = '6.12.0'
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: 6.11.0
4
+ version: 6.12.0
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-02-09 00:00:00.000000000 Z
11
+ date: 2024-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -270,8 +270,6 @@ files:
270
270
  - lib/twilio-ruby/rest/api/v2010/account/balance.rb
271
271
  - lib/twilio-ruby/rest/api/v2010/account/call.rb
272
272
  - lib/twilio-ruby/rest/api/v2010/account/call/event.rb
273
- - lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb
274
- - lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb
275
273
  - lib/twilio-ruby/rest/api/v2010/account/call/notification.rb
276
274
  - lib/twilio-ruby/rest/api/v2010/account/call/payment.rb
277
275
  - lib/twilio-ruby/rest/api/v2010/account/call/recording.rb
@@ -425,8 +423,6 @@ files:
425
423
  - lib/twilio-ruby/rest/flex_api/v1/configuration.rb
426
424
  - lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb
427
425
  - lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb
428
- - lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai.rb
429
- - lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai_report_insights.rb
430
426
  - lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb
431
427
  - lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb
432
428
  - lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb