stytch 10.12.0 → 10.13.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 +4 -4
- data/lib/stytch/b2b_oauth.rb +3 -0
- data/lib/stytch/b2b_organizations.rb +5 -0
- data/lib/stytch/b2b_passwords.rb +12 -5
- data/lib/stytch/passwords.rb +6 -1
- data/lib/stytch/users.rb +6 -1
- data/lib/stytch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f42067344609f05614a791857f6483761c11ac60e7d97a2b7e26b9710f3c85b
|
4
|
+
data.tar.gz: 8a2a1627bc56f8a7c64923ac96684e09fb18e44d2c054165db45ff386ef33fda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 664e0ed90b2ba4d7dbfde9ca507d1c2c0897525065a464423088a801d9918d330783334d8e24ca2f5e097e5b562e6d929c0020e67de808163fe3bf504a33a9ff
|
7
|
+
data.tar.gz: 242470dc150145878d90fdf3bd660d8d4c1b8bd732c7a64c1a5130a67a13d67f848567bb0803d091a04c6dceca04431e26a182e8f45dcf4c8ea852663a65ef64
|
data/lib/stytch/b2b_oauth.rb
CHANGED
@@ -222,6 +222,9 @@ module StytchB2B
|
|
222
222
|
# provider_tenant_ids::
|
223
223
|
# All tenant IDs returned by the OAuth provider. These is typically used to identify organizations or groups within the provider's domain. For example, in HubSpot this is a Hub ID, in Slack this is the Workspace ID, and in GitHub this is an organization ID. Some OAuth providers do not return tenant IDs, some providers are guaranteed to return one, and some may return multiple. This field will always be populated if at least one tenant ID was returned from the OAuth provider and developers should prefer this field over `provider_tenant_id`.
|
224
224
|
# The type of this field is list of +String+.
|
225
|
+
# full_name::
|
226
|
+
# The full name of the authenticated end user, if available.
|
227
|
+
# The type of this field is +String+.
|
225
228
|
# status_code::
|
226
229
|
# 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.
|
227
230
|
# The type of this field is +Integer+.
|
@@ -1295,6 +1295,9 @@ module StytchB2B
|
|
1295
1295
|
# Roles to explicitly assign to this Member. See the [RBAC guide](https://stytch.com/docs/b2b/guides/rbac/role-assignment)
|
1296
1296
|
# for more information about role assignment.
|
1297
1297
|
# The type of this field is nilable list of +String+.
|
1298
|
+
# external_id::
|
1299
|
+
# 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.
|
1300
|
+
# The type of this field is nilable +String+.
|
1298
1301
|
#
|
1299
1302
|
# == Returns:
|
1300
1303
|
# An object with the following fields:
|
@@ -1327,6 +1330,7 @@ module StytchB2B
|
|
1327
1330
|
mfa_phone_number: nil,
|
1328
1331
|
mfa_enrolled: nil,
|
1329
1332
|
roles: nil,
|
1333
|
+
external_id: nil,
|
1330
1334
|
method_options: nil
|
1331
1335
|
)
|
1332
1336
|
headers = {}
|
@@ -1342,6 +1346,7 @@ module StytchB2B
|
|
1342
1346
|
request[:mfa_phone_number] = mfa_phone_number unless mfa_phone_number.nil?
|
1343
1347
|
request[:mfa_enrolled] = mfa_enrolled unless mfa_enrolled.nil?
|
1344
1348
|
request[:roles] = roles unless roles.nil?
|
1349
|
+
request[:external_id] = external_id unless external_id.nil?
|
1345
1350
|
|
1346
1351
|
post_request("/v1/b2b/organizations/#{organization_id}/members", request, headers)
|
1347
1352
|
end
|
data/lib/stytch/b2b_passwords.rb
CHANGED
@@ -152,6 +152,9 @@ module StytchB2B
|
|
152
152
|
# set_phone_number_verified::
|
153
153
|
# (no documentation yet)
|
154
154
|
# The type of this field is nilable +Boolean+.
|
155
|
+
# external_id::
|
156
|
+
# If a new member is created, this will set 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. Note that if a member already exists, this field will be ignored.
|
157
|
+
# The type of this field is nilable +String+.
|
155
158
|
#
|
156
159
|
# == Returns:
|
157
160
|
# An object with the following fields:
|
@@ -189,7 +192,8 @@ module StytchB2B
|
|
189
192
|
roles: nil,
|
190
193
|
preserve_existing_sessions: nil,
|
191
194
|
mfa_phone_number: nil,
|
192
|
-
set_phone_number_verified: nil
|
195
|
+
set_phone_number_verified: nil,
|
196
|
+
external_id: nil
|
193
197
|
)
|
194
198
|
headers = {}
|
195
199
|
request = {
|
@@ -210,6 +214,7 @@ module StytchB2B
|
|
210
214
|
request[:preserve_existing_sessions] = preserve_existing_sessions unless preserve_existing_sessions.nil?
|
211
215
|
request[:mfa_phone_number] = mfa_phone_number unless mfa_phone_number.nil?
|
212
216
|
request[:set_phone_number_verified] = set_phone_number_verified unless set_phone_number_verified.nil?
|
217
|
+
request[:external_id] = external_id unless external_id.nil?
|
213
218
|
|
214
219
|
post_request('/v1/b2b/passwords/migrate', request, headers)
|
215
220
|
end
|
@@ -404,10 +409,11 @@ module StytchB2B
|
|
404
409
|
#
|
405
410
|
# The type of this field is nilable +ResetStartRequestLocale+ (string enum).
|
406
411
|
# reset_password_template_id::
|
407
|
-
# Use a custom template for reset password emails. By default, it will use your default email template. The template must be a template using our built-in customizations or a custom HTML email for
|
412
|
+
# Use a custom template for reset password emails. By default, it will use your default email template. The template must be a template using our built-in customizations or a custom HTML email for Passwords - Reset Password.
|
408
413
|
# The type of this field is nilable +String+.
|
409
414
|
# verify_email_template_id::
|
410
|
-
#
|
415
|
+
# Use a custom template for verification emails sent during password reset flows. This template will be used the first time a user sets a password via a
|
416
|
+
# password reset flow. By default, it will use your default email template. The template must be a template using our built-in customizations or a custom HTML email for Passwords - Email Verification.
|
411
417
|
# The type of this field is nilable +String+.
|
412
418
|
#
|
413
419
|
# == Returns:
|
@@ -973,7 +979,7 @@ module StytchB2B
|
|
973
979
|
# discovery redirect URL that you set in your Dashboard is used. If you have not set a default discovery redirect URL, an error is returned.
|
974
980
|
# The type of this field is nilable +String+.
|
975
981
|
# reset_password_template_id::
|
976
|
-
# Use a custom template for reset password emails. By default, it will use your default email template. The template must be a template using our built-in customizations or a custom HTML email for
|
982
|
+
# Use a custom template for reset password emails. By default, it will use your default email template. The template must be a template using our built-in customizations or a custom HTML email for Passwords - Reset Password.
|
977
983
|
# The type of this field is nilable +String+.
|
978
984
|
# reset_password_expiration_minutes::
|
979
985
|
# Sets a time limit after which the email link to reset the member's password will no longer be valid.
|
@@ -990,7 +996,8 @@ module StytchB2B
|
|
990
996
|
#
|
991
997
|
# The type of this field is nilable +String+.
|
992
998
|
# verify_email_template_id::
|
993
|
-
#
|
999
|
+
# Use a custom template for verification emails sent during password reset flows. This template will be used the first time a user sets a password via a
|
1000
|
+
# password reset flow. By default, it will use your default email template. The template must be a template using our built-in customizations or a custom HTML email for Passwords - Email Verification.
|
994
1001
|
# The type of this field is nilable +String+.
|
995
1002
|
#
|
996
1003
|
# == Returns:
|
data/lib/stytch/passwords.rb
CHANGED
@@ -307,6 +307,9 @@ module Stytch
|
|
307
307
|
# Whether to set the user's phone number as verified. This is a dangerous field. This flag should only be set if you can attest that
|
308
308
|
# the user owns the phone number in question. Access to this field is restricted. To enable it, please send us a note at support@stytch.com.
|
309
309
|
# The type of this field is nilable +Boolean+.
|
310
|
+
# external_id::
|
311
|
+
# If a new user is created, this will set 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. Note that if a user already exists, this field will be ignored.
|
312
|
+
# The type of this field is nilable +String+.
|
310
313
|
#
|
311
314
|
# == Returns:
|
312
315
|
# An object with the following fields:
|
@@ -342,7 +345,8 @@ module Stytch
|
|
342
345
|
set_email_verified: nil,
|
343
346
|
name: nil,
|
344
347
|
phone_number: nil,
|
345
|
-
set_phone_number_verified: nil
|
348
|
+
set_phone_number_verified: nil,
|
349
|
+
external_id: nil
|
346
350
|
)
|
347
351
|
headers = {}
|
348
352
|
request = {
|
@@ -361,6 +365,7 @@ module Stytch
|
|
361
365
|
request[:name] = name unless name.nil?
|
362
366
|
request[:phone_number] = phone_number unless phone_number.nil?
|
363
367
|
request[:set_phone_number_verified] = set_phone_number_verified unless set_phone_number_verified.nil?
|
368
|
+
request[:external_id] = external_id unless external_id.nil?
|
364
369
|
|
365
370
|
post_request('/v1/passwords/migrate', request, headers)
|
366
371
|
end
|
data/lib/stytch/users.rb
CHANGED
@@ -44,6 +44,9 @@ module Stytch
|
|
44
44
|
# untrusted_metadata::
|
45
45
|
# 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.
|
46
46
|
# The type of this field is nilable +object+.
|
47
|
+
# external_id::
|
48
|
+
# 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.
|
49
|
+
# The type of this field is nilable +String+.
|
47
50
|
#
|
48
51
|
# == Returns:
|
49
52
|
# An object with the following fields:
|
@@ -75,7 +78,8 @@ module Stytch
|
|
75
78
|
phone_number: nil,
|
76
79
|
create_user_as_pending: nil,
|
77
80
|
trusted_metadata: nil,
|
78
|
-
untrusted_metadata: nil
|
81
|
+
untrusted_metadata: nil,
|
82
|
+
external_id: nil
|
79
83
|
)
|
80
84
|
headers = {}
|
81
85
|
request = {}
|
@@ -86,6 +90,7 @@ module Stytch
|
|
86
90
|
request[:create_user_as_pending] = create_user_as_pending unless create_user_as_pending.nil?
|
87
91
|
request[:trusted_metadata] = trusted_metadata unless trusted_metadata.nil?
|
88
92
|
request[:untrusted_metadata] = untrusted_metadata unless untrusted_metadata.nil?
|
93
|
+
request[:external_id] = external_id unless external_id.nil?
|
89
94
|
|
90
95
|
post_request('/v1/users', request, headers)
|
91
96
|
end
|
data/lib/stytch/version.rb
CHANGED
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.
|
4
|
+
version: 10.13.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-04-
|
11
|
+
date: 2025-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|