stytch 10.8.0 → 10.10.0

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
  SHA256:
3
- metadata.gz: 0dfb80803a3696d1a6f3d7118c859a571b42e52eacd550ad0e8f9450caba75e7
4
- data.tar.gz: fb9e341e712dac2eed58d0b99b6281f328aecee8833b3fbd40c62f0b781c65c0
3
+ metadata.gz: f8d7857e384f341a5372ac87a4fc0c2959df0b3c0de8b1a3c0c283ed36381835
4
+ data.tar.gz: 13b70de08926a3687926d251a4369f397b63c4f4b89987d60a730b5ad095ae8b
5
5
  SHA512:
6
- metadata.gz: e97f8ec4d069aa1f39822a2fc2de3ccdaad06e913d80180eb50d24bcfdb116cc61d8b1a5508f3675ef8e3b23ea4abe61391335258e65ed2a0a9701818b8eb673
7
- data.tar.gz: 390ed7e78d764da278cd3c2e1ff1071a7f93be2e3a1d2d0905fbfc27e71ea62b2cb6873a70081897b259bed7c7defb7658c62f495f89bdf3f1ec354657ebad23
6
+ metadata.gz: 4119956260b26f624e3ffd9097ad5c539e17edb9099912e3327ea827492aa101e0a727c131dc3cc36095a1f889a4f1d5d1ad36ebf0b9d6bac86f144ea0a5c0cb
7
+ data.tar.gz: 9408a799a909bd73facc2faa280705a7f887d5c944f12fc13521978210d4eecd95191ce677eae7d264bf69584a53daaf896d8a2665ab248a5bf7e28ef5158918
@@ -406,6 +406,9 @@ module StytchB2B
406
406
  # reset_password_template_id::
407
407
  # Use a custom template for reset password emails. By default, it will use your default email template. The template must be a template using our built-in customizations or a custom HTML email for Magic Links - Reset Password.
408
408
  # The type of this field is nilable +String+.
409
+ # verify_email_template_id::
410
+ # (no documentation yet)
411
+ # The type of this field is nilable +String+.
409
412
  #
410
413
  # == Returns:
411
414
  # An object with the following fields:
@@ -432,7 +435,8 @@ module StytchB2B
432
435
  code_challenge: nil,
433
436
  login_redirect_url: nil,
434
437
  locale: nil,
435
- reset_password_template_id: nil
438
+ reset_password_template_id: nil,
439
+ verify_email_template_id: nil
436
440
  )
437
441
  headers = {}
438
442
  request = {
@@ -445,6 +449,7 @@ module StytchB2B
445
449
  request[:login_redirect_url] = login_redirect_url unless login_redirect_url.nil?
446
450
  request[:locale] = locale unless locale.nil?
447
451
  request[:reset_password_template_id] = reset_password_template_id unless reset_password_template_id.nil?
452
+ request[:verify_email_template_id] = verify_email_template_id unless verify_email_template_id.nil?
448
453
 
449
454
  post_request('/v1/b2b/passwords/email/reset/start', request, headers)
450
455
  end
@@ -984,6 +989,9 @@ module StytchB2B
984
989
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
985
990
  #
986
991
  # The type of this field is nilable +String+.
992
+ # verify_email_template_id::
993
+ # (no documentation yet)
994
+ # The type of this field is nilable +String+.
987
995
  #
988
996
  # == Returns:
989
997
  # An object with the following fields:
@@ -1000,7 +1008,8 @@ module StytchB2B
1000
1008
  reset_password_template_id: nil,
1001
1009
  reset_password_expiration_minutes: nil,
1002
1010
  pkce_code_challenge: nil,
1003
- locale: nil
1011
+ locale: nil,
1012
+ verify_email_template_id: nil
1004
1013
  )
1005
1014
  headers = {}
1006
1015
  request = {
@@ -1012,6 +1021,7 @@ module StytchB2B
1012
1021
  request[:reset_password_expiration_minutes] = reset_password_expiration_minutes unless reset_password_expiration_minutes.nil?
1013
1022
  request[:pkce_code_challenge] = pkce_code_challenge unless pkce_code_challenge.nil?
1014
1023
  request[:locale] = locale unless locale.nil?
1024
+ request[:verify_email_template_id] = verify_email_template_id unless verify_email_template_id.nil?
1015
1025
 
1016
1026
  post_request('/v1/b2b/passwords/discovery/email/reset/start', request, headers)
1017
1027
  end
@@ -300,6 +300,13 @@ module Stytch
300
300
  # name::
301
301
  # The name of the user. Each field in the name object is optional.
302
302
  # The type of this field is nilable +Name+ (+object+).
303
+ # phone_number::
304
+ # The phone number of the user. The phone number should be in E.164 format (i.e. +1XXXXXXXXXX).
305
+ # The type of this field is nilable +String+.
306
+ # set_phone_number_verified::
307
+ # Whether to set the user's phone number as verified. This is a dangerous field. This flag should only be set if you can attest that
308
+ # the user owns the phone number in question. Access to this field is restricted. To enable it, please send us a note at support@stytch.com.
309
+ # The type of this field is nilable +Boolean+.
303
310
  #
304
311
  # == Returns:
305
312
  # An object with the following fields:
@@ -333,7 +340,9 @@ module Stytch
333
340
  trusted_metadata: nil,
334
341
  untrusted_metadata: nil,
335
342
  set_email_verified: nil,
336
- name: nil
343
+ name: nil,
344
+ phone_number: nil,
345
+ set_phone_number_verified: nil
337
346
  )
338
347
  headers = {}
339
348
  request = {
@@ -350,6 +359,8 @@ module Stytch
350
359
  request[:untrusted_metadata] = untrusted_metadata unless untrusted_metadata.nil?
351
360
  request[:set_email_verified] = set_email_verified unless set_email_verified.nil?
352
361
  request[:name] = name unless name.nil?
362
+ request[:phone_number] = phone_number unless phone_number.nil?
363
+ request[:set_phone_number_verified] = set_phone_number_verified unless set_phone_number_verified.nil?
353
364
 
354
365
  post_request('/v1/passwords/migrate', request, headers)
355
366
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '10.8.0'
4
+ VERSION = '10.10.0'
5
5
  end
@@ -334,5 +334,18 @@ module Stytch
334
334
 
335
335
  put_request("/v1/webauthn/#{webauthn_registration_id}", request, headers)
336
336
  end
337
+
338
+ def credentials(
339
+ user_id:,
340
+ domain:
341
+ )
342
+ headers = {}
343
+ query_params = {
344
+ user_id: user_id,
345
+ domain: domain
346
+ }
347
+ request = request_with_query_params('/v1/webauthn/credentials', query_params)
348
+ get_request(request, headers)
349
+ end
337
350
  end
338
351
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stytch
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.8.0
4
+ version: 10.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - stytch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-17 00:00:00.000000000 Z
11
+ date: 2025-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday