stytch 7.1.0 → 7.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3ad4eaf85fcf66b3969d3568488126f9d0d5f77282e454a130aa875753e2046
4
- data.tar.gz: 594aab0fe432b0f5620ec9c62e99d0e5b1f982dfe53d747ed4af36fc90f5fa58
3
+ metadata.gz: 7146e140429bd2244d6cb3fc47a94e545487c92f8a4e7b18216d23c59f47ad25
4
+ data.tar.gz: 548974370b5bcd86c1c54959f5447829742c2547491ab646cf108d769030f745
5
5
  SHA512:
6
- metadata.gz: 34a877bef679e4b601b8debe1e74d60e84034491d398ced07f67d15282ddbe3e86ee740855890d2e3789cbdf1ed72f088933e94e33d4eb11ff89126ab2f40251
7
- data.tar.gz: 3c328b93134b4438a2db4db7030d26eed6b5174ad08465ca1c07d1f5f9d282526ae015d95747a707495fefb8d2304de7de270f7a27fd3854316391c706cb63c7
6
+ metadata.gz: 8de8b7d887ea706d38a81e15288fe87532c0f37df8021f2e36f547438547625a39aeedaea5d6757d7217da68732a71ad70f654f3e906a11b034d74411e3e5f9c
7
+ data.tar.gz: ff1ee0fee78c564b78cadddce1b4fddb3f8e06356e649db35e411db81ac6f7fad00b3177017950a8f0ef1dceff330ae1c91bb0b91838c5e477fc075bbf4183d0
@@ -257,15 +257,15 @@ module StytchB2B
257
257
  # for more information about role assignment.
258
258
  # The type of this field is nilable list of +EmailImplicitRoleAssignment+ (+object+).
259
259
  # mfa_methods::
260
- # The setting that controls which mfa methods can be used by Members of an Organization. The accepted values are:
260
+ # The setting that controls which MFA methods can be used by Members of an Organization. The accepted values are:
261
261
  #
262
262
  # `ALL_ALLOWED` – the default setting which allows all authentication methods to be used.
263
263
  #
264
- # `RESTRICTED` – only methods that comply with `allowed_auth_methods` can be used for authentication. This setting does not apply to Members with `is_breakglass` set to `true`.
264
+ # `RESTRICTED` – only methods that comply with `allowed_mfa_methods` can be used for authentication. This setting does not apply to Members with `is_breakglass` set to `true`.
265
265
  #
266
266
  # The type of this field is nilable +String+.
267
267
  # allowed_mfa_methods::
268
- # An array of allowed mfa authentication methods. This list is enforced when `mfa_methods` is set to `RESTRICTED`.
268
+ # An array of allowed MFA authentication methods. This list is enforced when `mfa_methods` is set to `RESTRICTED`.
269
269
  # The list's accepted values are: `sms_otp` and `totp`.
270
270
  #
271
271
  # The type of this field is nilable list of +String+.
@@ -138,15 +138,15 @@ module StytchB2B
138
138
  # for more information about role assignment.
139
139
  # The type of this field is nilable list of +EmailImplicitRoleAssignment+ (+object+).
140
140
  # mfa_methods::
141
- # The setting that controls which mfa methods can be used by Members of an Organization. The accepted values are:
141
+ # The setting that controls which MFA methods can be used by Members of an Organization. The accepted values are:
142
142
  #
143
143
  # `ALL_ALLOWED` – the default setting which allows all authentication methods to be used.
144
144
  #
145
- # `RESTRICTED` – only methods that comply with `allowed_auth_methods` can be used for authentication. This setting does not apply to Members with `is_breakglass` set to `true`.
145
+ # `RESTRICTED` – only methods that comply with `allowed_mfa_methods` can be used for authentication. This setting does not apply to Members with `is_breakglass` set to `true`.
146
146
  #
147
147
  # The type of this field is nilable +String+.
148
148
  # allowed_mfa_methods::
149
- # An array of allowed mfa authentication methods. This list is enforced when `mfa_methods` is set to `RESTRICTED`.
149
+ # An array of allowed MFA authentication methods. This list is enforced when `mfa_methods` is set to `RESTRICTED`.
150
150
  # The list's accepted values are: `sms_otp` and `totp`.
151
151
  #
152
152
  # The type of this field is nilable list of +String+.
@@ -355,17 +355,17 @@ module StytchB2B
355
355
  # If this field is provided and a session header is passed into the request, the Member Session must have permission to perform the `update.settings.implicit-roles` action on the `stytch.organization` Resource.
356
356
  # The type of this field is nilable list of +String+.
357
357
  # mfa_methods::
358
- # The setting that controls which mfa methods can be used by Members of an Organization. The accepted values are:
358
+ # The setting that controls which MFA methods can be used by Members of an Organization. The accepted values are:
359
359
  #
360
360
  # `ALL_ALLOWED` – the default setting which allows all authentication methods to be used.
361
361
  #
362
- # `RESTRICTED` – only methods that comply with `allowed_auth_methods` can be used for authentication. This setting does not apply to Members with `is_breakglass` set to `true`.
362
+ # `RESTRICTED` – only methods that comply with `allowed_mfa_methods` can be used for authentication. This setting does not apply to Members with `is_breakglass` set to `true`.
363
363
  #
364
364
  #
365
- # If this field is provided and a session header is passed into the request, the Member Session must have permission to perform the `update.settings.allowed-auth-methods` action on the `stytch.organization` Resource.
365
+ # If this field is provided and a session header is passed into the request, the Member Session must have permission to perform the `update.settings.allowed-mfa-methods` action on the `stytch.organization` Resource.
366
366
  # The type of this field is nilable +String+.
367
367
  # allowed_mfa_methods::
368
- # An array of allowed mfa authentication methods. This list is enforced when `mfa_methods` is set to `RESTRICTED`.
368
+ # An array of allowed MFA authentication methods. This list is enforced when `mfa_methods` is set to `RESTRICTED`.
369
369
  # The list's accepted values are: `sms_otp` and `totp`.
370
370
  #
371
371
  #
@@ -550,7 +550,7 @@ module StytchB2B
550
550
  # is_breakglass::
551
551
  # Identifies the Member as a break glass user - someone who has permissions to authenticate into an Organization by bypassing the Organization's settings. A break glass account is typically used for emergency purposes to gain access outside of normal authentication procedures. Refer to the [Organization object](organization-object) and its `auth_methods` and `allowed_auth_methods` fields for more details.
552
552
  #
553
- # If this field is provided and a session header is passed into the request, the Member Session must have permission to perform the `update.info.is-breakglass` action on the `stytch.member` Resource.
553
+ # If this field is provided and a session header is passed into the request, the Member Session must have permission to perform the `update.settings.is-breakglass` action on the `stytch.member` Resource.
554
554
  # The type of this field is nilable +Boolean+.
555
555
  # mfa_phone_number::
556
556
  # Sets the Member's phone number. Throws an error if the Member already has a phone number. To change the Member's phone number, use the [Delete member phone number endpoint](https://stytch.com/docs/b2b/api/delete-member-mfa-phone-number) to delete the Member's existing phone number first.
@@ -18,10 +18,9 @@ module StytchB2B
18
18
 
19
19
  # Get the active RBAC Policy for your current Stytch Project. An RBAC Policy is the canonical document that stores all defined Resources and Roles within your RBAC permissioning model.
20
20
  #
21
- # When using the backend SDKs, the RBAC Policy will automatically be loaded and refreshed in the background to allow for local evaluations, eliminating the need for an extra request to Stytch.
22
- #
23
- # Resources and Roles can be created and managed within the [Dashboard](/dashboard). Additionally, [Role assignment](https://stytch.com/docs/b2b/guides/rbac/role-assignment) can be programmatically managed through certain Stytch API endpoints.
21
+ # When using the backend SDKs, the RBAC Policy will be cached to allow for local evaluations, eliminating the need for an extra request to Stytch. The policy will be refreshed if an authorization check is requested and the RBAC policy was last updated more than 5 minutes ago.
24
22
  #
23
+ # Resources and Roles can be created and managed within the [Dashboard](/dashboard/rbac). Additionally, [Role assignment](https://stytch.com/docs/b2b/guides/rbac/role-assignment) can be programmatically managed through certain Stytch API endpoints.
25
24
  #
26
25
  # Check out the [RBAC overview](https://stytch.com/docs/b2b/guides/rbac/overview) to learn more about Stytch's RBAC permissioning model.
27
26
  #
@@ -36,7 +35,7 @@ module StytchB2B
36
35
  # 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.
37
36
  # The type of this field is +Integer+.
38
37
  # policy::
39
- # The RBAC Policy document that contains all defined Roles and Resources – which are managed in the [Dashboard](/dashboard). Read more about these entities and how they work in our [RBAC overview](https://stytch.com/docs/b2b/guides/rbac/overview).
38
+ # The RBAC Policy document that contains all defined Roles and Resources – which are managed in the [Dashboard](/dashboard/rbac). Read more about these entities and how they work in our [RBAC overview](https://stytch.com/docs/b2b/guides/rbac/overview).
40
39
  # The type of this field is nilable +Policy+ (+object+).
41
40
  def policy
42
41
  headers = {}
@@ -292,6 +292,11 @@ module Stytch
292
292
  # untrusted_metadata::
293
293
  # The `untrusted_metadata` field contains an arbitrary JSON object of application-specific data. Untrusted metadata can be edited by end users directly via the SDK, and **cannot be used to store critical information.** See the [Metadata](https://stytch.com/docs/api/metadata) reference for complete field behavior details.
294
294
  # The type of this field is nilable +object+.
295
+ # set_email_verified::
296
+ # Whether to set the user's email as verified. This is a dangerous field. Incorrect use may lead to users getting erroneously
297
+ # deduplicated into one user object. This flag should only be set if you can attest that the user owns the email address in question.
298
+ # Access to this field is restricted. To enable it, please send us a note at support@stytch.com.
299
+ # The type of this field is nilable +Boolean+.
295
300
  # name::
296
301
  # The name of the user. Each field in the name object is optional.
297
302
  # The type of this field is nilable +Name+ (+object+).
@@ -327,6 +332,7 @@ module Stytch
327
332
  pbkdf_2_config: nil,
328
333
  trusted_metadata: nil,
329
334
  untrusted_metadata: nil,
335
+ set_email_verified: nil,
330
336
  name: nil
331
337
  )
332
338
  headers = {}
@@ -342,6 +348,7 @@ module Stytch
342
348
  request[:pbkdf_2_config] = pbkdf_2_config unless pbkdf_2_config.nil?
343
349
  request[:trusted_metadata] = trusted_metadata unless trusted_metadata.nil?
344
350
  request[:untrusted_metadata] = untrusted_metadata unless untrusted_metadata.nil?
351
+ request[:set_email_verified] = set_email_verified unless set_email_verified.nil?
345
352
  request[:name] = name unless name.nil?
346
353
 
347
354
  post_request('/v1/passwords/migrate', request, headers)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '7.1.0'
4
+ VERSION = '7.2.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: 7.1.0
4
+ version: 7.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - stytch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-23 00:00:00.000000000 Z
11
+ date: 2024-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday