twilio-ruby 7.2.3 → 7.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +53 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +5 -599
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +200 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +22 -1
- data/lib/twilio-ruby/rest/client.rb +3 -3
- data/lib/twilio-ruby/rest/content/v1/content.rb +167 -4
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +81 -1
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +270 -0
- data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +223 -0
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +177 -0
- data/lib/twilio-ruby/rest/iam/v1.rb +61 -0
- data/lib/twilio-ruby/rest/{preview_iam.rb → iam.rb} +1 -1
- data/lib/twilio-ruby/rest/{preview_iam_base.rb → iam_base.rb} +10 -5
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +60 -12
- data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +1 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +16 -3
- data/lib/twilio-ruby/rest/intelligence/v2.rb +1 -1
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +8 -8
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +22 -9
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +199 -0
- data/lib/twilio-ruby/rest/marketplace/v1.rb +7 -1
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +4 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +40 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +10 -10
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +24 -17
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +7 -7
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +3 -3
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v1/{webhook.rb → porting_webhook_configuration_fetch.rb} +23 -23
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +96 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +8 -8
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +277 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +4 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +7 -0
- data/lib/twilio-ruby/rest/numbers/v2.rb +15 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +12 -3
- data/lib/twilio-ruby/rest/verify/v2/service.rb +4 -4
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +12 -5
@@ -0,0 +1,61 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Iam
|
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
|
+
module Twilio
|
16
|
+
module REST
|
17
|
+
class Iam
|
18
|
+
class V1 < Version
|
19
|
+
##
|
20
|
+
# Initialize the V1 version of Iam
|
21
|
+
def initialize(domain)
|
22
|
+
super
|
23
|
+
@version = 'v1'
|
24
|
+
@api_key = nil
|
25
|
+
@get_api_keys = nil
|
26
|
+
@new_api_key = nil
|
27
|
+
end
|
28
|
+
|
29
|
+
##
|
30
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the Key resource to fetch.
|
31
|
+
# @return [Twilio::REST::Iam::V1::ApiKeyContext] if sid was passed.
|
32
|
+
# @return [Twilio::REST::Iam::V1::ApiKeyList]
|
33
|
+
def api_key(sid=:unset)
|
34
|
+
if sid.nil?
|
35
|
+
raise ArgumentError, 'sid cannot be nil'
|
36
|
+
end
|
37
|
+
if sid == :unset
|
38
|
+
@api_key ||= ApiKeyList.new self
|
39
|
+
else
|
40
|
+
ApiKeyContext.new(self, sid)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
##
|
44
|
+
# @return [Twilio::REST::Iam::V1::GetApiKeysList]
|
45
|
+
def get_api_keys
|
46
|
+
@get_api_keys ||= GetApiKeysList.new self
|
47
|
+
end
|
48
|
+
##
|
49
|
+
# @return [Twilio::REST::Iam::V1::NewApiKeyList]
|
50
|
+
def new_api_key
|
51
|
+
@new_api_key ||= NewApiKeyList.new self
|
52
|
+
end
|
53
|
+
##
|
54
|
+
# Provide a user friendly representation
|
55
|
+
def to_s
|
56
|
+
'<Twilio::REST::Iam::V1>';
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -10,23 +10,28 @@
|
|
10
10
|
# frozen_string_literal: true
|
11
11
|
module Twilio
|
12
12
|
module REST
|
13
|
-
class
|
13
|
+
class IamBase < Domain
|
14
14
|
##
|
15
|
-
# Initialize
|
15
|
+
# Initialize iam domain
|
16
16
|
#
|
17
17
|
# @param twilio - The twilio client
|
18
18
|
#
|
19
19
|
def initialize(twilio)
|
20
20
|
super(twilio)
|
21
|
-
@base_url = "https://
|
22
|
-
@host = "
|
21
|
+
@base_url = "https://iam.twilio.com"
|
22
|
+
@host = "iam.twilio.com"
|
23
23
|
@port = 443
|
24
|
+
@v1 = nil
|
25
|
+
end
|
26
|
+
|
27
|
+
def v1
|
28
|
+
@v1 ||= Iam::V1.new self
|
24
29
|
end
|
25
30
|
|
26
31
|
##
|
27
32
|
# Provide a user friendly representation
|
28
33
|
def to_s
|
29
|
-
'<Twilio::REST::
|
34
|
+
'<Twilio::REST::Iam::V1>';
|
30
35
|
end
|
31
36
|
end
|
32
37
|
end
|
@@ -41,8 +41,7 @@ module Twilio
|
|
41
41
|
# @param [String] to_carrier A destination carrier.
|
42
42
|
# @param [String] from_country_code A source country code based on phone number in From.
|
43
43
|
# @param [String] to_country_code A destination country code. Based on phone number in To.
|
44
|
-
# @param [Boolean]
|
45
|
-
# @param [Boolean] verified_caller A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.
|
44
|
+
# @param [Boolean] verified_caller A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.One of 'true' or 'false'.
|
46
45
|
# @param [Boolean] has_tag A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags).
|
47
46
|
# @param [String] start_time A Start time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 4h.
|
48
47
|
# @param [String] end_time An End Time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 0m.
|
@@ -59,6 +58,15 @@ module Twilio
|
|
59
58
|
# @param [String] quality_issue_annotation A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`.
|
60
59
|
# @param [Boolean] spam_annotation A boolean flag indicating spam calls.
|
61
60
|
# @param [String] call_score_annotation A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
|
61
|
+
# @param [Boolean] branded_enabled A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false'
|
62
|
+
# @param [Boolean] voice_integrity_enabled A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false'
|
63
|
+
# @param [String] branded_bundle_sid A unique SID identifier of the Branded Call.
|
64
|
+
# @param [String] voice_integrity_bundle_sid A unique SID identifier of the Voice Integrity Profile.
|
65
|
+
# @param [String] voice_integrity_use_case A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'.
|
66
|
+
# @param [String] business_profile_identity A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
|
67
|
+
# @param [String] business_profile_industry A Business Industry of the calls. Is of type enum. One of 'automotive', 'agriculture', 'banking', 'consumer', 'construction', 'education', 'engineering', 'energy', 'oil_and_gas', 'fast_moving_consumer_goods', 'financial', 'fintech', 'food_and_beverage', 'government', 'healthcare', 'hospitality', 'insurance', 'legal', 'manufacturing', 'media', 'online', 'professional_services', 'raw_materials', 'real_estate', 'religion', 'retail', 'jewelry', 'technology', 'telecommunications', 'transportation', 'travel', 'electronics', 'not_for_profit'
|
68
|
+
# @param [String] business_profile_bundle_sid A unique SID identifier of the Business Profile.
|
69
|
+
# @param [String] business_profile_type A Business Profile Type of the calls. Is of type enum. One of 'primary', 'secondary'.
|
62
70
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
63
71
|
# guarantees to never return more than limit. Default is no limit
|
64
72
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -66,7 +74,7 @@ module Twilio
|
|
66
74
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
67
75
|
# efficient page size, i.e. min(limit, 1000)
|
68
76
|
# @return [Array] Array of up to limit results
|
69
|
-
def list(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset,
|
77
|
+
def list(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, answered_by_annotation: :unset, connectivity_issue_annotation: :unset, quality_issue_annotation: :unset, spam_annotation: :unset, call_score_annotation: :unset, branded_enabled: :unset, voice_integrity_enabled: :unset, branded_bundle_sid: :unset, voice_integrity_bundle_sid: :unset, voice_integrity_use_case: :unset, business_profile_identity: :unset, business_profile_industry: :unset, business_profile_bundle_sid: :unset, business_profile_type: :unset, limit: nil, page_size: nil)
|
70
78
|
self.stream(
|
71
79
|
from: from,
|
72
80
|
to: to,
|
@@ -74,7 +82,6 @@ module Twilio
|
|
74
82
|
to_carrier: to_carrier,
|
75
83
|
from_country_code: from_country_code,
|
76
84
|
to_country_code: to_country_code,
|
77
|
-
branded: branded,
|
78
85
|
verified_caller: verified_caller,
|
79
86
|
has_tag: has_tag,
|
80
87
|
start_time: start_time,
|
@@ -92,6 +99,15 @@ module Twilio
|
|
92
99
|
quality_issue_annotation: quality_issue_annotation,
|
93
100
|
spam_annotation: spam_annotation,
|
94
101
|
call_score_annotation: call_score_annotation,
|
102
|
+
branded_enabled: branded_enabled,
|
103
|
+
voice_integrity_enabled: voice_integrity_enabled,
|
104
|
+
branded_bundle_sid: branded_bundle_sid,
|
105
|
+
voice_integrity_bundle_sid: voice_integrity_bundle_sid,
|
106
|
+
voice_integrity_use_case: voice_integrity_use_case,
|
107
|
+
business_profile_identity: business_profile_identity,
|
108
|
+
business_profile_industry: business_profile_industry,
|
109
|
+
business_profile_bundle_sid: business_profile_bundle_sid,
|
110
|
+
business_profile_type: business_profile_type,
|
95
111
|
limit: limit,
|
96
112
|
page_size: page_size
|
97
113
|
).entries
|
@@ -107,8 +123,7 @@ module Twilio
|
|
107
123
|
# @param [String] to_carrier A destination carrier.
|
108
124
|
# @param [String] from_country_code A source country code based on phone number in From.
|
109
125
|
# @param [String] to_country_code A destination country code. Based on phone number in To.
|
110
|
-
# @param [Boolean]
|
111
|
-
# @param [Boolean] verified_caller A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.
|
126
|
+
# @param [Boolean] verified_caller A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.One of 'true' or 'false'.
|
112
127
|
# @param [Boolean] has_tag A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags).
|
113
128
|
# @param [String] start_time A Start time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 4h.
|
114
129
|
# @param [String] end_time An End Time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 0m.
|
@@ -125,6 +140,15 @@ module Twilio
|
|
125
140
|
# @param [String] quality_issue_annotation A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`.
|
126
141
|
# @param [Boolean] spam_annotation A boolean flag indicating spam calls.
|
127
142
|
# @param [String] call_score_annotation A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
|
143
|
+
# @param [Boolean] branded_enabled A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false'
|
144
|
+
# @param [Boolean] voice_integrity_enabled A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false'
|
145
|
+
# @param [String] branded_bundle_sid A unique SID identifier of the Branded Call.
|
146
|
+
# @param [String] voice_integrity_bundle_sid A unique SID identifier of the Voice Integrity Profile.
|
147
|
+
# @param [String] voice_integrity_use_case A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'.
|
148
|
+
# @param [String] business_profile_identity A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
|
149
|
+
# @param [String] business_profile_industry A Business Industry of the calls. Is of type enum. One of 'automotive', 'agriculture', 'banking', 'consumer', 'construction', 'education', 'engineering', 'energy', 'oil_and_gas', 'fast_moving_consumer_goods', 'financial', 'fintech', 'food_and_beverage', 'government', 'healthcare', 'hospitality', 'insurance', 'legal', 'manufacturing', 'media', 'online', 'professional_services', 'raw_materials', 'real_estate', 'religion', 'retail', 'jewelry', 'technology', 'telecommunications', 'transportation', 'travel', 'electronics', 'not_for_profit'
|
150
|
+
# @param [String] business_profile_bundle_sid A unique SID identifier of the Business Profile.
|
151
|
+
# @param [String] business_profile_type A Business Profile Type of the calls. Is of type enum. One of 'primary', 'secondary'.
|
128
152
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
129
153
|
# guarantees to never return more than limit. Default is no limit
|
130
154
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -132,7 +156,7 @@ module Twilio
|
|
132
156
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
133
157
|
# efficient page size, i.e. min(limit, 1000)
|
134
158
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
135
|
-
def stream(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset,
|
159
|
+
def stream(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, answered_by_annotation: :unset, connectivity_issue_annotation: :unset, quality_issue_annotation: :unset, spam_annotation: :unset, call_score_annotation: :unset, branded_enabled: :unset, voice_integrity_enabled: :unset, branded_bundle_sid: :unset, voice_integrity_bundle_sid: :unset, voice_integrity_use_case: :unset, business_profile_identity: :unset, business_profile_industry: :unset, business_profile_bundle_sid: :unset, business_profile_type: :unset, limit: nil, page_size: nil)
|
136
160
|
limits = @version.read_limits(limit, page_size)
|
137
161
|
|
138
162
|
page = self.page(
|
@@ -142,7 +166,6 @@ module Twilio
|
|
142
166
|
to_carrier: to_carrier,
|
143
167
|
from_country_code: from_country_code,
|
144
168
|
to_country_code: to_country_code,
|
145
|
-
branded: branded,
|
146
169
|
verified_caller: verified_caller,
|
147
170
|
has_tag: has_tag,
|
148
171
|
start_time: start_time,
|
@@ -160,6 +183,15 @@ module Twilio
|
|
160
183
|
quality_issue_annotation: quality_issue_annotation,
|
161
184
|
spam_annotation: spam_annotation,
|
162
185
|
call_score_annotation: call_score_annotation,
|
186
|
+
branded_enabled: branded_enabled,
|
187
|
+
voice_integrity_enabled: voice_integrity_enabled,
|
188
|
+
branded_bundle_sid: branded_bundle_sid,
|
189
|
+
voice_integrity_bundle_sid: voice_integrity_bundle_sid,
|
190
|
+
voice_integrity_use_case: voice_integrity_use_case,
|
191
|
+
business_profile_identity: business_profile_identity,
|
192
|
+
business_profile_industry: business_profile_industry,
|
193
|
+
business_profile_bundle_sid: business_profile_bundle_sid,
|
194
|
+
business_profile_type: business_profile_type,
|
163
195
|
page_size: limits[:page_size], )
|
164
196
|
|
165
197
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
@@ -188,8 +220,7 @@ module Twilio
|
|
188
220
|
# @param [String] to_carrier A destination carrier.
|
189
221
|
# @param [String] from_country_code A source country code based on phone number in From.
|
190
222
|
# @param [String] to_country_code A destination country code. Based on phone number in To.
|
191
|
-
# @param [Boolean]
|
192
|
-
# @param [Boolean] verified_caller A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.
|
223
|
+
# @param [Boolean] verified_caller A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.One of 'true' or 'false'.
|
193
224
|
# @param [Boolean] has_tag A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags).
|
194
225
|
# @param [String] start_time A Start time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 4h.
|
195
226
|
# @param [String] end_time An End Time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 0m.
|
@@ -206,11 +237,20 @@ module Twilio
|
|
206
237
|
# @param [String] quality_issue_annotation A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`.
|
207
238
|
# @param [Boolean] spam_annotation A boolean flag indicating spam calls.
|
208
239
|
# @param [String] call_score_annotation A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
|
240
|
+
# @param [Boolean] branded_enabled A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false'
|
241
|
+
# @param [Boolean] voice_integrity_enabled A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false'
|
242
|
+
# @param [String] branded_bundle_sid A unique SID identifier of the Branded Call.
|
243
|
+
# @param [String] voice_integrity_bundle_sid A unique SID identifier of the Voice Integrity Profile.
|
244
|
+
# @param [String] voice_integrity_use_case A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'.
|
245
|
+
# @param [String] business_profile_identity A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
|
246
|
+
# @param [String] business_profile_industry A Business Industry of the calls. Is of type enum. One of 'automotive', 'agriculture', 'banking', 'consumer', 'construction', 'education', 'engineering', 'energy', 'oil_and_gas', 'fast_moving_consumer_goods', 'financial', 'fintech', 'food_and_beverage', 'government', 'healthcare', 'hospitality', 'insurance', 'legal', 'manufacturing', 'media', 'online', 'professional_services', 'raw_materials', 'real_estate', 'religion', 'retail', 'jewelry', 'technology', 'telecommunications', 'transportation', 'travel', 'electronics', 'not_for_profit'
|
247
|
+
# @param [String] business_profile_bundle_sid A unique SID identifier of the Business Profile.
|
248
|
+
# @param [String] business_profile_type A Business Profile Type of the calls. Is of type enum. One of 'primary', 'secondary'.
|
209
249
|
# @param [String] page_token PageToken provided by the API
|
210
250
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
211
251
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
212
252
|
# @return [Page] Page of CallSummariesInstance
|
213
|
-
def page(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset,
|
253
|
+
def page(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, answered_by_annotation: :unset, connectivity_issue_annotation: :unset, quality_issue_annotation: :unset, spam_annotation: :unset, call_score_annotation: :unset, branded_enabled: :unset, voice_integrity_enabled: :unset, branded_bundle_sid: :unset, voice_integrity_bundle_sid: :unset, voice_integrity_use_case: :unset, business_profile_identity: :unset, business_profile_industry: :unset, business_profile_bundle_sid: :unset, business_profile_type: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
214
254
|
params = Twilio::Values.of({
|
215
255
|
'From' => from,
|
216
256
|
'To' => to,
|
@@ -218,7 +258,6 @@ module Twilio
|
|
218
258
|
'ToCarrier' => to_carrier,
|
219
259
|
'FromCountryCode' => from_country_code,
|
220
260
|
'ToCountryCode' => to_country_code,
|
221
|
-
'Branded' => branded,
|
222
261
|
'VerifiedCaller' => verified_caller,
|
223
262
|
'HasTag' => has_tag,
|
224
263
|
'StartTime' => start_time,
|
@@ -236,6 +275,15 @@ module Twilio
|
|
236
275
|
'QualityIssueAnnotation' => quality_issue_annotation,
|
237
276
|
'SpamAnnotation' => spam_annotation,
|
238
277
|
'CallScoreAnnotation' => call_score_annotation,
|
278
|
+
'BrandedEnabled' => branded_enabled,
|
279
|
+
'VoiceIntegrityEnabled' => voice_integrity_enabled,
|
280
|
+
'BrandedBundleSid' => branded_bundle_sid,
|
281
|
+
'VoiceIntegrityBundleSid' => voice_integrity_bundle_sid,
|
282
|
+
'VoiceIntegrityUseCase' => voice_integrity_use_case,
|
283
|
+
'BusinessProfileIdentity' => business_profile_identity,
|
284
|
+
'BusinessProfileIndustry' => business_profile_industry,
|
285
|
+
'BusinessProfileBundleSid' => business_profile_bundle_sid,
|
286
|
+
'BusinessProfileType' => business_profile_type,
|
239
287
|
'PageToken' => page_token,
|
240
288
|
'Page' => page_number,
|
241
289
|
'PageSize' => page_size,
|
@@ -128,7 +128,7 @@ module Twilio
|
|
128
128
|
##
|
129
129
|
# Initialize the OperatorTypeContext
|
130
130
|
# @param [Version] version Version that contains the resource
|
131
|
-
# @param [String] sid
|
131
|
+
# @param [String] sid Either a 34 character string that uniquely identifies this Operator Type or the unique name that references an Operator Type.
|
132
132
|
# @return [OperatorTypeContext] OperatorTypeContext
|
133
133
|
def initialize(version, sid)
|
134
134
|
super(version)
|
@@ -38,6 +38,7 @@ module Twilio
|
|
38
38
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
39
39
|
# memory before returning.
|
40
40
|
# @param [Boolean] redacted Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.
|
41
|
+
# @param [Boolean] word_timestamps Returns word level timestamps information, if word_timestamps is enabled. The default is `false`.
|
41
42
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
42
43
|
# guarantees to never return more than limit. Default is no limit
|
43
44
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -45,9 +46,10 @@ module Twilio
|
|
45
46
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
46
47
|
# efficient page size, i.e. min(limit, 1000)
|
47
48
|
# @return [Array] Array of up to limit results
|
48
|
-
def list(redacted: :unset, limit: nil, page_size: nil)
|
49
|
+
def list(redacted: :unset, word_timestamps: :unset, limit: nil, page_size: nil)
|
49
50
|
self.stream(
|
50
51
|
redacted: redacted,
|
52
|
+
word_timestamps: word_timestamps,
|
51
53
|
limit: limit,
|
52
54
|
page_size: page_size
|
53
55
|
).entries
|
@@ -58,6 +60,7 @@ module Twilio
|
|
58
60
|
# This operation lazily loads records as efficiently as possible until the limit
|
59
61
|
# is reached.
|
60
62
|
# @param [Boolean] redacted Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.
|
63
|
+
# @param [Boolean] word_timestamps Returns word level timestamps information, if word_timestamps is enabled. The default is `false`.
|
61
64
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
62
65
|
# guarantees to never return more than limit. Default is no limit
|
63
66
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -65,11 +68,12 @@ module Twilio
|
|
65
68
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
66
69
|
# efficient page size, i.e. min(limit, 1000)
|
67
70
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
68
|
-
def stream(redacted: :unset, limit: nil, page_size: nil)
|
71
|
+
def stream(redacted: :unset, word_timestamps: :unset, limit: nil, page_size: nil)
|
69
72
|
limits = @version.read_limits(limit, page_size)
|
70
73
|
|
71
74
|
page = self.page(
|
72
75
|
redacted: redacted,
|
76
|
+
word_timestamps: word_timestamps,
|
73
77
|
page_size: limits[:page_size], )
|
74
78
|
|
75
79
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
@@ -93,13 +97,15 @@ module Twilio
|
|
93
97
|
# Retrieve a single page of SentenceInstance records from the API.
|
94
98
|
# Request is executed immediately.
|
95
99
|
# @param [Boolean] redacted Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.
|
100
|
+
# @param [Boolean] word_timestamps Returns word level timestamps information, if word_timestamps is enabled. The default is `false`.
|
96
101
|
# @param [String] page_token PageToken provided by the API
|
97
102
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
98
103
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
99
104
|
# @return [Page] Page of SentenceInstance
|
100
|
-
def page(redacted: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
105
|
+
def page(redacted: :unset, word_timestamps: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
101
106
|
params = Twilio::Values.of({
|
102
107
|
'Redacted' => redacted,
|
108
|
+
'WordTimestamps' => word_timestamps,
|
103
109
|
'PageToken' => page_token,
|
104
110
|
'Page' => page_number,
|
105
111
|
'PageSize' => page_size,
|
@@ -181,6 +187,7 @@ module Twilio
|
|
181
187
|
'transcript' => payload['transcript'],
|
182
188
|
'sid' => payload['sid'],
|
183
189
|
'confidence' => payload['confidence'],
|
190
|
+
'words' => payload['words'],
|
184
191
|
}
|
185
192
|
end
|
186
193
|
|
@@ -227,6 +234,12 @@ module Twilio
|
|
227
234
|
@properties['confidence']
|
228
235
|
end
|
229
236
|
|
237
|
+
##
|
238
|
+
# @return [Array<Hash>] Detailed information for each of the words of the given Sentence.
|
239
|
+
def words
|
240
|
+
@properties['words']
|
241
|
+
end
|
242
|
+
|
230
243
|
##
|
231
244
|
# Provide a user friendly representation
|
232
245
|
def to_s
|
@@ -110,7 +110,7 @@ module Twilio
|
|
110
110
|
end
|
111
111
|
end
|
112
112
|
##
|
113
|
-
# @param [String] sid
|
113
|
+
# @param [String] sid Either a 34 character string that uniquely identifies this Operator Type or the unique name that references an Operator Type.
|
114
114
|
# @return [Twilio::REST::Intelligence::V2::OperatorTypeContext] if sid was passed.
|
115
115
|
# @return [Twilio::REST::Intelligence::V2::OperatorTypeList]
|
116
116
|
def operator_type(sid=:unset)
|
@@ -21,8 +21,8 @@ module Twilio
|
|
21
21
|
|
22
22
|
class InstalledAddOnUsageList < ListResource
|
23
23
|
|
24
|
-
class
|
25
|
-
# @param [billable_items]: [Array<InstalledAddOnUsageList.
|
24
|
+
class MarketplaceV1InstalledAddOnInstalledAddOnUsage
|
25
|
+
# @param [billable_items]: [Array<InstalledAddOnUsageList.MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems>]
|
26
26
|
attr_accessor :billable_items
|
27
27
|
def initialize(payload)
|
28
28
|
@billable_items = payload["billable_items"]
|
@@ -34,9 +34,9 @@ module Twilio
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
-
class
|
38
|
-
# @param [quantity]: [Float]
|
39
|
-
# @param [sid]: [String]
|
37
|
+
class MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems
|
38
|
+
# @param [quantity]: [Float] Any floating number greater than 0.
|
39
|
+
# @param [sid]: [String] BillingSid to use for billing.
|
40
40
|
attr_accessor :quantity, :sid
|
41
41
|
def initialize(payload)
|
42
42
|
@quantity = payload["quantity"]
|
@@ -63,14 +63,14 @@ module Twilio
|
|
63
63
|
end
|
64
64
|
##
|
65
65
|
# Create the InstalledAddOnUsageInstance
|
66
|
-
# @param [
|
66
|
+
# @param [MarketplaceV1InstalledAddOnInstalledAddOnUsage] marketplace_v1_installed_add_on_installed_add_on_usage
|
67
67
|
# @return [InstalledAddOnUsageInstance] Created InstalledAddOnUsageInstance
|
68
|
-
def create(
|
68
|
+
def create(marketplace_v1_installed_add_on_installed_add_on_usage: nil
|
69
69
|
)
|
70
70
|
|
71
71
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
72
72
|
headers['Content-Type'] = 'application/json'
|
73
|
-
payload = @version.create('POST', @uri, headers: headers, data:
|
73
|
+
payload = @version.create('POST', @uri, headers: headers, data: marketplace_v1_installed_add_on_installed_add_on_usage.to_json)
|
74
74
|
InstalledAddOnUsageInstance.new(
|
75
75
|
@version,
|
76
76
|
payload,
|
@@ -77,13 +77,15 @@ module Twilio
|
|
77
77
|
# @param [String] documentation
|
78
78
|
# @param [String] policies
|
79
79
|
# @param [String] support
|
80
|
+
# @param [String] configuration
|
80
81
|
# @return [ModuleDataManagementInstance] Updated ModuleDataManagementInstance
|
81
82
|
def update(
|
82
83
|
module_info: :unset,
|
83
84
|
description: :unset,
|
84
85
|
documentation: :unset,
|
85
86
|
policies: :unset,
|
86
|
-
support: :unset
|
87
|
+
support: :unset,
|
88
|
+
configuration: :unset
|
87
89
|
)
|
88
90
|
|
89
91
|
data = Twilio::Values.of({
|
@@ -92,6 +94,7 @@ module Twilio
|
|
92
94
|
'Documentation' => documentation,
|
93
95
|
'Policies' => policies,
|
94
96
|
'Support' => support,
|
97
|
+
'Configuration' => configuration,
|
95
98
|
})
|
96
99
|
|
97
100
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
@@ -170,6 +173,7 @@ module Twilio
|
|
170
173
|
'policies' => payload['policies'],
|
171
174
|
'module_info' => payload['module_info'],
|
172
175
|
'documentation' => payload['documentation'],
|
176
|
+
'configuration' => payload['configuration'],
|
173
177
|
}
|
174
178
|
|
175
179
|
# Context
|
@@ -189,47 +193,53 @@ module Twilio
|
|
189
193
|
end
|
190
194
|
|
191
195
|
##
|
192
|
-
# @return [String]
|
196
|
+
# @return [String] URL to query the subresource.
|
193
197
|
def url
|
194
198
|
@properties['url']
|
195
199
|
end
|
196
200
|
|
197
201
|
##
|
198
|
-
# @return [String]
|
202
|
+
# @return [String] ModuleSid that identifies this Listing.
|
199
203
|
def sid
|
200
204
|
@properties['sid']
|
201
205
|
end
|
202
206
|
|
203
207
|
##
|
204
|
-
# @return [Hash]
|
208
|
+
# @return [Hash] A JSON object describing the module and is displayed under the Description tab of the Module detail page. You can define the main body of the description, highlight key features or aspects of the module and if applicable, provide code samples for developers
|
205
209
|
def description
|
206
210
|
@properties['description']
|
207
211
|
end
|
208
212
|
|
209
213
|
##
|
210
|
-
# @return [Hash]
|
214
|
+
# @return [Hash] A JSON object containing information on how customers can obtain support for the module. Use this parameter to provide details such as contact information and support description.
|
211
215
|
def support
|
212
216
|
@properties['support']
|
213
217
|
end
|
214
218
|
|
215
219
|
##
|
216
|
-
# @return [Hash]
|
220
|
+
# @return [Hash] A JSON object describing the module's privacy and legal policies and is displayed under the Policies tab of the Module detail page. The maximum file size for Policies is 5MB
|
217
221
|
def policies
|
218
222
|
@properties['policies']
|
219
223
|
end
|
220
224
|
|
221
225
|
##
|
222
|
-
# @return [Hash]
|
226
|
+
# @return [Hash] A JSON object containing essential attributes that define a module. This information is presented on the Module detail page in the Twilio Marketplace Catalog. You can pass the following attributes in the JSON object
|
223
227
|
def module_info
|
224
228
|
@properties['module_info']
|
225
229
|
end
|
226
230
|
|
227
231
|
##
|
228
|
-
# @return [Hash]
|
232
|
+
# @return [Hash] A JSON object for providing comprehensive information, instructions, and resources related to the module
|
229
233
|
def documentation
|
230
234
|
@properties['documentation']
|
231
235
|
end
|
232
236
|
|
237
|
+
##
|
238
|
+
# @return [Hash] A JSON object for providing listing specific configuration. Contains button setup, notification url, among others.
|
239
|
+
def configuration
|
240
|
+
@properties['configuration']
|
241
|
+
end
|
242
|
+
|
233
243
|
##
|
234
244
|
# Fetch the ModuleDataManagementInstance
|
235
245
|
# @return [ModuleDataManagementInstance] Fetched ModuleDataManagementInstance
|
@@ -245,13 +255,15 @@ module Twilio
|
|
245
255
|
# @param [String] documentation
|
246
256
|
# @param [String] policies
|
247
257
|
# @param [String] support
|
258
|
+
# @param [String] configuration
|
248
259
|
# @return [ModuleDataManagementInstance] Updated ModuleDataManagementInstance
|
249
260
|
def update(
|
250
261
|
module_info: :unset,
|
251
262
|
description: :unset,
|
252
263
|
documentation: :unset,
|
253
264
|
policies: :unset,
|
254
|
-
support: :unset
|
265
|
+
support: :unset,
|
266
|
+
configuration: :unset
|
255
267
|
)
|
256
268
|
|
257
269
|
context.update(
|
@@ -260,6 +272,7 @@ module Twilio
|
|
260
272
|
documentation: documentation,
|
261
273
|
policies: policies,
|
262
274
|
support: support,
|
275
|
+
configuration: configuration,
|
263
276
|
)
|
264
277
|
end
|
265
278
|
|