stytch 10.32.0 → 10.33.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: 44adc5cb4f2c228061711f284dea8c827e093a22c550b7522fe84035e79ba4c5
4
- data.tar.gz: 1cc0dc6a2ff8f8e21efba30f05f5df6f951c508bf51106b5962e11a4b6ae7652
3
+ metadata.gz: efe378b88f2edfe0e884c2f1fd2115dfd5fb14b269498ffc8e0277e17e3727ec
4
+ data.tar.gz: dc911527fbc9dc5d555c46edde5863adaa531e3c88db85106d842aae2e67614a
5
5
  SHA512:
6
- metadata.gz: 20a5350eb7aa7c70ef878d92dc6d8d419e44ae04365dbee4f095b986b0058ac87db77aa64ac1daa4c8ef33e29dc48d89f821081e65d4cc6efb68cd9e303942b4
7
- data.tar.gz: af30908b3f5ef363246f799e20fb5ed0da1670ef2bb1e94ba60efd279151570a815df6208e22adc4b7e5a51198c1c627904f8deb4ed802ed5c05f80267c11647
6
+ metadata.gz: b8f53b5387143a4f641a97b979f3ef5119afbfeeb7da6743fcd8b2d0f2e2d514cfd62315f059c791b508fff52a8ba0dc49b21f66eb6e084f62662ce4ae4f80df
7
+ data.tar.gz: d684ee852679293a407d5ad0b86c61f3822af77709c503e367469d3f26dbc8af05cd50f7285eeb0162e1b1c716e1c6b8a783eb7d17a8ff448005ab0762f01b5c
@@ -417,10 +417,9 @@ module StytchB2B
417
417
  # A base64url encoded SHA256 hash of a one time secret used to validate that the request starts and ends on the same device.
418
418
  # The type of this field is nilable +String+.
419
419
  # login_redirect_url::
420
- # The URL that the member clicks from the reset without password link. This URL should be an endpoint in the backend server
421
- # that verifies the request by querying Stytch's authenticate endpoint and finishes the magic link flow. If this value is not passed, the
422
- # default `login_redirect_url` that you set in your Dashboard is used. This value is only used if magic links are enabled for the member. If
423
- # you have not set a default `login_redirect_url` and magic links are not enabled for the member, an error is returned.
420
+ # The URL that Members are redirected to upon clicking the "Log in without password" button in password reset emails.
421
+ #
422
+ # After Members are redirected to the login redirect URL, your application should retrieve the `token` value from the URL parameters and call the [Magic Link Authenticate endpoint](https://stytch.com/docs/api/authenticate-magic-link) to log the Member in without requiring a password reset. If this value is not provided, your project's default login redirect URL will be used. If you have not set a default login redirect URL, an error will be returned.
424
423
  # The type of this field is nilable +String+.
425
424
  # locale::
426
425
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
@@ -423,9 +423,9 @@ module Stytch
423
423
  # Provided attributes to help with fraud detection. These values are pulled and passed into Stytch endpoints by your application.
424
424
  # The type of this field is nilable +Attributes+ (+object+).
425
425
  # login_redirect_url::
426
- # The URL Stytch redirects to after the OAuth flow is completed for a user that already exists. This URL should be a route in your application which will run `oauth.authenticate` (see below) and finish the login.
426
+ # The URL that Users are redirected to upon clicking the "Log in without password" button in password reset emails.
427
427
  #
428
- # The URL must be configured as a Login URL in the [Redirect URL page](https://stytch.com/dashboard/redirect-urls). If the field is not specified, the default Login URL will be used.
428
+ # After Users are redirected to the login redirect URL, your application should retrieve the `token` value from the URL parameters and call the [Magic Link Authenticate endpoint](https://stytch.com/docs/api/authenticate-magic-link) to log the User in without requiring a password reset. If this value is not provided, your project's default login redirect URL will be used. If you have not set a default login redirect URL, an error will be returned.
429
429
  # The type of this field is nilable +String+.
430
430
  # locale::
431
431
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
data/lib/stytch/users.rb CHANGED
@@ -19,10 +19,6 @@ module Stytch
19
19
  # Add a User to Stytch. A `user_id` is returned in the response that can then be used to perform other operations within Stytch. An `email` or a `phone_number` is required.
20
20
  #
21
21
  # == Parameters:
22
- # roles::
23
- # Roles to explicitly assign to this User.
24
- # See the [RBAC guide](https://stytch.com/docs/guides/rbac/role-assignment) for more information about role assignment.
25
- # The type of this field is list of +String+.
26
22
  # email::
27
23
  # The email address of the end user.
28
24
  # The type of this field is nilable +String+.
@@ -51,6 +47,10 @@ module Stytch
51
47
  # external_id::
52
48
  # An identifier that can be used in API calls wherever a user_id is expected. This is a string consisting of alphanumeric, `.`, `_`, `-`, or `|` characters with a maximum length of 128 characters.
53
49
  # The type of this field is nilable +String+.
50
+ # roles::
51
+ # Roles to explicitly assign to this User.
52
+ # See the [RBAC guide](https://stytch.com/docs/guides/rbac/role-assignment) for more information about role assignment.
53
+ # The type of this field is nilable list of +String+.
54
54
  #
55
55
  # == Returns:
56
56
  # An object with the following fields:
@@ -76,7 +76,6 @@ module Stytch
76
76
  # The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.
77
77
  # The type of this field is +Integer+.
78
78
  def create(
79
- roles:,
80
79
  email: nil,
81
80
  name: nil,
82
81
  attributes: nil,
@@ -84,12 +83,11 @@ module Stytch
84
83
  create_user_as_pending: nil,
85
84
  trusted_metadata: nil,
86
85
  untrusted_metadata: nil,
87
- external_id: nil
86
+ external_id: nil,
87
+ roles: nil
88
88
  )
89
89
  headers = {}
90
- request = {
91
- roles: roles
92
- }
90
+ request = {}
93
91
  request[:email] = email unless email.nil?
94
92
  request[:name] = name unless name.nil?
95
93
  request[:attributes] = attributes unless attributes.nil?
@@ -98,6 +96,7 @@ module Stytch
98
96
  request[:trusted_metadata] = trusted_metadata unless trusted_metadata.nil?
99
97
  request[:untrusted_metadata] = untrusted_metadata unless untrusted_metadata.nil?
100
98
  request[:external_id] = external_id unless external_id.nil?
99
+ request[:roles] = roles unless roles.nil?
101
100
 
102
101
  post_request('/v1/users', request, headers)
103
102
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '10.32.0'
4
+ VERSION = '10.33.0'
5
5
  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.32.0
4
+ version: 10.33.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-09-11 00:00:00.000000000 Z
11
+ date: 2025-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday