stytch 10.11.1 → 10.12.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: f8813da25b767802037b6606d40b3162d7f9662056b568ae7045085351f79c7c
4
- data.tar.gz: 7f06f0905ac8a3fb31ed38f418a082dcea9ff83272bf9bdb51583ecfb2b611c6
3
+ metadata.gz: bf56b5f84215fe5c357877d73fcd3b69eb84c10486c5db48b61df77a36e5f933
4
+ data.tar.gz: 28e17420434a5ddc840ac9e74b4297dcb1172a3c792348b0e9433ccfd6c2f2a9
5
5
  SHA512:
6
- metadata.gz: 49c847a6c8de5d9d2daf9aa9cbed4a3883a334243518938272fe80cc437f97e7996b75f374edffd0b494070ebfacbe9ee5414c75941648cee818cbd825d165a1
7
- data.tar.gz: 96f1d4f126272781a76e7172f48b9884332ade3f99d718111a9b85043be5756261d4338687b610d74f673a2d698505d83049347cceb7df99dbd5c70dbc91a820
6
+ metadata.gz: 9a0ccf2a56a4309265418258a142aed473078ad68d20847d02aa5c74b93403c60534d95047b2686b3d13bfa0851897c081bbac51971ddb4dc48ad89ebaf7cbb0
7
+ data.tar.gz: 86c9ad1d1d1720dee6690d7c21d46b240a60c803138bfa57e4835de681078dcd31f13afc492543dea0c9879d0ed1c7c7693900aa0d69066062e567e227566fae
@@ -792,6 +792,9 @@ module StytchB2B
792
792
  #
793
793
  # 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.email` action on the `stytch.member` Resource. Members cannot update their own email address.
794
794
  # The type of this field is nilable +String+.
795
+ # external_id::
796
+ # An identifier that can be used in API calls wherever a member_id is expected. This is a string consisting of alphanumeric, `.`, `_`, or `-` characters with a maximum length of 128 characters. External IDs must be unique within an organization, but may be reused across different organizations in the same project.
797
+ # The type of this field is nilable +String+.
795
798
  #
796
799
  # == Returns:
797
800
  # An object with the following fields:
@@ -826,6 +829,7 @@ module StytchB2B
826
829
  preserve_existing_sessions: nil,
827
830
  default_mfa_method: nil,
828
831
  email_address: nil,
832
+ external_id: nil,
829
833
  method_options: nil
830
834
  )
831
835
  headers = {}
@@ -841,6 +845,7 @@ module StytchB2B
841
845
  request[:preserve_existing_sessions] = preserve_existing_sessions unless preserve_existing_sessions.nil?
842
846
  request[:default_mfa_method] = default_mfa_method unless default_mfa_method.nil?
843
847
  request[:email_address] = email_address unless email_address.nil?
848
+ request[:external_id] = external_id unless external_id.nil?
844
849
 
845
850
  put_request("/v1/b2b/organizations/#{organization_id}/members/#{member_id}", request, headers)
846
851
  end
data/lib/stytch/fraud.rb CHANGED
@@ -148,7 +148,7 @@ module Stytch
148
148
  # 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.
149
149
  # The type of this field is +String+.
150
150
  # action::
151
- # The action that will be returned for the specified fingerprint or ID.
151
+ # The action that will be returned for the specified identifier.
152
152
  # The type of this field is +RuleAction+ (string enum).
153
153
  # status_code::
154
154
  # 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.
data/lib/stytch/users.rb CHANGED
@@ -147,6 +147,9 @@ module Stytch
147
147
  # untrusted_metadata::
148
148
  # 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.
149
149
  # The type of this field is nilable +object+.
150
+ # external_id::
151
+ # (no documentation yet)
152
+ # The type of this field is nilable +String+.
150
153
  def get(
151
154
  user_id:
152
155
  )
@@ -225,6 +228,9 @@ module Stytch
225
228
  # untrusted_metadata::
226
229
  # 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.
227
230
  # The type of this field is nilable +object+.
231
+ # external_id::
232
+ # 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. External IDs must be unique within an organization, but may be reused across different organizations in the same project.
233
+ # The type of this field is nilable +String+.
228
234
  #
229
235
  # == Returns:
230
236
  # An object with the following fields:
@@ -254,7 +260,8 @@ module Stytch
254
260
  name: nil,
255
261
  attributes: nil,
256
262
  trusted_metadata: nil,
257
- untrusted_metadata: nil
263
+ untrusted_metadata: nil,
264
+ external_id: nil
258
265
  )
259
266
  headers = {}
260
267
  request = {}
@@ -262,6 +269,7 @@ module Stytch
262
269
  request[:attributes] = attributes unless attributes.nil?
263
270
  request[:trusted_metadata] = trusted_metadata unless trusted_metadata.nil?
264
271
  request[:untrusted_metadata] = untrusted_metadata unless untrusted_metadata.nil?
272
+ request[:external_id] = external_id unless external_id.nil?
265
273
 
266
274
  put_request("/v1/users/#{user_id}", request, headers)
267
275
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '10.11.1'
4
+ VERSION = '10.12.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.11.1
4
+ version: 10.12.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-03-31 00:00:00.000000000 Z
11
+ date: 2025-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday