twilio-ruby 7.2.1 → 7.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +74 -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/assistants/v1/assistant/feedback.rb +303 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +626 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +229 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +593 -0
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +264 -0
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +264 -0
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +328 -0
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +549 -0
- data/lib/twilio-ruby/rest/assistants/v1.rb +100 -0
- data/lib/twilio-ruby/rest/{preview_iam.rb → assistants.rb} +1 -1
- data/lib/twilio-ruby/rest/assistants_base.rb +38 -0
- data/lib/twilio-ruby/rest/client.rb +8 -3
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +11 -11
- 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/iam.rb +6 -0
- 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 +16 -29
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +46 -20
- 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/porting_webhook_configuration_fetch.rb +3 -3
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +96 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +277 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +8 -5
- 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
- data/twilio-ruby.gemspec +2 -1
- metadata +23 -4
@@ -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,35 +21,22 @@ module Twilio
|
|
21
21
|
|
22
22
|
class InstalledAddOnUsageList < ListResource
|
23
23
|
|
24
|
-
class
|
25
|
-
# @param [
|
26
|
-
|
24
|
+
class MarketplaceV1InstalledAddOnInstalledAddOnUsage
|
25
|
+
# @param [total_submitted]: [Float] Total amount in local currency that was billed in this request. Aggregates all billable_items that were successfully submitted.
|
26
|
+
# @param [billable_items]: [Array<InstalledAddOnUsageList.MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems>]
|
27
|
+
attr_accessor :total_submitted, :billable_items
|
27
28
|
def initialize(payload)
|
29
|
+
@total_submitted = payload["total_submitted"]
|
28
30
|
@billable_items = payload["billable_items"]
|
29
31
|
end
|
30
32
|
def to_json(options = {})
|
31
33
|
{
|
34
|
+
total_submitted: @total_submitted,
|
32
35
|
billable_items: @billable_items,
|
33
36
|
}.to_json(options)
|
34
37
|
end
|
35
38
|
end
|
36
39
|
|
37
|
-
class CreateBillingUsageRequestBillableItems
|
38
|
-
# @param [quantity]: [Float]
|
39
|
-
# @param [sid]: [String]
|
40
|
-
attr_accessor :quantity, :sid
|
41
|
-
def initialize(payload)
|
42
|
-
@quantity = payload["quantity"]
|
43
|
-
@sid = payload["sid"]
|
44
|
-
end
|
45
|
-
def to_json(options = {})
|
46
|
-
{
|
47
|
-
quantity: @quantity,
|
48
|
-
sid: @sid,
|
49
|
-
}.to_json(options)
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
40
|
##
|
54
41
|
# Initialize the InstalledAddOnUsageList
|
55
42
|
# @param [Version] version Version that contains the resource
|
@@ -63,14 +50,14 @@ module Twilio
|
|
63
50
|
end
|
64
51
|
##
|
65
52
|
# Create the InstalledAddOnUsageInstance
|
66
|
-
# @param [
|
53
|
+
# @param [MarketplaceV1InstalledAddOnInstalledAddOnUsage] marketplace_v1_installed_add_on_installed_add_on_usage
|
67
54
|
# @return [InstalledAddOnUsageInstance] Created InstalledAddOnUsageInstance
|
68
|
-
def create(
|
55
|
+
def create(marketplace_v1_installed_add_on_installed_add_on_usage: nil
|
69
56
|
)
|
70
57
|
|
71
58
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
72
59
|
headers['Content-Type'] = 'application/json'
|
73
|
-
payload = @version.create('POST', @uri, headers: headers, data:
|
60
|
+
payload = @version.create('POST', @uri, headers: headers, data: marketplace_v1_installed_add_on_installed_add_on_usage.to_json)
|
74
61
|
InstalledAddOnUsageInstance.new(
|
75
62
|
@version,
|
76
63
|
payload,
|
@@ -130,22 +117,22 @@ module Twilio
|
|
130
117
|
|
131
118
|
# Marshaled Properties
|
132
119
|
@properties = {
|
133
|
-
'billable_items' => payload['billable_items'],
|
134
120
|
'total_submitted' => payload['total_submitted'],
|
121
|
+
'billable_items' => payload['billable_items'],
|
135
122
|
}
|
136
123
|
end
|
137
124
|
|
138
125
|
|
139
126
|
##
|
140
|
-
# @return [
|
141
|
-
def
|
142
|
-
@properties['
|
127
|
+
# @return [Float] Total amount in local currency that was billed in this request. Aggregates all billable_items that were successfully submitted.
|
128
|
+
def total_submitted
|
129
|
+
@properties['total_submitted']
|
143
130
|
end
|
144
131
|
|
145
132
|
##
|
146
|
-
# @return [
|
147
|
-
def
|
148
|
-
@properties['
|
133
|
+
# @return [Array<InstalledAddOnUsageList.MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems>]
|
134
|
+
def billable_items
|
135
|
+
@properties['billable_items']
|
149
136
|
end
|
150
137
|
|
151
138
|
##
|