stytch 10.20.0 → 10.21.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_organizations.rb +36 -8
- data/lib/stytch/b2b_passwords.rb +2 -2
- data/lib/stytch/fraud.rb +79 -1
- data/lib/stytch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92655a5f974bb3fc56399b60d2ce6e3689dc00fab9ec6a13e61144960937f8b0
|
4
|
+
data.tar.gz: bca0fc61a0cbbc0b357bd044b2ef52f87e82ecc5c542dd7637f1d64fa5e1ffdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f770d5d5fe2d5d62780fc80ec0328801ad1cd00a45772c56d0b881b7c4c3291002bbfa84a1d21a332518483da7068a6ca21655c48ebe304aea999be46e3bd5d
|
7
|
+
data.tar.gz: 4cbfab64433fbc29c3b5256387f74e7de8ab05fe9427c11ab510b7415d1c164eaf1e52e1a62561de76b41122f198e8701e8a6a6c36c6043ea6f555184d4b6ffa
|
@@ -203,16 +203,30 @@ module StytchB2B
|
|
203
203
|
# A list of email domains that are claimed by the Organization.
|
204
204
|
# The type of this field is nilable list of +String+.
|
205
205
|
# first_party_connected_apps_allowed_type::
|
206
|
-
#
|
206
|
+
# The authentication setting that sets the Organization's policy towards first party Connected Apps. The accepted values are:
|
207
|
+
#
|
208
|
+
# `ALL_ALLOWED` – any first party Connected App in the Project is permitted for use by Members.
|
209
|
+
#
|
210
|
+
# `RESTRICTED` – only first party Connected Apps with IDs in `allowed_first_party_connected_apps` can be used by Members.
|
211
|
+
#
|
212
|
+
# `NOT_ALLOWED` – no first party Connected Apps are permitted.
|
213
|
+
#
|
207
214
|
# The type of this field is nilable +CreateRequestFirstPartyConnectedAppsAllowedType+ (string enum).
|
208
215
|
# allowed_first_party_connected_apps::
|
209
|
-
#
|
216
|
+
# An array of first party Connected App IDs that are allowed for the Organization. Only used when the Organization's `first_party_connected_apps_allowed_type` is `RESTRICTED`.
|
210
217
|
# The type of this field is nilable list of +String+.
|
211
218
|
# third_party_connected_apps_allowed_type::
|
212
|
-
#
|
219
|
+
# The authentication setting that sets the Organization's policy towards third party Connected Apps. The accepted values are:
|
220
|
+
#
|
221
|
+
# `ALL_ALLOWED` – any third party Connected App in the Project is permitted for use by Members.
|
222
|
+
#
|
223
|
+
# `RESTRICTED` – only third party Connected Apps with IDs in `allowed_first_party_connected_apps` can be used by Members.
|
224
|
+
#
|
225
|
+
# `NOT_ALLOWED` – no third party Connected Apps are permitted.
|
226
|
+
#
|
213
227
|
# The type of this field is nilable +CreateRequestThirdPartyConnectedAppsAllowedType+ (string enum).
|
214
228
|
# allowed_third_party_connected_apps::
|
215
|
-
#
|
229
|
+
# An array of third party Connected App IDs that are allowed for the Organization. Only used when the Organization's `third_party_connected_apps_allowed_type` is `RESTRICTED`.
|
216
230
|
# The type of this field is nilable list of +String+.
|
217
231
|
#
|
218
232
|
# == Returns:
|
@@ -456,16 +470,30 @@ module StytchB2B
|
|
456
470
|
# A list of email domains that are claimed by the Organization.
|
457
471
|
# The type of this field is nilable list of +String+.
|
458
472
|
# first_party_connected_apps_allowed_type::
|
459
|
-
#
|
473
|
+
# The authentication setting that sets the Organization's policy towards first party Connected Apps. The accepted values are:
|
474
|
+
#
|
475
|
+
# `ALL_ALLOWED` – any first party Connected App in the Project is permitted for use by Members.
|
476
|
+
#
|
477
|
+
# `RESTRICTED` – only first party Connected Apps with IDs in `allowed_first_party_connected_apps` can be used by Members.
|
478
|
+
#
|
479
|
+
# `NOT_ALLOWED` – no first party Connected Apps are permitted.
|
480
|
+
#
|
460
481
|
# The type of this field is nilable +UpdateRequestFirstPartyConnectedAppsAllowedType+ (string enum).
|
461
482
|
# allowed_first_party_connected_apps::
|
462
|
-
#
|
483
|
+
# An array of first party Connected App IDs that are allowed for the Organization. Only used when the Organization's `first_party_connected_apps_allowed_type` is `RESTRICTED`.
|
463
484
|
# The type of this field is nilable list of +String+.
|
464
485
|
# third_party_connected_apps_allowed_type::
|
465
|
-
#
|
486
|
+
# The authentication setting that sets the Organization's policy towards third party Connected Apps. The accepted values are:
|
487
|
+
#
|
488
|
+
# `ALL_ALLOWED` – any third party Connected App in the Project is permitted for use by Members.
|
489
|
+
#
|
490
|
+
# `RESTRICTED` – only third party Connected Apps with IDs in `allowed_first_party_connected_apps` can be used by Members.
|
491
|
+
#
|
492
|
+
# `NOT_ALLOWED` – no third party Connected Apps are permitted.
|
493
|
+
#
|
466
494
|
# The type of this field is nilable +UpdateRequestThirdPartyConnectedAppsAllowedType+ (string enum).
|
467
495
|
# allowed_third_party_connected_apps::
|
468
|
-
#
|
496
|
+
# An array of third party Connected App IDs that are allowed for the Organization. Only used when the Organization's `third_party_connected_apps_allowed_type` is `RESTRICTED`.
|
469
497
|
# The type of this field is nilable list of +String+.
|
470
498
|
#
|
471
499
|
# == Returns:
|
data/lib/stytch/b2b_passwords.rb
CHANGED
@@ -392,7 +392,7 @@ module StytchB2B
|
|
392
392
|
# If you have not set a default `reset_password_redirect_url`, an error is returned.
|
393
393
|
# The type of this field is nilable +String+.
|
394
394
|
# reset_password_expiration_minutes::
|
395
|
-
# Sets a time limit after which the email link to reset the member's password will no longer be valid.
|
395
|
+
# Sets a time limit after which the email link to reset the member's password will no longer be valid. The minimum allowed expiration is 5 minutes and the maximum is 10080 minutes (7 days). By default, the expiration is 30 minutes.
|
396
396
|
# The type of this field is nilable +Integer+.
|
397
397
|
# code_challenge::
|
398
398
|
# A base64url encoded SHA256 hash of a one time secret used to validate that the request starts and ends on the same device.
|
@@ -991,7 +991,7 @@ module StytchB2B
|
|
991
991
|
# 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 Passwords - Reset Password.
|
992
992
|
# The type of this field is nilable +String+.
|
993
993
|
# reset_password_expiration_minutes::
|
994
|
-
# Sets a time limit after which the email link to reset the member's password will no longer be valid.
|
994
|
+
# Sets a time limit after which the email link to reset the member's password will no longer be valid. The minimum allowed expiration is 5 minutes and the maximum is 10080 minutes (7 days). By default, the expiration is 30 minutes.
|
995
995
|
# The type of this field is nilable +Integer+.
|
996
996
|
# pkce_code_challenge::
|
997
997
|
# (no documentation yet)
|
data/lib/stytch/fraud.rb
CHANGED
@@ -11,13 +11,14 @@ require_relative 'request_helper'
|
|
11
11
|
module Stytch
|
12
12
|
class Fraud
|
13
13
|
include Stytch::RequestHelper
|
14
|
-
attr_reader :fingerprint, :rules
|
14
|
+
attr_reader :fingerprint, :rules, :verdict_reasons
|
15
15
|
|
16
16
|
def initialize(connection)
|
17
17
|
@connection = connection
|
18
18
|
|
19
19
|
@fingerprint = Stytch::Fraud::Fingerprint.new(@connection)
|
20
20
|
@rules = Stytch::Fraud::Rules.new(@connection)
|
21
|
+
@verdict_reasons = Stytch::Fraud::VerdictReasons.new(@connection)
|
21
22
|
end
|
22
23
|
|
23
24
|
class Fingerprint
|
@@ -252,5 +253,82 @@ module Stytch
|
|
252
253
|
post_request('/v1/rules/list', request, headers)
|
253
254
|
end
|
254
255
|
end
|
256
|
+
|
257
|
+
class VerdictReasons
|
258
|
+
include Stytch::RequestHelper
|
259
|
+
|
260
|
+
def initialize(connection)
|
261
|
+
@connection = connection
|
262
|
+
end
|
263
|
+
|
264
|
+
# Use this endpoint to override the action returned for a specific verdict reason during a fingerprint lookup. For example, Stytch Device Fingerprinting returns a `CHALLENGE` verdict action by default for the verdict reason `VIRTUAL_MACHINE`. You can use this endpoint to override that reason to return an `ALLOW` verdict instead if you expect many legitimate users to be using a browser that runs in a virtual machine.
|
265
|
+
#
|
266
|
+
# == Parameters:
|
267
|
+
# verdict_reason::
|
268
|
+
# The verdict reason that you wish to override. For a list of possible reasons to override, see [Warning Flags (Verdict Reasons)](https://stytch.com/docs/docs/fraud/guides/device-fingerprinting/reference/warning-flags-verdict-reasons). You may not override the `RULE_MATCH` reason.
|
269
|
+
# The type of this field is +String+.
|
270
|
+
# override_action::
|
271
|
+
# The action that you want to be returned for the specified verdict reason. The override action must be one of `ALLOW`, `BLOCK`, or `CHALLENGE`.
|
272
|
+
# The type of this field is +OverrideRequestAction+ (string enum).
|
273
|
+
# override_description::
|
274
|
+
# An optional description for the verdict reason override.
|
275
|
+
# The type of this field is nilable +String+.
|
276
|
+
#
|
277
|
+
# == Returns:
|
278
|
+
# An object with the following fields:
|
279
|
+
# request_id::
|
280
|
+
# Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we may ask for this value to help identify a specific API call when helping you debug an issue.
|
281
|
+
# The type of this field is +String+.
|
282
|
+
# verdict_reason_action::
|
283
|
+
# Information about the verdict reason override that was just set.
|
284
|
+
# The type of this field is +VerdictReasonAction+ (+object+).
|
285
|
+
# status_code::
|
286
|
+
# 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.
|
287
|
+
# The type of this field is +Integer+.
|
288
|
+
def override(
|
289
|
+
verdict_reason:,
|
290
|
+
override_action:,
|
291
|
+
override_description: nil
|
292
|
+
)
|
293
|
+
headers = {}
|
294
|
+
request = {
|
295
|
+
verdict_reason: verdict_reason,
|
296
|
+
override_action: override_action
|
297
|
+
}
|
298
|
+
request[:override_description] = override_description unless override_description.nil?
|
299
|
+
|
300
|
+
post_request('/v1/verdict_reasons/override', request, headers)
|
301
|
+
end
|
302
|
+
|
303
|
+
# Get the list of verdict reasons returned by the Stytch Device Fingerprinting product along with their default actions and any overrides you may have defined. This is not an exhaustive list of verdict reasons, but it contains all verdict reasons that you may set an override on.
|
304
|
+
#
|
305
|
+
# For a full list of possible verdict reasons, see [Warning Flags (Verdict Reasons)](https://stytch.com/docs/docs/fraud/guides/device-fingerprinting/reference/warning-flags-verdict-reasons).
|
306
|
+
#
|
307
|
+
# == Parameters:
|
308
|
+
# overrides_only::
|
309
|
+
# Whether to return only verdict reasons that have overrides set. Defaults to false.
|
310
|
+
# The type of this field is nilable +Boolean+.
|
311
|
+
#
|
312
|
+
# == Returns:
|
313
|
+
# An object with the following fields:
|
314
|
+
# request_id::
|
315
|
+
# Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we may ask for this value to help identify a specific API call when helping you debug an issue.
|
316
|
+
# The type of this field is +String+.
|
317
|
+
# verdict_reason_actions::
|
318
|
+
# Information about verdict reasons and any overrides that were set on them.
|
319
|
+
# The type of this field is list of +VerdictReasonAction+ (+object+).
|
320
|
+
# status_code::
|
321
|
+
# 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.
|
322
|
+
# The type of this field is +Integer+.
|
323
|
+
def list(
|
324
|
+
overrides_only: nil
|
325
|
+
)
|
326
|
+
headers = {}
|
327
|
+
request = {}
|
328
|
+
request[:overrides_only] = overrides_only unless overrides_only.nil?
|
329
|
+
|
330
|
+
post_request('/v1/verdict_reasons/list', request, headers)
|
331
|
+
end
|
332
|
+
end
|
255
333
|
end
|
256
334
|
end
|
data/lib/stytch/version.rb
CHANGED
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.21.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-06-
|
11
|
+
date: 2025-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|