stytch 10.31.0 → 10.32.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: 9753425f7355dbf37f05429ce0021fc1f37c1baeae6edca9429a96ab4cf82a6b
4
- data.tar.gz: f18c45c860822a153d9dec6a21624b1e7920498bcc8eeed98dee3c6db67ad486
3
+ metadata.gz: 44adc5cb4f2c228061711f284dea8c827e093a22c550b7522fe84035e79ba4c5
4
+ data.tar.gz: 1cc0dc6a2ff8f8e21efba30f05f5df6f951c508bf51106b5962e11a4b6ae7652
5
5
  SHA512:
6
- metadata.gz: 599ee1af48e77e3418883a5a27f0ea455e69d45be9fbac0aafa4f3fe0265ef8c02b9d03ba3e386c03e8cac05176973e2e6521e363a1ab3486ff3a47cabc7b81e
7
- data.tar.gz: a6cd4acd671606c41ecb47b0d7ddde83e13d5bb423e08ad6f819756fb41209566997bb22213f4a537e5f921514ea68021c8d1cb375adcb385d7047ac3edf77eb
6
+ metadata.gz: 20a5350eb7aa7c70ef878d92dc6d8d419e44ae04365dbee4f095b986b0058ac87db77aa64ac1daa4c8ef33e29dc48d89f821081e65d4cc6efb68cd9e303942b4
7
+ data.tar.gz: af30908b3f5ef363246f799e20fb5ed0da1670ef2bb1e94ba60efd279151570a815df6208e22adc4b7e5a51198c1c627904f8deb4ed802ed5c05f80267c11647
@@ -21,6 +21,7 @@ require_relative 'b2b_sessions'
21
21
  require_relative 'b2b_sso'
22
22
  require_relative 'b2b_totps'
23
23
  require_relative 'connected_apps'
24
+ require_relative 'debug'
24
25
  require_relative 'fraud'
25
26
  require_relative 'm2m'
26
27
  require_relative 'project'
@@ -30,7 +31,7 @@ module StytchB2B
30
31
  class Client
31
32
  ENVIRONMENTS = %i[live test].freeze
32
33
 
33
- attr_reader :connected_app, :discovery, :fraud, :idp, :impersonation, :m2m, :magic_links, :oauth, :otps, :organizations, :passwords, :project, :rbac, :recovery_codes, :scim, :sso, :sessions, :totps
34
+ attr_reader :connected_app, :debug, :discovery, :fraud, :idp, :impersonation, :m2m, :magic_links, :oauth, :otps, :organizations, :passwords, :project, :rbac, :recovery_codes, :scim, :sso, :sessions, :totps
34
35
 
35
36
  def initialize(project_id:, secret:, env: nil, fraud_env: nil, &block)
36
37
  @api_host = api_host(env, project_id)
@@ -45,6 +46,7 @@ module StytchB2B
45
46
  @policy_cache = Stytch::PolicyCache.new(rbac_client: rbac)
46
47
 
47
48
  @connected_app = Stytch::ConnectedApp.new(@connection)
49
+ @debug = Stytch::Debug.new(@connection)
48
50
  @discovery = StytchB2B::Discovery.new(@connection)
49
51
  @fraud = Stytch::Fraud.new(@fraud_connection)
50
52
  @idp = StytchB2B::IDP.new(@connection, @project_id, @policy_cache)
data/lib/stytch/client.rb CHANGED
@@ -8,6 +8,7 @@
8
8
 
9
9
  require_relative 'connected_apps'
10
10
  require_relative 'crypto_wallets'
11
+ require_relative 'debug'
11
12
  require_relative 'fraud'
12
13
  require_relative 'idp'
13
14
  require_relative 'impersonation'
@@ -28,7 +29,7 @@ module Stytch
28
29
  class Client
29
30
  ENVIRONMENTS = %i[live test].freeze
30
31
 
31
- attr_reader :connected_app, :crypto_wallets, :fraud, :idp, :impersonation, :m2m, :magic_links, :oauth, :otps, :passwords, :project, :rbac, :sessions, :totps, :users, :webauthn
32
+ attr_reader :connected_app, :crypto_wallets, :debug, :fraud, :idp, :impersonation, :m2m, :magic_links, :oauth, :otps, :passwords, :project, :rbac, :sessions, :totps, :users, :webauthn
32
33
 
33
34
  def initialize(project_id:, secret:, env: nil, fraud_env: nil, &block)
34
35
  @api_host = api_host(env, project_id)
@@ -44,6 +45,7 @@ module Stytch
44
45
 
45
46
  @connected_app = Stytch::ConnectedApp.new(@connection)
46
47
  @crypto_wallets = Stytch::CryptoWallets.new(@connection)
48
+ @debug = Stytch::Debug.new(@connection)
47
49
  @fraud = Stytch::Fraud.new(@fraud_connection)
48
50
  @idp = Stytch::IDP.new(@connection, @project_id, @policy_cache)
49
51
  @impersonation = Stytch::Impersonation.new(@connection)
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ # !!!
4
+ # WARNING: This file is autogenerated
5
+ # Only modify code within MANUAL() sections
6
+ # or your changes may be overwritten later!
7
+ # !!!
8
+
9
+ require_relative 'request_helper'
10
+
11
+ module Stytch
12
+ class Debug
13
+ include Stytch::RequestHelper
14
+
15
+ def initialize(connection)
16
+ @connection = connection
17
+ end
18
+
19
+ def whoami
20
+ headers = {}
21
+ query_params = {}
22
+ request = request_with_query_params('/v1/debug/whoami', query_params)
23
+ get_request(request, headers)
24
+ end
25
+ end
26
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '10.31.0'
4
+ VERSION = '10.32.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.31.0
4
+ version: 10.32.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-09-10 00:00:00.000000000 Z
11
+ date: 2025-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -142,6 +142,7 @@ files:
142
142
  - lib/stytch/client.rb
143
143
  - lib/stytch/connected_apps.rb
144
144
  - lib/stytch/crypto_wallets.rb
145
+ - lib/stytch/debug.rb
145
146
  - lib/stytch/errors.rb
146
147
  - lib/stytch/fraud.rb
147
148
  - lib/stytch/idp.rb