stytch 10.13.0 → 10.15.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: 6f42067344609f05614a791857f6483761c11ac60e7d97a2b7e26b9710f3c85b
4
- data.tar.gz: 8a2a1627bc56f8a7c64923ac96684e09fb18e44d2c054165db45ff386ef33fda
3
+ metadata.gz: d254fb6ad00d8f972e73e2b222e08c488989bc0157eab95f95aa2d71a5aeb7b4
4
+ data.tar.gz: d41c6fdd5432b80b28c8ed6e1e2b56bcf6030c7c3495b048a152b06729fd235e
5
5
  SHA512:
6
- metadata.gz: 664e0ed90b2ba4d7dbfde9ca507d1c2c0897525065a464423088a801d9918d330783334d8e24ca2f5e097e5b562e6d929c0020e67de808163fe3bf504a33a9ff
7
- data.tar.gz: 242470dc150145878d90fdf3bd660d8d4c1b8bd732c7a64c1a5130a67a13d67f848567bb0803d091a04c6dceca04431e26a182e8f45dcf4c8ea852663a65ef64
6
+ metadata.gz: c580d9419a6c11dea7ebd4c6e63ae3c8da665f3bdf9a4984b8c5be435c85e98e8b72b15fee4620308c939dcce47ef90d84f71cc74dc35f659a265e08c25f3765
7
+ data.tar.gz: e726ae5ae7aed604ea5dabff68776c984bf67d3ce92d56959c887f3466b5c4c28fdee8710deed1f72913f991efa61ce70178d2009a0233498400577f3c516a6b
@@ -213,11 +213,17 @@ module StytchB2B
213
213
  # locale::
214
214
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
215
215
  #
216
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
216
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
217
217
  #
218
218
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
219
219
  #
220
220
  # The type of this field is nilable +LoginOrSignupRequestLocale+ (string enum).
221
+ # login_expiration_minutes::
222
+ # The expiration time, in minutes, for a login Email Magic Link. If not authenticated within this time frame, the email will need to be resent. Defaults to 60 (1 hour) with a minimum of 5 and a maximum of 10080 (1 week).
223
+ # The type of this field is nilable +Integer+.
224
+ # signup_expiration_minutes::
225
+ # The expiration time, in minutes, for a signup Email Magic Link. If not authenticated within this time frame, the email will need to be resent. Defaults to 60 (1 hour) with a minimum of 5 and a maximum of 10080 (1 week).
226
+ # The type of this field is nilable +Integer+.
221
227
  #
222
228
  # == Returns:
223
229
  # An object with the following fields:
@@ -247,7 +253,9 @@ module StytchB2B
247
253
  pkce_code_challenge: nil,
248
254
  login_template_id: nil,
249
255
  signup_template_id: nil,
250
- locale: nil
256
+ locale: nil,
257
+ login_expiration_minutes: nil,
258
+ signup_expiration_minutes: nil
251
259
  )
252
260
  headers = {}
253
261
  request = {
@@ -260,6 +268,8 @@ module StytchB2B
260
268
  request[:login_template_id] = login_template_id unless login_template_id.nil?
261
269
  request[:signup_template_id] = signup_template_id unless signup_template_id.nil?
262
270
  request[:locale] = locale unless locale.nil?
271
+ request[:login_expiration_minutes] = login_expiration_minutes unless login_expiration_minutes.nil?
272
+ request[:signup_expiration_minutes] = signup_expiration_minutes unless signup_expiration_minutes.nil?
263
273
 
264
274
  post_request('/v1/b2b/magic_links/email/login_or_signup', request, headers)
265
275
  end
@@ -305,7 +315,7 @@ module StytchB2B
305
315
  # locale::
306
316
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
307
317
  #
308
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
318
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
309
319
  #
310
320
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
311
321
  #
@@ -314,6 +324,9 @@ module StytchB2B
314
324
  # Roles to explicitly assign to this Member. See the [RBAC guide](https://stytch.com/docs/b2b/guides/rbac/role-assignment)
315
325
  # for more information about role assignment.
316
326
  # The type of this field is nilable list of +String+.
327
+ # invite_expiration_minutes::
328
+ # The expiration time, in minutes, for an invite email. If not accepted within this time frame, the invite will need to be resent. Defaults to 10080 (1 week) with a minimum of 5 and a maximum of 10080.
329
+ # The type of this field is nilable +Integer+.
317
330
  #
318
331
  # == Returns:
319
332
  # An object with the following fields:
@@ -346,6 +359,7 @@ module StytchB2B
346
359
  invite_template_id: nil,
347
360
  locale: nil,
348
361
  roles: nil,
362
+ invite_expiration_minutes: nil,
349
363
  method_options: nil
350
364
  )
351
365
  headers = {}
@@ -362,6 +376,7 @@ module StytchB2B
362
376
  request[:invite_template_id] = invite_template_id unless invite_template_id.nil?
363
377
  request[:locale] = locale unless locale.nil?
364
378
  request[:roles] = roles unless roles.nil?
379
+ request[:invite_expiration_minutes] = invite_expiration_minutes unless invite_expiration_minutes.nil?
365
380
 
366
381
  post_request('/v1/b2b/magic_links/email/invite', request, headers)
367
382
  end
@@ -394,11 +409,14 @@ module StytchB2B
394
409
  # locale::
395
410
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
396
411
  #
397
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
412
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
398
413
  #
399
414
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
400
415
  #
401
416
  # The type of this field is nilable +SendRequestLocale+ (string enum).
417
+ # discovery_expiration_minutes::
418
+ # The expiration time, in minutes, for an discovery magic link email. If not accepted within this time frame, the email will need to be resent. Defaults to 60 (1 hour) with a minimum of 5 and a maximum of 10080 (1 week).
419
+ # The type of this field is nilable +Integer+.
402
420
  #
403
421
  # == Returns:
404
422
  # An object with the following fields:
@@ -413,7 +431,8 @@ module StytchB2B
413
431
  discovery_redirect_url: nil,
414
432
  pkce_code_challenge: nil,
415
433
  login_template_id: nil,
416
- locale: nil
434
+ locale: nil,
435
+ discovery_expiration_minutes: nil
417
436
  )
418
437
  headers = {}
419
438
  request = {
@@ -423,6 +442,7 @@ module StytchB2B
423
442
  request[:pkce_code_challenge] = pkce_code_challenge unless pkce_code_challenge.nil?
424
443
  request[:login_template_id] = login_template_id unless login_template_id.nil?
425
444
  request[:locale] = locale unless locale.nil?
445
+ request[:discovery_expiration_minutes] = discovery_expiration_minutes unless discovery_expiration_minutes.nil?
426
446
 
427
447
  post_request('/v1/b2b/magic_links/email/discovery/send', request, headers)
428
448
  end
@@ -793,7 +793,7 @@ module StytchB2B
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
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.
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
797
  # The type of this field is nilable +String+.
798
798
  #
799
799
  # == Returns:
@@ -1296,7 +1296,7 @@ module StytchB2B
1296
1296
  # for more information about role assignment.
1297
1297
  # The type of this field is nilable list of +String+.
1298
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.
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
1300
  # The type of this field is nilable +String+.
1301
1301
  #
1302
1302
  # == Returns:
@@ -60,7 +60,7 @@ module StytchB2B
60
60
  # locale::
61
61
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
62
62
  #
63
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
63
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
64
64
  #
65
65
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
66
66
  #
@@ -269,11 +269,17 @@ module StytchB2B
269
269
  # locale::
270
270
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
271
271
  #
272
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
272
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
273
273
  #
274
274
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
275
275
  #
276
276
  # The type of this field is nilable +LoginOrSignupRequestLocale+ (string enum).
277
+ # login_expiration_minutes::
278
+ # The expiration time, in minutes, for a login OTP email to a Member. If not authenticated within this time frame, the OTP will need to be resent. Defaults to 10 with a minimum of 2 and a maximum of 15.
279
+ # The type of this field is nilable +Integer+.
280
+ # signup_expiration_minutes::
281
+ # The expiration time, in minutes, for a signup OTP email to a Member. If not authenticated within this time frame, the OTP will need to be resent. Defaults to 10 with a minimum of 2 and a maximum of 15.
282
+ # The type of this field is nilable +Integer+.
277
283
  #
278
284
  # == Returns:
279
285
  # An object with the following fields:
@@ -300,7 +306,9 @@ module StytchB2B
300
306
  email_address:,
301
307
  login_template_id: nil,
302
308
  signup_template_id: nil,
303
- locale: nil
309
+ locale: nil,
310
+ login_expiration_minutes: nil,
311
+ signup_expiration_minutes: nil
304
312
  )
305
313
  headers = {}
306
314
  request = {
@@ -310,6 +318,8 @@ module StytchB2B
310
318
  request[:login_template_id] = login_template_id unless login_template_id.nil?
311
319
  request[:signup_template_id] = signup_template_id unless signup_template_id.nil?
312
320
  request[:locale] = locale unless locale.nil?
321
+ request[:login_expiration_minutes] = login_expiration_minutes unless login_expiration_minutes.nil?
322
+ request[:signup_expiration_minutes] = signup_expiration_minutes unless signup_expiration_minutes.nil?
313
323
 
314
324
  post_request('/v1/b2b/otps/email/login_or_signup', request, headers)
315
325
  end
@@ -366,7 +376,7 @@ module StytchB2B
366
376
  # locale::
367
377
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
368
378
  #
369
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
379
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
370
380
  #
371
381
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
372
382
  #
@@ -459,11 +469,14 @@ module StytchB2B
459
469
  # locale::
460
470
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
461
471
  #
462
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
472
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
463
473
  #
464
474
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
465
475
  #
466
476
  # The type of this field is nilable +SendRequestLocale+ (string enum).
477
+ # discovery_expiration_minutes::
478
+ # The expiration time, in minutes, for a discovery OTP email. If not accepted within this time frame, the OTP will need to be resent. Defaults to 10 with a minimum of 2 and a maximum of 15.
479
+ # The type of this field is nilable +Integer+.
467
480
  #
468
481
  # == Returns:
469
482
  # An object with the following fields:
@@ -476,7 +489,8 @@ module StytchB2B
476
489
  def send(
477
490
  email_address:,
478
491
  login_template_id: nil,
479
- locale: nil
492
+ locale: nil,
493
+ discovery_expiration_minutes: nil
480
494
  )
481
495
  headers = {}
482
496
  request = {
@@ -484,6 +498,7 @@ module StytchB2B
484
498
  }
485
499
  request[:login_template_id] = login_template_id unless login_template_id.nil?
486
500
  request[:locale] = locale unless locale.nil?
501
+ request[:discovery_expiration_minutes] = discovery_expiration_minutes unless discovery_expiration_minutes.nil?
487
502
 
488
503
  post_request('/v1/b2b/otps/email/discovery/send', request, headers)
489
504
  end
@@ -153,7 +153,7 @@ module StytchB2B
153
153
  # (no documentation yet)
154
154
  # The type of this field is nilable +Boolean+.
155
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.
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
157
  # The type of this field is nilable +String+.
158
158
  #
159
159
  # == Returns:
@@ -403,7 +403,7 @@ module StytchB2B
403
403
  # locale::
404
404
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
405
405
  #
406
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
406
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
407
407
  #
408
408
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
409
409
  #
@@ -685,7 +685,7 @@ module StytchB2B
685
685
  # locale::
686
686
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
687
687
  #
688
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
688
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
689
689
  #
690
690
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
691
691
  #
@@ -990,7 +990,7 @@ module StytchB2B
990
990
  # locale::
991
991
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
992
992
  #
993
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
993
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
994
994
  #
995
995
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
996
996
  #
@@ -642,6 +642,9 @@ module StytchB2B
642
642
  # alternative_acs_url::
643
643
  # An alternative URL to use for the `AssertionConsumerServiceURL` in SP initiated SAML AuthNRequests. This value can be used when you wish to migrate an existing SAML integration to Stytch with zero downtime. Note that you will be responsible for proxying requests sent to the Alternative ACS URL to Stytch. Read our [SSO migration guide](https://stytch.com/docs/b2b/guides/migrations/additional-migration-considerations) for more info.
644
644
  # The type of this field is nilable +String+.
645
+ # idp_initiated_auth_disabled::
646
+ # Determines whether IDP initiated auth is allowed for a given SAML connection. Defaults to false (IDP Initiated Auth is enabled).
647
+ # The type of this field is nilable +Boolean+.
645
648
  #
646
649
  # == Returns:
647
650
  # An object with the following fields:
@@ -672,6 +675,7 @@ module StytchB2B
672
675
  signing_private_key: nil,
673
676
  nameid_format: nil,
674
677
  alternative_acs_url: nil,
678
+ idp_initiated_auth_disabled: nil,
675
679
  method_options: nil
676
680
  )
677
681
  headers = {}
@@ -689,6 +693,7 @@ module StytchB2B
689
693
  request[:signing_private_key] = signing_private_key unless signing_private_key.nil?
690
694
  request[:nameid_format] = nameid_format unless nameid_format.nil?
691
695
  request[:alternative_acs_url] = alternative_acs_url unless alternative_acs_url.nil?
696
+ request[:idp_initiated_auth_disabled] = idp_initiated_auth_disabled unless idp_initiated_auth_disabled.nil?
692
697
 
693
698
  put_request("/v1/b2b/sso/saml/#{organization_id}/connections/#{connection_id}", request, headers)
694
699
  end
@@ -217,7 +217,7 @@ module Stytch
217
217
  # locale::
218
218
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
219
219
  #
220
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
220
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
221
221
  #
222
222
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
223
223
  #
@@ -318,7 +318,7 @@ module Stytch
318
318
  # locale::
319
319
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
320
320
  #
321
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
321
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
322
322
  #
323
323
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
324
324
  #
@@ -399,7 +399,7 @@ module Stytch
399
399
  # locale::
400
400
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
401
401
  #
402
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
402
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
403
403
  #
404
404
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
405
405
  #
data/lib/stytch/otps.rb CHANGED
@@ -155,7 +155,7 @@ module Stytch
155
155
  # locale::
156
156
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
157
157
  #
158
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
158
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
159
159
  #
160
160
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
161
161
  #
@@ -240,7 +240,7 @@ module Stytch
240
240
  # locale::
241
241
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
242
242
  #
243
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
243
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
244
244
  #
245
245
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
246
246
  #
@@ -318,7 +318,7 @@ module Stytch
318
318
  # locale::
319
319
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
320
320
  #
321
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
321
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
322
322
  #
323
323
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
324
324
  #
@@ -399,7 +399,7 @@ module Stytch
399
399
  # locale::
400
400
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
401
401
  #
402
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
402
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
403
403
  #
404
404
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
405
405
  #
@@ -470,7 +470,7 @@ module Stytch
470
470
  # locale::
471
471
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
472
472
  #
473
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
473
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
474
474
  #
475
475
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
476
476
  #
@@ -558,7 +558,7 @@ module Stytch
558
558
  # locale::
559
559
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
560
560
  #
561
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
561
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
562
562
  #
563
563
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
564
564
  #
@@ -308,7 +308,7 @@ module Stytch
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
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.
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
312
  # The type of this field is nilable +String+.
313
313
  #
314
314
  # == Returns:
@@ -408,7 +408,7 @@ module Stytch
408
408
  # locale::
409
409
  # Used to determine which language to use when sending the user this delivery method. Parameter is a [IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. `"en"`.
410
410
  #
411
- # Currently supported languages are English (`"en"`), Spanish (`"es"`), and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
411
+ # Currently supported languages are English (`"en"`), Spanish (`"es"`), French (`"fr"`) and Brazilian Portuguese (`"pt-br"`); if no value is provided, the copy defaults to English.
412
412
  #
413
413
  # Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
414
414
  #
@@ -220,6 +220,21 @@ module Stytch
220
220
  post_request('/v1/sessions/migrate', request, headers)
221
221
  end
222
222
 
223
+ def exchange_access_token(
224
+ access_token:,
225
+ session_duration_minutes: nil,
226
+ session_custom_claims: nil
227
+ )
228
+ headers = {}
229
+ request = {
230
+ access_token: access_token
231
+ }
232
+ request[:session_duration_minutes] = session_duration_minutes unless session_duration_minutes.nil?
233
+ request[:session_custom_claims] = session_custom_claims unless session_custom_claims.nil?
234
+
235
+ post_request('/v1/sessions/exchange_access_token', request, headers)
236
+ end
237
+
223
238
  # Get the JSON Web Key Set (JWKS) for a project.
224
239
  #
225
240
  # JWKS are rotated every ~6 months. Upon rotation, new JWTs will be signed using the new key, and both keys will be returned by this endpoint for a period of 1 month.
data/lib/stytch/users.rb CHANGED
@@ -45,7 +45,7 @@ module Stytch
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
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.
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
49
  # The type of this field is nilable +String+.
50
50
  #
51
51
  # == Returns:
@@ -234,7 +234,7 @@ module Stytch
234
234
  # 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.
235
235
  # The type of this field is nilable +object+.
236
236
  # external_id::
237
- # 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.
237
+ # 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.
238
238
  # The type of this field is nilable +String+.
239
239
  #
240
240
  # == Returns:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '10.13.0'
4
+ VERSION = '10.15.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.13.0
4
+ version: 10.15.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-07 00:00:00.000000000 Z
11
+ date: 2025-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday