stytch 10.30.1 → 10.31.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: cbb8ef39159c0698c7d2286384ad6bb183cc9a5a34f9b356b3de0755b33f492f
4
- data.tar.gz: d8f0721f14dcc3c3f6a5c25fc538dfa9f497cf8821f22fde0b89884faa9b5f40
3
+ metadata.gz: 9753425f7355dbf37f05429ce0021fc1f37c1baeae6edca9429a96ab4cf82a6b
4
+ data.tar.gz: f18c45c860822a153d9dec6a21624b1e7920498bcc8eeed98dee3c6db67ad486
5
5
  SHA512:
6
- metadata.gz: 4b1e7017b265a87fd699db4fda1ea72541f4997568bd437eb6b3651241fc76893225ebd43384f1334bd904c805bbe01d621fd1bd13519e986a5b306cf5272ae1
7
- data.tar.gz: f4c4316efe87ecc62d55369739718705b8453d7e6e9c95d80d9bab3f15e2131156e7f09f50cad1415b3eec485942b41f17babad545b27cd9cece1da13803ee85
6
+ metadata.gz: 599ee1af48e77e3418883a5a27f0ea455e69d45be9fbac0aafa4f3fe0265ef8c02b9d03ba3e386c03e8cac05176973e2e6521e363a1ab3486ff3a47cabc7b81e
7
+ data.tar.gz: a6cd4acd671606c41ecb47b0d7ddde83e13d5bb423e08ad6f819756fb41209566997bb22213f4a537e5f921514ea68021c8d1cb375adcb385d7047ac3edf77eb
@@ -678,6 +678,9 @@ module StytchB2B
678
678
  # saml_encryption_private_key::
679
679
  # A PKCS1 format RSA private key used to decrypt encrypted SAML assertions. Only PKCS1 format (starting with "-----BEGIN RSA PRIVATE KEY-----") is supported.
680
680
  # The type of this field is nilable +String+.
681
+ # allow_gateway_callback::
682
+ # (no documentation yet)
683
+ # The type of this field is nilable +Boolean+.
681
684
  #
682
685
  # == Returns:
683
686
  # An object with the following fields:
@@ -710,6 +713,7 @@ module StytchB2B
710
713
  alternative_acs_url: nil,
711
714
  idp_initiated_auth_disabled: nil,
712
715
  saml_encryption_private_key: nil,
716
+ allow_gateway_callback: nil,
713
717
  method_options: nil
714
718
  )
715
719
  headers = {}
@@ -729,6 +733,7 @@ module StytchB2B
729
733
  request[:alternative_acs_url] = alternative_acs_url unless alternative_acs_url.nil?
730
734
  request[:idp_initiated_auth_disabled] = idp_initiated_auth_disabled unless idp_initiated_auth_disabled.nil?
731
735
  request[:saml_encryption_private_key] = saml_encryption_private_key unless saml_encryption_private_key.nil?
736
+ request[:allow_gateway_callback] = allow_gateway_callback unless allow_gateway_callback.nil?
732
737
 
733
738
  put_request("/v1/b2b/sso/saml/#{organization_id}/connections/#{connection_id}", request, headers)
734
739
  end
data/lib/stytch/users.rb CHANGED
@@ -19,6 +19,10 @@ module Stytch
19
19
  # Add a User to Stytch. A `user_id` is returned in the response that can then be used to perform other operations within Stytch. An `email` or a `phone_number` is required.
20
20
  #
21
21
  # == Parameters:
22
+ # roles::
23
+ # Roles to explicitly assign to this User.
24
+ # See the [RBAC guide](https://stytch.com/docs/guides/rbac/role-assignment) for more information about role assignment.
25
+ # The type of this field is list of +String+.
22
26
  # email::
23
27
  # The email address of the end user.
24
28
  # The type of this field is nilable +String+.
@@ -72,6 +76,7 @@ module Stytch
72
76
  # 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.
73
77
  # The type of this field is +Integer+.
74
78
  def create(
79
+ roles:,
75
80
  email: nil,
76
81
  name: nil,
77
82
  attributes: nil,
@@ -82,7 +87,9 @@ module Stytch
82
87
  external_id: nil
83
88
  )
84
89
  headers = {}
85
- request = {}
90
+ request = {
91
+ roles: roles
92
+ }
86
93
  request[:email] = email unless email.nil?
87
94
  request[:name] = name unless name.nil?
88
95
  request[:attributes] = attributes unless attributes.nil?
@@ -137,6 +144,10 @@ module Stytch
137
144
  # is_locked::
138
145
  # (no documentation yet)
139
146
  # The type of this field is +Boolean+.
147
+ # roles::
148
+ # Roles assigned to this User.
149
+ # See the [RBAC guide](https://stytch.com/docs/guides/rbac/role-assignment) for more information about role assignment.
150
+ # The type of this field is list of +String+.
140
151
  # status_code::
141
152
  # 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.
142
153
  # The type of this field is +Integer+.
@@ -248,6 +259,10 @@ module Stytch
248
259
  # external_id::
249
260
  # 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.
250
261
  # The type of this field is nilable +String+.
262
+ # roles::
263
+ # Roles to explicitly assign to this User.
264
+ # See the [RBAC guide](https://stytch.com/docs/guides/rbac/role-assignment) for more information about role assignment.
265
+ # The type of this field is nilable list of +String+.
251
266
  #
252
267
  # == Returns:
253
268
  # An object with the following fields:
@@ -278,7 +293,8 @@ module Stytch
278
293
  attributes: nil,
279
294
  trusted_metadata: nil,
280
295
  untrusted_metadata: nil,
281
- external_id: nil
296
+ external_id: nil,
297
+ roles: nil
282
298
  )
283
299
  headers = {}
284
300
  request = {}
@@ -287,6 +303,7 @@ module Stytch
287
303
  request[:trusted_metadata] = trusted_metadata unless trusted_metadata.nil?
288
304
  request[:untrusted_metadata] = untrusted_metadata unless untrusted_metadata.nil?
289
305
  request[:external_id] = external_id unless external_id.nil?
306
+ request[:roles] = roles unless roles.nil?
290
307
 
291
308
  put_request("/v1/users/#{user_id}", request, headers)
292
309
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '10.30.1'
4
+ VERSION = '10.31.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stytch
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.30.1
4
+ version: 10.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - stytch