stytch 7.0.0 → 7.0.1

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: 71b6a2f2ae456fe72ab960116272b1d51430fe267a8d1f4d917ef97ccf6bcdc4
4
- data.tar.gz: 03e9769f00c629efc6fbc062ad3bf6176d90d394d7b381110c7bcf10338497f9
3
+ metadata.gz: b5b6f3a220db5b04687a900ac17b0e8f538fb5880a71c390c9ffcef876fd5425
4
+ data.tar.gz: ed5964bfc4b355a239cc8b5214ea6a2e7dd89a980fa923fd62cf9665176bf241
5
5
  SHA512:
6
- metadata.gz: ee454ad14f2c2d64938bc9bb3d7cb05232b58bd935ad2095640f7a5ae04fbb6f4b562e516b81baa3dd864389e20de1a83f9c8cee2299f0ee6e395422d7111453
7
- data.tar.gz: d92587695642d6e4890fb66d8ae0934c01b5aa07bb32d2db1506aadb2fbd570984a0d4ce06d5efb9d6b5382238293d872f399e4390ff60aae3a0605e75934a03
6
+ metadata.gz: ea9dca6572aaed91548265c03bf051237965cc57d7b82d4d0e3df4f4d1a5e9b1232501c983076057d2c38c168c0210f8051b8874e66155734d62772619c7b343
7
+ data.tar.gz: 201db2bb213b9c97614c3392beca947df83ed24c57a229e7dadc635a293d4fd6ebc9c424f5d6156a794e53fa9185d23f7447f9f9c11a9896e5567d0653edc758
@@ -490,11 +490,6 @@ module StytchB2B
490
490
  # member_id::
491
491
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value.
492
492
  # The type of this field is +String+.
493
- # preserve_existing_sessions::
494
- # (Coming Soon) Whether to preserve existing sessions when explicit Roles that are revoked are also implicitly assigned
495
- # by SSO connection or SSO group. Defaults to `false` - that is, existing Member Sessions that contain SSO
496
- # authentication factors with the affected SSO connection IDs will be revoked.
497
- # The type of this field is +Boolean+.
498
493
  # name::
499
494
  # The name of the Member.
500
495
  #
@@ -541,8 +536,13 @@ module StytchB2B
541
536
  # authentication factors with the affected connection ID. You can preserve these sessions by passing in the
542
537
  # `preserve_existing_sessions` parameter with a value of `true`.
543
538
  #
544
- # If this field is provided, the logged-in Member must have permission to perform the `update.settings.roles` action on the `stytch.member` Resource.
539
+ # 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.roles` action on the `stytch.member` Resource.
545
540
  # The type of this field is nilable list of +String+.
541
+ # preserve_existing_sessions::
542
+ # (Coming Soon) Whether to preserve existing sessions when explicit Roles that are revoked are also implicitly assigned
543
+ # by SSO connection or SSO group. Defaults to `false` - that is, existing Member Sessions that contain SSO
544
+ # authentication factors with the affected SSO connection IDs will be revoked.
545
+ # The type of this field is nilable +Boolean+.
546
546
  #
547
547
  # == Returns:
548
548
  # An object with the following fields:
@@ -567,7 +567,6 @@ module StytchB2B
567
567
  def update(
568
568
  organization_id:,
569
569
  member_id:,
570
- preserve_existing_sessions:,
571
570
  name: nil,
572
571
  trusted_metadata: nil,
573
572
  untrusted_metadata: nil,
@@ -575,13 +574,12 @@ module StytchB2B
575
574
  mfa_phone_number: nil,
576
575
  mfa_enrolled: nil,
577
576
  roles: nil,
577
+ preserve_existing_sessions: nil,
578
578
  method_options: nil
579
579
  )
580
580
  headers = {}
581
581
  headers = headers.merge(method_options.to_headers) unless method_options.nil?
582
- request = {
583
- preserve_existing_sessions: preserve_existing_sessions
584
- }
582
+ request = {}
585
583
  request[:name] = name unless name.nil?
586
584
  request[:trusted_metadata] = trusted_metadata unless trusted_metadata.nil?
587
585
  request[:untrusted_metadata] = untrusted_metadata unless untrusted_metadata.nil?
@@ -589,6 +587,7 @@ module StytchB2B
589
587
  request[:mfa_phone_number] = mfa_phone_number unless mfa_phone_number.nil?
590
588
  request[:mfa_enrolled] = mfa_enrolled unless mfa_enrolled.nil?
591
589
  request[:roles] = roles unless roles.nil?
590
+ request[:preserve_existing_sessions] = preserve_existing_sessions unless preserve_existing_sessions.nil?
592
591
 
593
592
  put_request("/v1/b2b/organizations/#{organization_id}/members/#{member_id}", request, headers)
594
593
  end
@@ -102,11 +102,6 @@ module StytchB2B
102
102
  # organization_id::
103
103
  # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value.
104
104
  # The type of this field is +String+.
105
- # preserve_existing_sessions::
106
- # (Coming Soon) Whether to preserve existing sessions when explicit Roles that are revoked are also implicitly assigned
107
- # by SSO connection or SSO group. Defaults to `false` - that is, existing Member Sessions that contain SSO
108
- # authentication factors with the affected SSO connection IDs will be revoked.
109
- # The type of this field is +Boolean+.
110
105
  # md_5_config::
111
106
  # Optional parameters for MD-5 hash types.
112
107
  # The type of this field is nilable +MD5Config+ (+object+).
@@ -143,6 +138,11 @@ module StytchB2B
143
138
  # authentication factors with the affected connection ID. You can preserve these sessions by passing in the
144
139
  # `preserve_existing_sessions` parameter with a value of `true`.
145
140
  # The type of this field is nilable list of +String+.
141
+ # preserve_existing_sessions::
142
+ # (Coming Soon) Whether to preserve existing sessions when explicit Roles that are revoked are also implicitly assigned
143
+ # by SSO connection or SSO group. Defaults to `false` - that is, existing Member Sessions that contain SSO
144
+ # authentication factors with the affected SSO connection IDs will be revoked.
145
+ # The type of this field is nilable +Boolean+.
146
146
  #
147
147
  # == Returns:
148
148
  # An object with the following fields:
@@ -169,7 +169,6 @@ module StytchB2B
169
169
  hash:,
170
170
  hash_type:,
171
171
  organization_id:,
172
- preserve_existing_sessions:,
173
172
  md_5_config: nil,
174
173
  argon_2_config: nil,
175
174
  sha_1_config: nil,
@@ -178,15 +177,15 @@ module StytchB2B
178
177
  name: nil,
179
178
  trusted_metadata: nil,
180
179
  untrusted_metadata: nil,
181
- roles: nil
180
+ roles: nil,
181
+ preserve_existing_sessions: nil
182
182
  )
183
183
  headers = {}
184
184
  request = {
185
185
  email_address: email_address,
186
186
  hash: hash,
187
187
  hash_type: hash_type,
188
- organization_id: organization_id,
189
- preserve_existing_sessions: preserve_existing_sessions
188
+ organization_id: organization_id
190
189
  }
191
190
  request[:md_5_config] = md_5_config unless md_5_config.nil?
192
191
  request[:argon_2_config] = argon_2_config unless argon_2_config.nil?
@@ -197,6 +196,7 @@ module StytchB2B
197
196
  request[:trusted_metadata] = trusted_metadata unless trusted_metadata.nil?
198
197
  request[:untrusted_metadata] = untrusted_metadata unless untrusted_metadata.nil?
199
198
  request[:roles] = roles unless roles.nil?
199
+ request[:preserve_existing_sessions] = preserve_existing_sessions unless preserve_existing_sessions.nil?
200
200
 
201
201
  post_request('/v1/b2b/passwords/migrate', request, headers)
202
202
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '7.0.0'
4
+ VERSION = '7.0.1'
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.0.0
4
+ version: 7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - stytch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-13 00:00:00.000000000 Z
11
+ date: 2023-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday