stytch 10.26.0 → 10.28.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 +4 -4
- data/lib/stytch/b2b_discovery.rb +19 -3
- data/lib/stytch/b2b_magic_links.rb +12 -4
- data/lib/stytch/b2b_oauth.rb +10 -2
- data/lib/stytch/b2b_organizations.rb +41 -25
- data/lib/stytch/b2b_otp.rb +23 -7
- data/lib/stytch/b2b_passwords.rb +43 -11
- data/lib/stytch/b2b_recovery_codes.rb +12 -4
- data/lib/stytch/b2b_scim.rb +8 -8
- data/lib/stytch/b2b_sessions.rb +30 -6
- data/lib/stytch/b2b_sso.rb +19 -11
- data/lib/stytch/b2b_totps.rb +12 -4
- data/lib/stytch/crypto_wallets.rb +9 -1
- data/lib/stytch/magic_links.rb +9 -1
- data/lib/stytch/oauth.rb +9 -1
- data/lib/stytch/otps.rb +9 -1
- data/lib/stytch/passwords.rb +48 -8
- data/lib/stytch/sessions.rb +27 -3
- data/lib/stytch/totps.rb +18 -2
- data/lib/stytch/users.rb +3 -0
- data/lib/stytch/version.rb +1 -1
- data/lib/stytch/webauthn.rb +18 -2
- metadata +2 -2
data/lib/stytch/webauthn.rb
CHANGED
@@ -128,6 +128,9 @@ module Stytch
|
|
128
128
|
#
|
129
129
|
# Custom claims made with reserved claims ("iss", "sub", "aud", "exp", "nbf", "iat", "jti") will be ignored. Total custom claims size cannot exceed four kilobytes.
|
130
130
|
# The type of this field is nilable +object+.
|
131
|
+
# telemetry_id::
|
132
|
+
# If the `telemetry_id` is passed, as part of this request, Stytch will call the [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) and store the associated fingerprints and IPGEO information for the User. Your workspace must be enabled for Device Fingerprinting to use this feature.
|
133
|
+
# The type of this field is nilable +String+.
|
131
134
|
#
|
132
135
|
# == Returns:
|
133
136
|
# An object with the following fields:
|
@@ -158,13 +161,17 @@ module Stytch
|
|
158
161
|
# See [Session object](https://stytch.com/docs/api/session-object) for complete response fields.
|
159
162
|
#
|
160
163
|
# The type of this field is nilable +Session+ (+object+).
|
164
|
+
# user_device::
|
165
|
+
# If a valid `telemetry_id` was passed in the request and the [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) returned results, the `user_device` response field will contain information about the user's device attributes.
|
166
|
+
# The type of this field is nilable +DeviceInfo+ (+object+).
|
161
167
|
def register(
|
162
168
|
user_id:,
|
163
169
|
public_key_credential:,
|
164
170
|
session_token: nil,
|
165
171
|
session_duration_minutes: nil,
|
166
172
|
session_jwt: nil,
|
167
|
-
session_custom_claims: nil
|
173
|
+
session_custom_claims: nil,
|
174
|
+
telemetry_id: nil
|
168
175
|
)
|
169
176
|
headers = {}
|
170
177
|
request = {
|
@@ -175,6 +182,7 @@ module Stytch
|
|
175
182
|
request[:session_duration_minutes] = session_duration_minutes unless session_duration_minutes.nil?
|
176
183
|
request[:session_jwt] = session_jwt unless session_jwt.nil?
|
177
184
|
request[:session_custom_claims] = session_custom_claims unless session_custom_claims.nil?
|
185
|
+
request[:telemetry_id] = telemetry_id unless telemetry_id.nil?
|
178
186
|
|
179
187
|
post_request('/v1/webauthn/register', request, headers)
|
180
188
|
end
|
@@ -258,6 +266,9 @@ module Stytch
|
|
258
266
|
#
|
259
267
|
# Custom claims made with reserved claims ("iss", "sub", "aud", "exp", "nbf", "iat", "jti") will be ignored. Total custom claims size cannot exceed four kilobytes.
|
260
268
|
# The type of this field is nilable +object+.
|
269
|
+
# telemetry_id::
|
270
|
+
# If the `telemetry_id` is passed, as part of this request, Stytch will call the [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) and store the associated fingerprints and IPGEO information for the User. Your workspace must be enabled for Device Fingerprinting to use this feature.
|
271
|
+
# The type of this field is nilable +String+.
|
261
272
|
#
|
262
273
|
# == Returns:
|
263
274
|
# An object with the following fields:
|
@@ -288,12 +299,16 @@ module Stytch
|
|
288
299
|
# See [Session object](https://stytch.com/docs/api/session-object) for complete response fields.
|
289
300
|
#
|
290
301
|
# The type of this field is nilable +Session+ (+object+).
|
302
|
+
# user_device::
|
303
|
+
# If a valid `telemetry_id` was passed in the request and the [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) returned results, the `user_device` response field will contain information about the user's device attributes.
|
304
|
+
# The type of this field is nilable +DeviceInfo+ (+object+).
|
291
305
|
def authenticate(
|
292
306
|
public_key_credential:,
|
293
307
|
session_token: nil,
|
294
308
|
session_duration_minutes: nil,
|
295
309
|
session_jwt: nil,
|
296
|
-
session_custom_claims: nil
|
310
|
+
session_custom_claims: nil,
|
311
|
+
telemetry_id: nil
|
297
312
|
)
|
298
313
|
headers = {}
|
299
314
|
request = {
|
@@ -303,6 +318,7 @@ module Stytch
|
|
303
318
|
request[:session_duration_minutes] = session_duration_minutes unless session_duration_minutes.nil?
|
304
319
|
request[:session_jwt] = session_jwt unless session_jwt.nil?
|
305
320
|
request[:session_custom_claims] = session_custom_claims unless session_custom_claims.nil?
|
321
|
+
request[:telemetry_id] = telemetry_id unless telemetry_id.nil?
|
306
322
|
|
307
323
|
post_request('/v1/webauthn/authenticate', request, headers)
|
308
324
|
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.
|
4
|
+
version: 10.28.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-08-
|
11
|
+
date: 2025-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|