twilio-ruby 7.7.0 → 7.7.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15fce8365020608006981de3fe956b99d5cf865e
4
- data.tar.gz: a1fcb1d554f257b840662424af7f2d49eefcfd42
3
+ metadata.gz: cc16b2d959a23ab7143fb5da2ceaeb2f8bdd824d
4
+ data.tar.gz: 59a2eb4f346abc3e188131f4521dccaf1fb0c0a5
5
5
  SHA512:
6
- metadata.gz: d11ae2588147aad274802a4adb891f27ba014421b05fc34c12ca2468e32b3e2e1d93b5ada38f3aca7c411d4715241b294ce659ca2b252883fc43b58b58b12d95
7
- data.tar.gz: 69b2ad5193e053a1c83be6be81fd1a347c58700700222d0485f53bc624c84caac14d177ab879c44d84a080ba2e29ea2e8bfc326689ed9fa74248977e4a848c1f
6
+ metadata.gz: 44fdec16888edf12ec6d2df85f3b7199786b5e56fc91a6a90a9ee9fc39bcbbd4fb4c6955d7db8ea2321be463c69d07bd36664b9d38f3bdd91d6f29dff40c754b
7
+ data.tar.gz: 7f2872a1931d7bb7297cde50c276faa80a35f3d40c27a74e2d94141c1e6c4dfe150c7b4ff1c593fb8c4c08171d7a555dba14431227227a6a55ad81fcb4b4589b
data/CHANGES.md CHANGED
@@ -1,6 +1,40 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2025-08-28] Version 7.7.2
5
+ --------------------------
6
+ **Studio**
7
+ - Add `type` to Step resource APIs
8
+
9
+ **Verify**
10
+ - Allow to update all passkeys parameters in the service update
11
+
12
+
13
+ [2025-08-18] Version 7.7.1
14
+ --------------------------
15
+ **Accounts**
16
+ - Update beta feature flag for consent and contact bulk upsert APIs
17
+
18
+ **Api**
19
+ - Add multiple missing usage categories to usage records and usage triggers api
20
+ - Add `channels-whatsapp-template-marketing` and `channels-whatsapp-template-utility` to usage categories
21
+
22
+ **Conversations**
23
+ - Fix `state` spelling for `initializing` enum value
24
+ - Update `state` to include `intializing` for ServiceConversationWithParticipants and ConversationWithParticipants
25
+
26
+ **Flex**
27
+ - Adding new optional parameter `identity` to `web_channels` API in version `v2`
28
+
29
+ **Trusthub**
30
+ - Add required Permissions to the ComplianceInquiries API
31
+
32
+ **Verify**
33
+ - Add passkeys support to Verify API creating and updating services.
34
+ - Update `ienum` type for Factor creation
35
+ - Add passkeys as challenge and factor type
36
+
37
+
4
38
  [2025-07-24] Version 7.7.0
5
39
  --------------------------
6
40
  **Events**
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.7.0'
42
+ gem 'twilio-ruby', '~> 7.7.2'
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.7.0
48
+ gem install twilio-ruby -v 7.7.2
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
@@ -346,7 +346,7 @@ module Twilio
346
346
  end
347
347
 
348
348
  ##
349
- # @return [Float] Offset of the conversation
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 [Float] The weightage given to this comment
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 [Float]
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 [Float] The offset
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 [Float] The weightage given to this comment
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 [Float] The timestamp when the record is inserted
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
@@ -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
- attr_accessor :name, :about, :address, :description, :emails, :logo_url, :vertical, :websites
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 MessagingV2ChannelsSenderProfileResponseEmails
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 MessagingV2ChannelsSenderProfileResponseWebsites
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
- attr_accessor :name, :about, :address, :description, :emails, :logo_url, :vertical, :websites
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 MessagingV2ChannelsSenderProfileResponseEmails
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 MessagingV2ChannelsSenderProfileResponseWebsites
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 [MessagingV2ChannelsSenderProfileResponse]
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
@@ -249,6 +249,7 @@ module Twilio
249
249
  'parent_step_sid' => payload['parent_step_sid'],
250
250
  'transitioned_from' => payload['transitioned_from'],
251
251
  'transitioned_to' => payload['transitioned_to'],
252
+ 'type' => payload['type'],
252
253
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
253
254
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
254
255
  'url' => payload['url'],
@@ -325,6 +326,12 @@ module Twilio
325
326
  @properties['transitioned_to']
326
327
  end
327
328
 
329
+ ##
330
+ # @return [String] The type of the widget that was executed.
331
+ def type
332
+ @properties['type']
333
+ end
334
+
328
335
  ##
329
336
  # @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
330
337
  def date_created
@@ -249,6 +249,7 @@ module Twilio
249
249
  'context' => payload['context'],
250
250
  'transitioned_from' => payload['transitioned_from'],
251
251
  'transitioned_to' => payload['transitioned_to'],
252
+ 'type' => payload['type'],
252
253
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
253
254
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
254
255
  'url' => payload['url'],
@@ -325,6 +326,12 @@ module Twilio
325
326
  @properties['transitioned_to']
326
327
  end
327
328
 
329
+ ##
330
+ # @return [String] The type of the widget that was executed.
331
+ def type
332
+ @properties['type']
333
+ end
334
+
328
335
  ##
329
336
  # @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
330
337
  def date_created
@@ -249,6 +249,7 @@ module Twilio
249
249
  'context' => payload['context'],
250
250
  'transitioned_from' => payload['transitioned_from'],
251
251
  'transitioned_to' => payload['transitioned_to'],
252
+ 'type' => payload['type'],
252
253
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
253
254
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
254
255
  'url' => payload['url'],
@@ -325,6 +326,12 @@ module Twilio
325
326
  @properties['transitioned_to']
326
327
  end
327
328
 
329
+ ##
330
+ # @return [String] The type of the widget that was executed.
331
+ def type
332
+ @properties['type']
333
+ end
334
+
328
335
  ##
329
336
  # @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
330
337
  def date_created
@@ -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,12 @@ 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 `,`.
307
+ # @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`.
308
+ # @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`.
309
+ # @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`.
286
310
  # @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
287
311
  # @return [ServiceInstance] Updated ServiceInstance
288
312
  def update(
@@ -305,6 +329,12 @@ module Twilio
305
329
  default_template_sid: :unset,
306
330
  whatsapp_msg_service_sid: :unset,
307
331
  whatsapp_from: :unset,
332
+ passkeys_relying_party_id: :unset,
333
+ passkeys_relying_party_name: :unset,
334
+ passkeys_relying_party_origins: :unset,
335
+ passkeys_authenticator_attachment: :unset,
336
+ passkeys_discoverable_credentials: :unset,
337
+ passkeys_user_verification: :unset,
308
338
  verify_event_subscription_enabled: :unset
309
339
  )
310
340
 
@@ -328,6 +358,12 @@ module Twilio
328
358
  'DefaultTemplateSid' => default_template_sid,
329
359
  'Whatsapp.MsgServiceSid' => whatsapp_msg_service_sid,
330
360
  'Whatsapp.From' => whatsapp_from,
361
+ 'Passkeys.RelyingParty.Id' => passkeys_relying_party_id,
362
+ 'Passkeys.RelyingParty.Name' => passkeys_relying_party_name,
363
+ 'Passkeys.RelyingParty.Origins' => passkeys_relying_party_origins,
364
+ 'Passkeys.AuthenticatorAttachment' => passkeys_authenticator_attachment,
365
+ 'Passkeys.DiscoverableCredentials' => passkeys_discoverable_credentials,
366
+ 'Passkeys.UserVerification' => passkeys_user_verification,
331
367
  'VerifyEventSubscriptionEnabled' => verify_event_subscription_enabled,
332
368
  })
333
369
 
@@ -544,6 +580,7 @@ module Twilio
544
580
  'totp' => payload['totp'],
545
581
  'default_template_sid' => payload['default_template_sid'],
546
582
  'whatsapp' => payload['whatsapp'],
583
+ 'passkeys' => payload['passkeys'],
547
584
  'verify_event_subscription_enabled' => payload['verify_event_subscription_enabled'],
548
585
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
549
586
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
@@ -657,6 +694,12 @@ module Twilio
657
694
  @properties['whatsapp']
658
695
  end
659
696
 
697
+ ##
698
+ # @return [Hash]
699
+ def passkeys
700
+ @properties['passkeys']
701
+ end
702
+
660
703
  ##
661
704
  # @return [Boolean] Whether to allow verifications from the service to reach the stream-events sinks if configured
662
705
  def verify_event_subscription_enabled
@@ -724,6 +767,12 @@ module Twilio
724
767
  # @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
768
  # @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
769
  # @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.
770
+ # @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.
771
+ # @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.
772
+ # @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 `,`.
773
+ # @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`.
774
+ # @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`.
775
+ # @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`.
727
776
  # @param [Boolean] verify_event_subscription_enabled Whether to allow verifications from the service to reach the stream-events sinks if configured
728
777
  # @return [ServiceInstance] Updated ServiceInstance
729
778
  def update(
@@ -746,6 +795,12 @@ module Twilio
746
795
  default_template_sid: :unset,
747
796
  whatsapp_msg_service_sid: :unset,
748
797
  whatsapp_from: :unset,
798
+ passkeys_relying_party_id: :unset,
799
+ passkeys_relying_party_name: :unset,
800
+ passkeys_relying_party_origins: :unset,
801
+ passkeys_authenticator_attachment: :unset,
802
+ passkeys_discoverable_credentials: :unset,
803
+ passkeys_user_verification: :unset,
749
804
  verify_event_subscription_enabled: :unset
750
805
  )
751
806
 
@@ -769,6 +824,12 @@ module Twilio
769
824
  default_template_sid: default_template_sid,
770
825
  whatsapp_msg_service_sid: whatsapp_msg_service_sid,
771
826
  whatsapp_from: whatsapp_from,
827
+ passkeys_relying_party_id: passkeys_relying_party_id,
828
+ passkeys_relying_party_name: passkeys_relying_party_name,
829
+ passkeys_relying_party_origins: passkeys_relying_party_origins,
830
+ passkeys_authenticator_attachment: passkeys_authenticator_attachment,
831
+ passkeys_discoverable_credentials: passkeys_discoverable_credentials,
832
+ passkeys_user_verification: passkeys_user_verification,
772
833
  verify_event_subscription_enabled: verify_event_subscription_enabled,
773
834
  )
774
835
  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::V1>';
29
+ '<Twilio::REST::Voice>';
35
30
  end
36
31
  end
37
32
  end
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '7.7.0'
2
+ VERSION = '7.7.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilio-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.7.0
4
+ version: 7.7.2
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-07-24 00:00:00.000000000 Z
11
+ date: 2025-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt