twilio-ruby 7.6.5 → 7.7.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 +36 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +2 -8
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +3 -0
- data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +27 -3
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +18 -0
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +160 -15
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +21 -0
- data/lib/twilio-ruby/rest/numbers/v1/{porting_webhook_configuration_fetch.rb → webhook.rb} +20 -20
- data/lib/twilio-ruby/rest/numbers/v1.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +7 -0
- data/lib/twilio-ruby/rest/verify/v2/service.rb +43 -0
- data/lib/twilio-ruby/rest/voice_base.rb +1 -6
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23300ce15111060910662316c44e00df16b7b836
|
4
|
+
data.tar.gz: 693dec3427defce92d1bfb582e852647ca90b113
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc79f3b3d818b2375a78278179e505e829abb8f86411cbe4e3f1c77ac1e0dd7b8caac7c5f5a13e399bb42df9b5a79098fe839f1a25130a2296283f8440758d03
|
7
|
+
data.tar.gz: dfe39c759b376796842a27cb7f46f30c58a42314e9eb18dff3afc4c5ace38fde8ed7e6af99303ca673b0912a237a50d5d9f8132ba8f30f461068f66546d836ec
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,42 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2025-08-18] Version 7.7.1
|
5
|
+
--------------------------
|
6
|
+
**Accounts**
|
7
|
+
- Update beta feature flag for consent and contact bulk upsert APIs
|
8
|
+
|
9
|
+
**Api**
|
10
|
+
- Add multiple missing usage categories to usage records and usage triggers api
|
11
|
+
- Add `channels-whatsapp-template-marketing` and `channels-whatsapp-template-utility` to usage categories
|
12
|
+
|
13
|
+
**Conversations**
|
14
|
+
- Fix `state` spelling for `initializing` enum value
|
15
|
+
- Update `state` to include `intializing` for ServiceConversationWithParticipants and ConversationWithParticipants
|
16
|
+
|
17
|
+
**Flex**
|
18
|
+
- Adding new optional parameter `identity` to `web_channels` API in version `v2`
|
19
|
+
|
20
|
+
**Trusthub**
|
21
|
+
- Add required Permissions to the ComplianceInquiries API
|
22
|
+
|
23
|
+
**Verify**
|
24
|
+
- Add passkeys support to Verify API creating and updating services.
|
25
|
+
- Update `ienum` type for Factor creation
|
26
|
+
- Add passkeys as challenge and factor type
|
27
|
+
|
28
|
+
|
29
|
+
[2025-07-24] Version 7.7.0
|
30
|
+
--------------------------
|
31
|
+
**Events**
|
32
|
+
- Remove `SinkSid` parameter when updating subscriptions. **(breaking change)**
|
33
|
+
|
34
|
+
**Twiml**
|
35
|
+
- Remove Duplicates.
|
36
|
+
- Add Polly Generative voices.
|
37
|
+
- Add Latest Google (Chirp3-HD) voices.
|
38
|
+
|
39
|
+
|
4
40
|
[2025-07-10] Version 7.6.5
|
5
41
|
--------------------------
|
6
42
|
**Flex**
|
data/README.md
CHANGED
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
|
|
39
39
|
To install using [Bundler][bundler] grab the latest stable version:
|
40
40
|
|
41
41
|
```ruby
|
42
|
-
gem 'twilio-ruby', '~> 7.
|
42
|
+
gem 'twilio-ruby', '~> 7.7.1'
|
43
43
|
```
|
44
44
|
|
45
45
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
46
46
|
|
47
47
|
```bash
|
48
|
-
gem install twilio-ruby -v 7.
|
48
|
+
gem install twilio-ruby -v 7.7.1
|
49
49
|
```
|
50
50
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
@@ -214,16 +214,13 @@ module Twilio
|
|
214
214
|
##
|
215
215
|
# Update the SubscriptionInstance
|
216
216
|
# @param [String] description A human readable description for the Subscription.
|
217
|
-
# @param [String] sink_sid The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created.
|
218
217
|
# @return [SubscriptionInstance] Updated SubscriptionInstance
|
219
218
|
def update(
|
220
|
-
description: :unset
|
221
|
-
sink_sid: :unset
|
219
|
+
description: :unset
|
222
220
|
)
|
223
221
|
|
224
222
|
data = Twilio::Values.of({
|
225
223
|
'Description' => description,
|
226
|
-
'SinkSid' => sink_sid,
|
227
224
|
})
|
228
225
|
|
229
226
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
@@ -411,16 +408,13 @@ module Twilio
|
|
411
408
|
##
|
412
409
|
# Update the SubscriptionInstance
|
413
410
|
# @param [String] description A human readable description for the Subscription.
|
414
|
-
# @param [String] sink_sid The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created.
|
415
411
|
# @return [SubscriptionInstance] Updated SubscriptionInstance
|
416
412
|
def update(
|
417
|
-
description: :unset
|
418
|
-
sink_sid: :unset
|
413
|
+
description: :unset
|
419
414
|
)
|
420
415
|
|
421
416
|
context.update(
|
422
417
|
description: description,
|
423
|
-
sink_sid: sink_sid,
|
424
418
|
)
|
425
419
|
end
|
426
420
|
|
@@ -346,7 +346,7 @@ module Twilio
|
|
346
346
|
end
|
347
347
|
|
348
348
|
##
|
349
|
-
# @return [
|
349
|
+
# @return [String] Offset of the conversation
|
350
350
|
def offset
|
351
351
|
@properties['offset']
|
352
352
|
end
|
@@ -358,7 +358,7 @@ module Twilio
|
|
358
358
|
end
|
359
359
|
|
360
360
|
##
|
361
|
-
# @return [
|
361
|
+
# @return [String] The weightage given to this comment
|
362
362
|
def weight
|
363
363
|
@properties['weight']
|
364
364
|
end
|
@@ -406,7 +406,7 @@ module Twilio
|
|
406
406
|
end
|
407
407
|
|
408
408
|
##
|
409
|
-
# @return [
|
409
|
+
# @return [String]
|
410
410
|
def timestamp
|
411
411
|
@properties['timestamp']
|
412
412
|
end
|
@@ -264,7 +264,7 @@ module Twilio
|
|
264
264
|
end
|
265
265
|
|
266
266
|
##
|
267
|
-
# @return [
|
267
|
+
# @return [String] The offset
|
268
268
|
def offset
|
269
269
|
@properties['offset']
|
270
270
|
end
|
@@ -276,7 +276,7 @@ module Twilio
|
|
276
276
|
end
|
277
277
|
|
278
278
|
##
|
279
|
-
# @return [
|
279
|
+
# @return [String] The weightage given to this comment
|
280
280
|
def weight
|
281
281
|
@properties['weight']
|
282
282
|
end
|
@@ -306,7 +306,7 @@ module Twilio
|
|
306
306
|
end
|
307
307
|
|
308
308
|
##
|
309
|
-
# @return [
|
309
|
+
# @return [String] The timestamp when the record is inserted
|
310
310
|
def timestamp
|
311
311
|
@properties['timestamp']
|
312
312
|
end
|
@@ -36,6 +36,7 @@ module Twilio
|
|
36
36
|
# @param [String] chat_friendly_name The Conversation's friendly name. See the [Conversation resource](https://www.twilio.com/docs/conversations/api/conversation-resource) for an example.
|
37
37
|
# @param [String] customer_friendly_name The Conversation participant's friendly name. See the [Conversation Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) for an example.
|
38
38
|
# @param [String] pre_engagement_data The pre-engagement data.
|
39
|
+
# @param [String] identity The Identity of the guest user. See the [Conversation User Resource](https://www.twilio.com/docs/conversations/api/user-resource) for an example.
|
39
40
|
# @param [String] ui_version The Ui-Version HTTP request header
|
40
41
|
# @return [WebChannelsInstance] Created WebChannelsInstance
|
41
42
|
def create(
|
@@ -43,6 +44,7 @@ module Twilio
|
|
43
44
|
chat_friendly_name: :unset,
|
44
45
|
customer_friendly_name: :unset,
|
45
46
|
pre_engagement_data: :unset,
|
47
|
+
identity: :unset,
|
46
48
|
ui_version: :unset
|
47
49
|
)
|
48
50
|
|
@@ -51,6 +53,7 @@ module Twilio
|
|
51
53
|
'ChatFriendlyName' => chat_friendly_name,
|
52
54
|
'CustomerFriendlyName' => customer_friendly_name,
|
53
55
|
'PreEngagementData' => pre_engagement_data,
|
56
|
+
'Identity' => identity,
|
54
57
|
})
|
55
58
|
|
56
59
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'Ui-Version' => ui_version, })
|
@@ -179,6 +179,7 @@ module Twilio
|
|
179
179
|
'friendly_name' => payload['friendly_name'],
|
180
180
|
'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
|
181
181
|
'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
|
182
|
+
'flags' => payload['flags'],
|
182
183
|
}
|
183
184
|
end
|
184
185
|
|
@@ -207,6 +208,12 @@ module Twilio
|
|
207
208
|
@properties['date_updated']
|
208
209
|
end
|
209
210
|
|
211
|
+
##
|
212
|
+
# @return [Array<String>]
|
213
|
+
def flags
|
214
|
+
@properties['flags']
|
215
|
+
end
|
216
|
+
|
210
217
|
##
|
211
218
|
# Provide a user friendly representation
|
212
219
|
def to_s
|
@@ -61,6 +61,10 @@ module Twilio
|
|
61
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
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
63
|
# @param [String] branded_bundle_sid A unique SID identifier of the Branded Call.
|
64
|
+
# @param [Boolean] branded_logo Indicates whether the branded logo was displayed during the in_brand branded call. Possible values are true (logo was present) or false (logo was not present).
|
65
|
+
# @param [String] branded_type Indicates whether the Branded Call is in_band vs out_of_band.
|
66
|
+
# @param [String] branded_use_case Specifies the user-defined purpose for the call, as provided during the setup of in_band branded calling.
|
67
|
+
# @param [String] branded_call_reason Specifies the user-defined reason for the call, which will be displayed to the end user on their mobile device during an in_band branded call.
|
64
68
|
# @param [String] voice_integrity_bundle_sid A unique SID identifier of the Voice Integrity Profile.
|
65
69
|
# @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
70
|
# @param [String] business_profile_identity A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
|
@@ -74,7 +78,7 @@ module Twilio
|
|
74
78
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
75
79
|
# efficient page size, i.e. min(limit, 1000)
|
76
80
|
# @return [Array] Array of up to limit results
|
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)
|
81
|
+
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, branded_logo: :unset, branded_type: :unset, branded_use_case: :unset, branded_call_reason: :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)
|
78
82
|
self.stream(
|
79
83
|
from: from,
|
80
84
|
to: to,
|
@@ -102,6 +106,10 @@ module Twilio
|
|
102
106
|
branded_enabled: branded_enabled,
|
103
107
|
voice_integrity_enabled: voice_integrity_enabled,
|
104
108
|
branded_bundle_sid: branded_bundle_sid,
|
109
|
+
branded_logo: branded_logo,
|
110
|
+
branded_type: branded_type,
|
111
|
+
branded_use_case: branded_use_case,
|
112
|
+
branded_call_reason: branded_call_reason,
|
105
113
|
voice_integrity_bundle_sid: voice_integrity_bundle_sid,
|
106
114
|
voice_integrity_use_case: voice_integrity_use_case,
|
107
115
|
business_profile_identity: business_profile_identity,
|
@@ -143,6 +151,10 @@ module Twilio
|
|
143
151
|
# @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
152
|
# @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
153
|
# @param [String] branded_bundle_sid A unique SID identifier of the Branded Call.
|
154
|
+
# @param [Boolean] branded_logo Indicates whether the branded logo was displayed during the in_brand branded call. Possible values are true (logo was present) or false (logo was not present).
|
155
|
+
# @param [String] branded_type Indicates whether the Branded Call is in_band vs out_of_band.
|
156
|
+
# @param [String] branded_use_case Specifies the user-defined purpose for the call, as provided during the setup of in_band branded calling.
|
157
|
+
# @param [String] branded_call_reason Specifies the user-defined reason for the call, which will be displayed to the end user on their mobile device during an in_band branded call.
|
146
158
|
# @param [String] voice_integrity_bundle_sid A unique SID identifier of the Voice Integrity Profile.
|
147
159
|
# @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
160
|
# @param [String] business_profile_identity A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
|
@@ -156,7 +168,7 @@ module Twilio
|
|
156
168
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
157
169
|
# efficient page size, i.e. min(limit, 1000)
|
158
170
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
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)
|
171
|
+
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, branded_logo: :unset, branded_type: :unset, branded_use_case: :unset, branded_call_reason: :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)
|
160
172
|
limits = @version.read_limits(limit, page_size)
|
161
173
|
|
162
174
|
page = self.page(
|
@@ -186,6 +198,10 @@ module Twilio
|
|
186
198
|
branded_enabled: branded_enabled,
|
187
199
|
voice_integrity_enabled: voice_integrity_enabled,
|
188
200
|
branded_bundle_sid: branded_bundle_sid,
|
201
|
+
branded_logo: branded_logo,
|
202
|
+
branded_type: branded_type,
|
203
|
+
branded_use_case: branded_use_case,
|
204
|
+
branded_call_reason: branded_call_reason,
|
189
205
|
voice_integrity_bundle_sid: voice_integrity_bundle_sid,
|
190
206
|
voice_integrity_use_case: voice_integrity_use_case,
|
191
207
|
business_profile_identity: business_profile_identity,
|
@@ -240,6 +256,10 @@ module Twilio
|
|
240
256
|
# @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
257
|
# @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
258
|
# @param [String] branded_bundle_sid A unique SID identifier of the Branded Call.
|
259
|
+
# @param [Boolean] branded_logo Indicates whether the branded logo was displayed during the in_brand branded call. Possible values are true (logo was present) or false (logo was not present).
|
260
|
+
# @param [String] branded_type Indicates whether the Branded Call is in_band vs out_of_band.
|
261
|
+
# @param [String] branded_use_case Specifies the user-defined purpose for the call, as provided during the setup of in_band branded calling.
|
262
|
+
# @param [String] branded_call_reason Specifies the user-defined reason for the call, which will be displayed to the end user on their mobile device during an in_band branded call.
|
243
263
|
# @param [String] voice_integrity_bundle_sid A unique SID identifier of the Voice Integrity Profile.
|
244
264
|
# @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
265
|
# @param [String] business_profile_identity A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
|
@@ -250,7 +270,7 @@ module Twilio
|
|
250
270
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
251
271
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
252
272
|
# @return [Page] Page of CallSummariesInstance
|
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)
|
273
|
+
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, branded_logo: :unset, branded_type: :unset, branded_use_case: :unset, branded_call_reason: :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)
|
254
274
|
params = Twilio::Values.of({
|
255
275
|
'From' => from,
|
256
276
|
'To' => to,
|
@@ -278,6 +298,10 @@ module Twilio
|
|
278
298
|
'BrandedEnabled' => branded_enabled,
|
279
299
|
'VoiceIntegrityEnabled' => voice_integrity_enabled,
|
280
300
|
'BrandedBundleSid' => branded_bundle_sid,
|
301
|
+
'BrandedLogo' => branded_logo,
|
302
|
+
'BrandedType' => branded_type,
|
303
|
+
'BrandedUseCase' => branded_use_case,
|
304
|
+
'BrandedCallReason' => branded_call_reason,
|
281
305
|
'VoiceIntegrityBundleSid' => voice_integrity_bundle_sid,
|
282
306
|
'VoiceIntegrityUseCase' => voice_integrity_use_case,
|
283
307
|
'BusinessProfileIdentity' => business_profile_identity,
|
@@ -180,6 +180,7 @@ module Twilio
|
|
180
180
|
# Dependents
|
181
181
|
@brand_registration_otps = nil
|
182
182
|
@brand_vettings = nil
|
183
|
+
@brand_registration2_fa = nil
|
183
184
|
end
|
184
185
|
##
|
185
186
|
# Fetch the BrandRegistrationInstance
|
@@ -249,6 +250,16 @@ module Twilio
|
|
249
250
|
|
250
251
|
@brand_vettings
|
251
252
|
end
|
253
|
+
##
|
254
|
+
# Access the brand_registration2_fa
|
255
|
+
# @return [BrandRegistration2FaList]
|
256
|
+
# @return [BrandRegistration2FaContext]
|
257
|
+
def brand_registration2_fa
|
258
|
+
BrandRegistration2FaContext.new(
|
259
|
+
@version,
|
260
|
+
@solution[:sid]
|
261
|
+
)
|
262
|
+
end
|
252
263
|
|
253
264
|
##
|
254
265
|
# Provide a user friendly representation
|
@@ -503,6 +514,13 @@ module Twilio
|
|
503
514
|
context.brand_vettings
|
504
515
|
end
|
505
516
|
|
517
|
+
##
|
518
|
+
# Access the brand_registration2_fa
|
519
|
+
# @return [brand_registration2_fa] brand_registration2_fa
|
520
|
+
def brand_registration2_fa
|
521
|
+
context.brand_registration2_fa
|
522
|
+
end
|
523
|
+
|
506
524
|
##
|
507
525
|
# Provide a user friendly representation
|
508
526
|
def to_s
|
@@ -24,20 +24,30 @@ module Twilio
|
|
24
24
|
# @param [about]: [String] The about text of the sender.
|
25
25
|
# @param [address]: [String] The address of the sender.
|
26
26
|
# @param [description]: [String] The description of the sender.
|
27
|
-
# @param [emails]: [Hash] The emails of the sender.
|
28
27
|
# @param [logo_url]: [String] The logo URL of the sender.
|
28
|
+
# @param [banner_url]: [String] The banner URL of the sender.
|
29
|
+
# @param [privacy_url]: [String] The privacy URL of the sender. Publicly accessible URI associated with the Sender, must use the HTTP or HTTPS protocol
|
30
|
+
# @param [terms_of_service_url]: [String] The terms of service URL of the sender.
|
31
|
+
# @param [accent_color]: [String] string - Color theme of the Sender (required, in hex format, need to be a minimum 4.5:1 contrast ratio relative to white)
|
29
32
|
# @param [vertical]: [String] The vertical of the sender. Allowed values are: - \"Automotive\" - \"Beauty, Spa and Salon\" - \"Clothing and Apparel\" - \"Education\" - \"Entertainment\" - \"Event Planning and Service\" - \"Finance and Banking\" - \"Food and Grocery\" - \"Public Service\" - \"Hotel and Lodging\" - \"Medical and Health\" - \"Non-profit\" - \"Professional Services\" - \"Shopping and Retail\" - \"Travel and Transportation\" - \"Restaurant\" - \"Other\"
|
30
|
-
# @param [websites]: [Hash] The websites of the sender
|
31
|
-
|
33
|
+
# @param [websites]: [Hash] The websites of the sender
|
34
|
+
# @param [emails]: [Hash] The emails of the sender
|
35
|
+
# @param [phone_numbers]: [Hash] The phone numbers of the sender
|
36
|
+
attr_accessor :name, :about, :address, :description, :logo_url, :banner_url, :privacy_url, :terms_of_service_url, :accent_color, :vertical, :websites, :emails, :phone_numbers
|
32
37
|
def initialize(payload)
|
33
38
|
@name = payload["name"]
|
34
39
|
@about = payload["about"]
|
35
40
|
@address = payload["address"]
|
36
41
|
@description = payload["description"]
|
37
|
-
@emails = payload["emails"]
|
38
42
|
@logo_url = payload["logo_url"]
|
43
|
+
@banner_url = payload["banner_url"]
|
44
|
+
@privacy_url = payload["privacy_url"]
|
45
|
+
@terms_of_service_url = payload["terms_of_service_url"]
|
46
|
+
@accent_color = payload["accent_color"]
|
39
47
|
@vertical = payload["vertical"]
|
40
48
|
@websites = payload["websites"]
|
49
|
+
@emails = payload["emails"]
|
50
|
+
@phone_numbers = payload["phone_numbers"]
|
41
51
|
end
|
42
52
|
def to_json(options = {})
|
43
53
|
{
|
@@ -45,15 +55,20 @@ module Twilio
|
|
45
55
|
"about": @about,
|
46
56
|
"address": @address,
|
47
57
|
"description": @description,
|
48
|
-
"emails": @emails,
|
49
58
|
"logo_url": @logo_url,
|
59
|
+
"banner_url": @banner_url,
|
60
|
+
"privacy_url": @privacy_url,
|
61
|
+
"terms_of_service_url": @terms_of_service_url,
|
62
|
+
"accent_color": @accent_color,
|
50
63
|
"vertical": @vertical,
|
51
64
|
"websites": @websites,
|
65
|
+
"emails": @emails,
|
66
|
+
"phone_numbers": @phone_numbers,
|
52
67
|
}.to_json(options)
|
53
68
|
end
|
54
69
|
end
|
55
70
|
|
56
|
-
class
|
71
|
+
class MessagingV2ChannelsSenderProfileGenericResponseEmails
|
57
72
|
# @param [email]: [String]
|
58
73
|
# @param [label]: [String]
|
59
74
|
attr_accessor :email, :label
|
@@ -69,7 +84,23 @@ module Twilio
|
|
69
84
|
end
|
70
85
|
end
|
71
86
|
|
72
|
-
class
|
87
|
+
class MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers
|
88
|
+
# @param [phone_number]: [String]
|
89
|
+
# @param [label]: [String]
|
90
|
+
attr_accessor :phone_number, :label
|
91
|
+
def initialize(payload)
|
92
|
+
@phone_number = payload["phone_number"]
|
93
|
+
@label = payload["label"]
|
94
|
+
end
|
95
|
+
def to_json(options = {})
|
96
|
+
{
|
97
|
+
"phone_number": @phone_number,
|
98
|
+
"label": @label,
|
99
|
+
}.to_json(options)
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
class MessagingV2ChannelsSenderProfileGenericResponseWebsites
|
73
104
|
# @param [website]: [String]
|
74
105
|
# @param [label]: [String]
|
75
106
|
attr_accessor :website, :label
|
@@ -126,26 +157,74 @@ module Twilio
|
|
126
157
|
end
|
127
158
|
end
|
128
159
|
|
160
|
+
class MessagingV2RcsCarrier
|
161
|
+
# @param [name]: [String] carrier in a country e.g. For US-Verizon, AT&T
|
162
|
+
# @param [status]: [MessagingV2RcsCarrierStatus]
|
163
|
+
attr_accessor :name, :status
|
164
|
+
def initialize(payload)
|
165
|
+
@name = payload["name"]
|
166
|
+
@status = payload["status"]
|
167
|
+
end
|
168
|
+
def to_json(options = {})
|
169
|
+
{
|
170
|
+
"name": @name,
|
171
|
+
"status": @status,
|
172
|
+
}.to_json(options)
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
class MessagingV2RcsComplianceCountryResponse
|
177
|
+
# @param [country]: [String] ISO 3166-1 alpha-2 country code (e.g., 'US', 'UK').
|
178
|
+
# @param [registration_sid]: [String] The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden within the `countries` array.
|
179
|
+
# @param [status]: [MessagingV2RcsCountryStatus]
|
180
|
+
# @param [carriers]: [Array<MessagingV2RcsCarrier>]
|
181
|
+
attr_accessor :country, :registration_sid, :status, :carriers
|
182
|
+
def initialize(payload)
|
183
|
+
@country = payload["country"]
|
184
|
+
@registration_sid = payload["registration_sid"]
|
185
|
+
@status = payload["status"]
|
186
|
+
@carriers = payload["carriers"]
|
187
|
+
end
|
188
|
+
def to_json(options = {})
|
189
|
+
{
|
190
|
+
"country": @country,
|
191
|
+
"registration_sid": @registration_sid,
|
192
|
+
"status": @status,
|
193
|
+
"carriers": @carriers,
|
194
|
+
}.to_json(options)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
129
198
|
|
130
199
|
class MessagingV2ChannelsSenderProfile
|
131
200
|
# @param [name]: [String] The name of the sender.
|
132
201
|
# @param [about]: [String] The about text of the sender.
|
133
202
|
# @param [address]: [String] The address of the sender.
|
134
203
|
# @param [description]: [String] The description of the sender.
|
135
|
-
# @param [emails]: [Hash] The emails of the sender.
|
136
204
|
# @param [logo_url]: [String] The logo URL of the sender.
|
205
|
+
# @param [banner_url]: [String] The banner URL of the sender.
|
206
|
+
# @param [privacy_url]: [String] The privacy URL of the sender. Publicly accessible URI associated with the Sender, must use the HTTP or HTTPS protocol
|
207
|
+
# @param [terms_of_service_url]: [String] The terms of service URL of the sender.
|
208
|
+
# @param [accent_color]: [String] string - Color theme of the Sender (required, in hex format, need to be a minimum 4.5:1 contrast ratio relative to white)
|
137
209
|
# @param [vertical]: [String] The vertical of the sender. Allowed values are: - \"Automotive\" - \"Beauty, Spa and Salon\" - \"Clothing and Apparel\" - \"Education\" - \"Entertainment\" - \"Event Planning and Service\" - \"Finance and Banking\" - \"Food and Grocery\" - \"Public Service\" - \"Hotel and Lodging\" - \"Medical and Health\" - \"Non-profit\" - \"Professional Services\" - \"Shopping and Retail\" - \"Travel and Transportation\" - \"Restaurant\" - \"Other\"
|
138
|
-
# @param [websites]: [Hash] The websites of the sender
|
139
|
-
|
210
|
+
# @param [websites]: [Hash] The websites of the sender
|
211
|
+
# @param [emails]: [Hash] The emails of the sender
|
212
|
+
# @param [phone_numbers]: [Hash] The phone numbers of the sender
|
213
|
+
attr_accessor :name, :about, :address, :description, :logo_url, :banner_url, :privacy_url, :terms_of_service_url, :accent_color, :vertical, :websites, :emails, :phone_numbers
|
140
214
|
def initialize(payload)
|
141
215
|
@name = payload["name"]
|
142
216
|
@about = payload["about"]
|
143
217
|
@address = payload["address"]
|
144
218
|
@description = payload["description"]
|
145
|
-
@emails = payload["emails"]
|
146
219
|
@logo_url = payload["logo_url"]
|
220
|
+
@banner_url = payload["banner_url"]
|
221
|
+
@privacy_url = payload["privacy_url"]
|
222
|
+
@terms_of_service_url = payload["terms_of_service_url"]
|
223
|
+
@accent_color = payload["accent_color"]
|
147
224
|
@vertical = payload["vertical"]
|
148
225
|
@websites = payload["websites"]
|
226
|
+
@emails = payload["emails"]
|
227
|
+
@phone_numbers = payload["phone_numbers"]
|
149
228
|
end
|
150
229
|
def to_json(options = {})
|
151
230
|
{
|
@@ -153,15 +232,20 @@ module Twilio
|
|
153
232
|
"about": @about,
|
154
233
|
"address": @address,
|
155
234
|
"description": @description,
|
156
|
-
"emails": @emails,
|
157
235
|
"logo_url": @logo_url,
|
236
|
+
"banner_url": @banner_url,
|
237
|
+
"privacy_url": @privacy_url,
|
238
|
+
"terms_of_service_url": @terms_of_service_url,
|
239
|
+
"accent_color": @accent_color,
|
158
240
|
"vertical": @vertical,
|
159
241
|
"websites": @websites,
|
242
|
+
"emails": @emails,
|
243
|
+
"phone_numbers": @phone_numbers,
|
160
244
|
}.to_json(options)
|
161
245
|
end
|
162
246
|
end
|
163
247
|
|
164
|
-
class
|
248
|
+
class MessagingV2ChannelsSenderProfileGenericResponseEmails
|
165
249
|
# @param [email]: [String]
|
166
250
|
# @param [label]: [String]
|
167
251
|
attr_accessor :email, :label
|
@@ -177,7 +261,23 @@ module Twilio
|
|
177
261
|
end
|
178
262
|
end
|
179
263
|
|
180
|
-
class
|
264
|
+
class MessagingV2ChannelsSenderProfileGenericResponsePhoneNumbers
|
265
|
+
# @param [phone_number]: [String]
|
266
|
+
# @param [label]: [String]
|
267
|
+
attr_accessor :phone_number, :label
|
268
|
+
def initialize(payload)
|
269
|
+
@phone_number = payload["phone_number"]
|
270
|
+
@label = payload["label"]
|
271
|
+
end
|
272
|
+
def to_json(options = {})
|
273
|
+
{
|
274
|
+
"phone_number": @phone_number,
|
275
|
+
"label": @label,
|
276
|
+
}.to_json(options)
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
class MessagingV2ChannelsSenderProfileGenericResponseWebsites
|
181
281
|
# @param [website]: [String]
|
182
282
|
# @param [label]: [String]
|
183
283
|
attr_accessor :website, :label
|
@@ -234,6 +334,44 @@ module Twilio
|
|
234
334
|
end
|
235
335
|
end
|
236
336
|
|
337
|
+
class MessagingV2RcsCarrier
|
338
|
+
# @param [name]: [String] carrier in a country e.g. For US-Verizon, AT&T
|
339
|
+
# @param [status]: [MessagingV2RcsCarrierStatus]
|
340
|
+
attr_accessor :name, :status
|
341
|
+
def initialize(payload)
|
342
|
+
@name = payload["name"]
|
343
|
+
@status = payload["status"]
|
344
|
+
end
|
345
|
+
def to_json(options = {})
|
346
|
+
{
|
347
|
+
"name": @name,
|
348
|
+
"status": @status,
|
349
|
+
}.to_json(options)
|
350
|
+
end
|
351
|
+
end
|
352
|
+
|
353
|
+
class MessagingV2RcsComplianceCountryResponse
|
354
|
+
# @param [country]: [String] ISO 3166-1 alpha-2 country code (e.g., 'US', 'UK').
|
355
|
+
# @param [registration_sid]: [String] The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden within the `countries` array.
|
356
|
+
# @param [status]: [MessagingV2RcsCountryStatus]
|
357
|
+
# @param [carriers]: [Array<MessagingV2RcsCarrier>]
|
358
|
+
attr_accessor :country, :registration_sid, :status, :carriers
|
359
|
+
def initialize(payload)
|
360
|
+
@country = payload["country"]
|
361
|
+
@registration_sid = payload["registration_sid"]
|
362
|
+
@status = payload["status"]
|
363
|
+
@carriers = payload["carriers"]
|
364
|
+
end
|
365
|
+
def to_json(options = {})
|
366
|
+
{
|
367
|
+
"country": @country,
|
368
|
+
"registration_sid": @registration_sid,
|
369
|
+
"status": @status,
|
370
|
+
"carriers": @carriers,
|
371
|
+
}.to_json(options)
|
372
|
+
end
|
373
|
+
end
|
374
|
+
|
237
375
|
|
238
376
|
##
|
239
377
|
# Initialize the ChannelsSenderList
|
@@ -503,6 +641,7 @@ module Twilio
|
|
503
641
|
'profile' => payload['profile'],
|
504
642
|
'properties' => payload['properties'],
|
505
643
|
'offline_reasons' => payload['offline_reasons'],
|
644
|
+
'compliance' => payload['compliance'],
|
506
645
|
'url' => payload['url'],
|
507
646
|
}
|
508
647
|
|
@@ -553,7 +692,7 @@ module Twilio
|
|
553
692
|
end
|
554
693
|
|
555
694
|
##
|
556
|
-
# @return [
|
695
|
+
# @return [MessagingV2ChannelsSenderProfileGenericResponse]
|
557
696
|
def profile
|
558
697
|
@properties['profile']
|
559
698
|
end
|
@@ -570,6 +709,12 @@ module Twilio
|
|
570
709
|
@properties['offline_reasons']
|
571
710
|
end
|
572
711
|
|
712
|
+
##
|
713
|
+
# @return [MessagingV2RcsComplianceResponse]
|
714
|
+
def compliance
|
715
|
+
@properties['compliance']
|
716
|
+
end
|
717
|
+
|
573
718
|
##
|
574
719
|
# @return [String] The URL of this resource, relative to `https://messaging.twilio.com`.
|
575
720
|
def url
|
@@ -175,6 +175,9 @@ module Twilio
|
|
175
175
|
'port_in_request_status' => payload['port_in_request_status'],
|
176
176
|
'losing_carrier_information' => payload['losing_carrier_information'],
|
177
177
|
'phone_numbers' => payload['phone_numbers'],
|
178
|
+
'bundle_sid' => payload['bundle_sid'],
|
179
|
+
'portability_advance_carrier' => payload['portability_advance_carrier'],
|
180
|
+
'auto_cancel_approval_numbers' => payload['auto_cancel_approval_numbers'],
|
178
181
|
'documents' => payload['documents'],
|
179
182
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
180
183
|
}
|
@@ -255,6 +258,24 @@ module Twilio
|
|
255
258
|
@properties['phone_numbers']
|
256
259
|
end
|
257
260
|
|
261
|
+
##
|
262
|
+
# @return [String] The bundle sid is an optional identifier to reference a group of regulatory documents for a port request.
|
263
|
+
def bundle_sid
|
264
|
+
@properties['bundle_sid']
|
265
|
+
end
|
266
|
+
|
267
|
+
##
|
268
|
+
# @return [String] A field only required for Japan port in requests. It is a unique identifier for the donor carrier service the line is being ported from.
|
269
|
+
def portability_advance_carrier
|
270
|
+
@properties['portability_advance_carrier']
|
271
|
+
end
|
272
|
+
|
273
|
+
##
|
274
|
+
# @return [String] Japan specific field, indicates the number of phone numbers to automatically approve for cancellation.
|
275
|
+
def auto_cancel_approval_numbers
|
276
|
+
@properties['auto_cancel_approval_numbers']
|
277
|
+
end
|
278
|
+
|
258
279
|
##
|
259
280
|
# @return [Array<String>] List of document SIDs for all phone numbers included in the port in request. At least one document SID referring to a document of the type Utility Bill is required.
|
260
281
|
def documents
|
@@ -17,12 +17,12 @@ module Twilio
|
|
17
17
|
module REST
|
18
18
|
class Numbers < NumbersBase
|
19
19
|
class V1 < Version
|
20
|
-
class
|
20
|
+
class WebhookList < ListResource
|
21
21
|
|
22
22
|
##
|
23
|
-
# Initialize the
|
23
|
+
# Initialize the WebhookList
|
24
24
|
# @param [Version] version Version that contains the resource
|
25
|
-
# @return [
|
25
|
+
# @return [WebhookList] WebhookList
|
26
26
|
def initialize(version)
|
27
27
|
super(version)
|
28
28
|
# Path Solution
|
@@ -31,8 +31,8 @@ module Twilio
|
|
31
31
|
|
32
32
|
end
|
33
33
|
##
|
34
|
-
# Fetch the
|
35
|
-
# @return [
|
34
|
+
# Fetch the WebhookInstance
|
35
|
+
# @return [WebhookInstance] Fetched WebhookInstance
|
36
36
|
def fetch
|
37
37
|
|
38
38
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
@@ -42,7 +42,7 @@ module Twilio
|
|
42
42
|
|
43
43
|
|
44
44
|
payload = @version.fetch('GET', @uri, headers: headers)
|
45
|
-
|
45
|
+
WebhookInstance.new(
|
46
46
|
@version,
|
47
47
|
payload,
|
48
48
|
)
|
@@ -53,17 +53,17 @@ module Twilio
|
|
53
53
|
|
54
54
|
# Provide a user friendly representation
|
55
55
|
def to_s
|
56
|
-
'#<Twilio.Numbers.V1.
|
56
|
+
'#<Twilio.Numbers.V1.WebhookList>'
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
class
|
60
|
+
class WebhookPage < Page
|
61
61
|
##
|
62
|
-
# Initialize the
|
62
|
+
# Initialize the WebhookPage
|
63
63
|
# @param [Version] version Version that contains the resource
|
64
64
|
# @param [Response] response Response from the API
|
65
65
|
# @param [Hash] solution Path solution for the resource
|
66
|
-
# @return [
|
66
|
+
# @return [WebhookPage] WebhookPage
|
67
67
|
def initialize(version, response, solution)
|
68
68
|
super(version, response)
|
69
69
|
|
@@ -72,29 +72,29 @@ module Twilio
|
|
72
72
|
end
|
73
73
|
|
74
74
|
##
|
75
|
-
# Build an instance of
|
75
|
+
# Build an instance of WebhookInstance
|
76
76
|
# @param [Hash] payload Payload response from the API
|
77
|
-
# @return [
|
77
|
+
# @return [WebhookInstance] WebhookInstance
|
78
78
|
def get_instance(payload)
|
79
|
-
|
79
|
+
WebhookInstance.new(@version, payload)
|
80
80
|
end
|
81
81
|
|
82
82
|
##
|
83
83
|
# Provide a user friendly representation
|
84
84
|
def to_s
|
85
|
-
'<Twilio.Numbers.V1.
|
85
|
+
'<Twilio.Numbers.V1.WebhookPage>'
|
86
86
|
end
|
87
87
|
end
|
88
|
-
class
|
88
|
+
class WebhookInstance < InstanceResource
|
89
89
|
##
|
90
|
-
# Initialize the
|
90
|
+
# Initialize the WebhookInstance
|
91
91
|
# @param [Version] version Version that contains the resource
|
92
92
|
# @param [Hash] payload payload that contains response from Twilio
|
93
93
|
# @param [String] account_sid The SID of the
|
94
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this
|
94
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Webhook
|
95
95
|
# resource.
|
96
96
|
# @param [String] sid The SID of the Call resource to fetch.
|
97
|
-
# @return [
|
97
|
+
# @return [WebhookInstance] WebhookInstance
|
98
98
|
def initialize(version, payload )
|
99
99
|
super(version)
|
100
100
|
|
@@ -149,13 +149,13 @@ module Twilio
|
|
149
149
|
##
|
150
150
|
# Provide a user friendly representation
|
151
151
|
def to_s
|
152
|
-
"<Twilio.Numbers.V1.
|
152
|
+
"<Twilio.Numbers.V1.WebhookInstance>"
|
153
153
|
end
|
154
154
|
|
155
155
|
##
|
156
156
|
# Provide a detailed, user friendly representation
|
157
157
|
def inspect
|
158
|
-
"<Twilio.Numbers.V1.
|
158
|
+
"<Twilio.Numbers.V1.WebhookInstance>"
|
159
159
|
end
|
160
160
|
end
|
161
161
|
|
@@ -28,8 +28,8 @@ module Twilio
|
|
28
28
|
@porting_portabilities = nil
|
29
29
|
@porting_webhook_configurations = nil
|
30
30
|
@porting_webhook_configurations_delete = nil
|
31
|
-
@porting_webhook_configuration_fetch = nil
|
32
31
|
@signing_request_configurations = nil
|
32
|
+
@webhook = nil
|
33
33
|
end
|
34
34
|
|
35
35
|
##
|
@@ -135,16 +135,16 @@ module Twilio
|
|
135
135
|
end
|
136
136
|
end
|
137
137
|
##
|
138
|
-
# @return [Twilio::REST::Numbers::V1::PortingWebhookConfigurationFetchList]
|
139
|
-
def porting_webhook_configuration_fetch
|
140
|
-
@porting_webhook_configuration_fetch ||= PortingWebhookConfigurationFetchList.new self
|
141
|
-
end
|
142
|
-
##
|
143
138
|
# @return [Twilio::REST::Numbers::V1::SigningRequestConfigurationList]
|
144
139
|
def signing_request_configurations
|
145
140
|
@signing_request_configurations ||= SigningRequestConfigurationList.new self
|
146
141
|
end
|
147
142
|
##
|
143
|
+
# @return [Twilio::REST::Numbers::V1::WebhookList]
|
144
|
+
def webhook
|
145
|
+
@webhook ||= WebhookList.new self
|
146
|
+
end
|
147
|
+
##
|
148
148
|
# Provide a user friendly representation
|
149
149
|
def to_s
|
150
150
|
'<Twilio::REST::Numbers::V1>';
|
@@ -157,6 +157,7 @@ module Twilio
|
|
157
157
|
'entity_sid' => payload['entity_sid'],
|
158
158
|
'identity' => payload['identity'],
|
159
159
|
'binding' => payload['binding'],
|
160
|
+
'options' => payload['options'],
|
160
161
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
161
162
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
162
163
|
'friendly_name' => payload['friendly_name'],
|
@@ -205,6 +206,12 @@ module Twilio
|
|
205
206
|
@properties['binding']
|
206
207
|
end
|
207
208
|
|
209
|
+
##
|
210
|
+
# @return [Hash]
|
211
|
+
def options
|
212
|
+
@properties['options']
|
213
|
+
end
|
214
|
+
|
208
215
|
##
|
209
216
|
# @return [Time] The date that this Factor was created, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
210
217
|
def date_created
|
@@ -51,6 +51,12 @@ module Twilio
|
|
51
51
|
# @param [String] default_template_sid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only.
|
52
52
|
# @param [String] whatsapp_msg_service_sid The SID of the Messaging Service containing WhatsApp Sender(s) that Verify will use to send WhatsApp messages to your users.
|
53
53
|
# @param [String] whatsapp_from The number to use as the WhatsApp Sender that Verify will use to send WhatsApp messages to your users.This WhatsApp Sender must be associated with a Messaging Service SID.
|
54
|
+
# @param [String] passkeys_relying_party_id The Relying Party ID for Passkeys. This is the domain of your application, e.g. `example.com`. It is used to identify your application when creating Passkeys.
|
55
|
+
# @param [String] passkeys_relying_party_name The Relying Party Name for Passkeys. This is the name of your application, e.g. `Example App`. It is used to identify your application when creating Passkeys.
|
56
|
+
# @param [String] passkeys_relying_party_origins The Relying Party Origins for Passkeys. This is the origin of your application, e.g. `login.example.com,www.example.com`. It is used to identify your application when creating Passkeys, it can have multiple origins split by `,`.
|
57
|
+
# @param [String] passkeys_authenticator_attachment The Authenticator Attachment for Passkeys. This is the type of authenticator that will be used to create Passkeys. It can be empty or it can have the values `platform`, `cross-platform` or `any`.
|
58
|
+
# @param [String] passkeys_discoverable_credentials Indicates whether credentials must be discoverable by the authenticator. It can be empty or it can have the values `required`, `preferred` or `discouraged`.
|
59
|
+
# @param [String] passkeys_user_verification The User Verification for Passkeys. This is the type of user verification that will be used to create Passkeys. It can be empty or it can have the values `required`, `preferred` or `discouraged`.
|
54
60
|
# @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
|
55
61
|
# @return [ServiceInstance] Created ServiceInstance
|
56
62
|
def create(
|
@@ -73,6 +79,12 @@ module Twilio
|
|
73
79
|
default_template_sid: :unset,
|
74
80
|
whatsapp_msg_service_sid: :unset,
|
75
81
|
whatsapp_from: :unset,
|
82
|
+
passkeys_relying_party_id: :unset,
|
83
|
+
passkeys_relying_party_name: :unset,
|
84
|
+
passkeys_relying_party_origins: :unset,
|
85
|
+
passkeys_authenticator_attachment: :unset,
|
86
|
+
passkeys_discoverable_credentials: :unset,
|
87
|
+
passkeys_user_verification: :unset,
|
76
88
|
verify_event_subscription_enabled: :unset
|
77
89
|
)
|
78
90
|
|
@@ -96,6 +108,12 @@ module Twilio
|
|
96
108
|
'DefaultTemplateSid' => default_template_sid,
|
97
109
|
'Whatsapp.MsgServiceSid' => whatsapp_msg_service_sid,
|
98
110
|
'Whatsapp.From' => whatsapp_from,
|
111
|
+
'Passkeys.RelyingParty.Id' => passkeys_relying_party_id,
|
112
|
+
'Passkeys.RelyingParty.Name' => passkeys_relying_party_name,
|
113
|
+
'Passkeys.RelyingParty.Origins' => passkeys_relying_party_origins,
|
114
|
+
'Passkeys.AuthenticatorAttachment' => passkeys_authenticator_attachment,
|
115
|
+
'Passkeys.DiscoverableCredentials' => passkeys_discoverable_credentials,
|
116
|
+
'Passkeys.UserVerification' => passkeys_user_verification,
|
99
117
|
'VerifyEventSubscriptionEnabled' => verify_event_subscription_enabled,
|
100
118
|
})
|
101
119
|
|
@@ -283,6 +301,9 @@ module Twilio
|
|
283
301
|
# @param [String] default_template_sid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only.
|
284
302
|
# @param [String] whatsapp_msg_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) to associate with the Verification Service.
|
285
303
|
# @param [String] whatsapp_from The WhatsApp number to use as the sender of the verification messages. This number must be associated with the WhatsApp Message Service.
|
304
|
+
# @param [String] passkeys_relying_party_id The Relying Party ID for Passkeys. This is the domain of your application, e.g. `example.com`. It is used to identify your application when creating Passkeys.
|
305
|
+
# @param [String] passkeys_relying_party_name The Relying Party Name for Passkeys. This is the name of your application, e.g. `Example App`. It is used to identify your application when creating Passkeys.
|
306
|
+
# @param [String] passkeys_relying_party_origins The Relying Party Origins for Passkeys. This is the origin of your application, e.g. `login.example.com,www.example.com`. It is used to identify your application when creating Passkeys, it can have multiple origins split by `,`.
|
286
307
|
# @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
|
287
308
|
# @return [ServiceInstance] Updated ServiceInstance
|
288
309
|
def update(
|
@@ -305,6 +326,9 @@ module Twilio
|
|
305
326
|
default_template_sid: :unset,
|
306
327
|
whatsapp_msg_service_sid: :unset,
|
307
328
|
whatsapp_from: :unset,
|
329
|
+
passkeys_relying_party_id: :unset,
|
330
|
+
passkeys_relying_party_name: :unset,
|
331
|
+
passkeys_relying_party_origins: :unset,
|
308
332
|
verify_event_subscription_enabled: :unset
|
309
333
|
)
|
310
334
|
|
@@ -328,6 +352,9 @@ module Twilio
|
|
328
352
|
'DefaultTemplateSid' => default_template_sid,
|
329
353
|
'Whatsapp.MsgServiceSid' => whatsapp_msg_service_sid,
|
330
354
|
'Whatsapp.From' => whatsapp_from,
|
355
|
+
'Passkeys.RelyingParty.Id' => passkeys_relying_party_id,
|
356
|
+
'Passkeys.RelyingParty.Name' => passkeys_relying_party_name,
|
357
|
+
'Passkeys.RelyingParty.Origins' => passkeys_relying_party_origins,
|
331
358
|
'VerifyEventSubscriptionEnabled' => verify_event_subscription_enabled,
|
332
359
|
})
|
333
360
|
|
@@ -544,6 +571,7 @@ module Twilio
|
|
544
571
|
'totp' => payload['totp'],
|
545
572
|
'default_template_sid' => payload['default_template_sid'],
|
546
573
|
'whatsapp' => payload['whatsapp'],
|
574
|
+
'passkeys' => payload['passkeys'],
|
547
575
|
'verify_event_subscription_enabled' => payload['verify_event_subscription_enabled'],
|
548
576
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
549
577
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
@@ -657,6 +685,12 @@ module Twilio
|
|
657
685
|
@properties['whatsapp']
|
658
686
|
end
|
659
687
|
|
688
|
+
##
|
689
|
+
# @return [Hash]
|
690
|
+
def passkeys
|
691
|
+
@properties['passkeys']
|
692
|
+
end
|
693
|
+
|
660
694
|
##
|
661
695
|
# @return [Boolean] Whether to allow verifications from the service to reach the stream-events sinks if configured
|
662
696
|
def verify_event_subscription_enabled
|
@@ -724,6 +758,9 @@ module Twilio
|
|
724
758
|
# @param [String] default_template_sid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only.
|
725
759
|
# @param [String] whatsapp_msg_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) to associate with the Verification Service.
|
726
760
|
# @param [String] whatsapp_from The WhatsApp number to use as the sender of the verification messages. This number must be associated with the WhatsApp Message Service.
|
761
|
+
# @param [String] passkeys_relying_party_id The Relying Party ID for Passkeys. This is the domain of your application, e.g. `example.com`. It is used to identify your application when creating Passkeys.
|
762
|
+
# @param [String] passkeys_relying_party_name The Relying Party Name for Passkeys. This is the name of your application, e.g. `Example App`. It is used to identify your application when creating Passkeys.
|
763
|
+
# @param [String] passkeys_relying_party_origins The Relying Party Origins for Passkeys. This is the origin of your application, e.g. `login.example.com,www.example.com`. It is used to identify your application when creating Passkeys, it can have multiple origins split by `,`.
|
727
764
|
# @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
|
728
765
|
# @return [ServiceInstance] Updated ServiceInstance
|
729
766
|
def update(
|
@@ -746,6 +783,9 @@ module Twilio
|
|
746
783
|
default_template_sid: :unset,
|
747
784
|
whatsapp_msg_service_sid: :unset,
|
748
785
|
whatsapp_from: :unset,
|
786
|
+
passkeys_relying_party_id: :unset,
|
787
|
+
passkeys_relying_party_name: :unset,
|
788
|
+
passkeys_relying_party_origins: :unset,
|
749
789
|
verify_event_subscription_enabled: :unset
|
750
790
|
)
|
751
791
|
|
@@ -769,6 +809,9 @@ module Twilio
|
|
769
809
|
default_template_sid: default_template_sid,
|
770
810
|
whatsapp_msg_service_sid: whatsapp_msg_service_sid,
|
771
811
|
whatsapp_from: whatsapp_from,
|
812
|
+
passkeys_relying_party_id: passkeys_relying_party_id,
|
813
|
+
passkeys_relying_party_name: passkeys_relying_party_name,
|
814
|
+
passkeys_relying_party_origins: passkeys_relying_party_origins,
|
772
815
|
verify_event_subscription_enabled: verify_event_subscription_enabled,
|
773
816
|
)
|
774
817
|
end
|
@@ -21,17 +21,12 @@ module Twilio
|
|
21
21
|
@base_url = "https://voice.twilio.com"
|
22
22
|
@host = "voice.twilio.com"
|
23
23
|
@port = 443
|
24
|
-
@v1 = nil
|
25
|
-
end
|
26
|
-
|
27
|
-
def v1
|
28
|
-
@v1 ||= Voice::V1.new self
|
29
24
|
end
|
30
25
|
|
31
26
|
##
|
32
27
|
# Provide a user friendly representation
|
33
28
|
def to_s
|
34
|
-
'<Twilio::REST::Voice
|
29
|
+
'<Twilio::REST::Voice>';
|
35
30
|
end
|
36
31
|
end
|
37
32
|
end
|
data/lib/twilio-ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.7.1
|
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: 2025-
|
11
|
+
date: 2025-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -621,8 +621,8 @@ files:
|
|
621
621
|
- lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
|
622
622
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb
|
623
623
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb
|
624
|
-
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb
|
625
624
|
- lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb
|
625
|
+
- lib/twilio-ruby/rest/numbers/v1/webhook.rb
|
626
626
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
627
627
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document.rb
|
628
628
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb
|