stytch 10.25.0 → 10.27.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.
@@ -97,7 +97,7 @@ module StytchB2B
97
97
 
98
98
  # Creates an Organization. An `organization_name` and a unique `organization_slug` are required.
99
99
  #
100
- # By default, `email_invites` and `sso_jit_provisioning` will be set to `ALL_ALLOWED`, and `mfa_policy` will be set to `OPTIONAL` if no Organization authentication settings are explicitly defined in the request.
100
+ # If no Organization authentication setting parameters are passed in, `email_invites` will default to `ALL_ALLOWED` so that the Organization has a way to add Members. Otherwise, `email_invites` will default to `NOT_ALLOWED`.
101
101
  #
102
102
  # *See the [Organization authentication settings](https://stytch.com/docs/b2b/api/org-auth-settings) resource to learn more about fields like `email_jit_provisioning`, `email_invites`, `sso_jit_provisioning`, etc., and their behaviors.
103
103
  #
@@ -114,10 +114,13 @@ module StytchB2B
114
114
  # trusted_metadata::
115
115
  # An arbitrary JSON object for storing application-specific data or identity-provider-specific data.
116
116
  # The type of this field is nilable +object+.
117
+ # organization_external_id::
118
+ # An identifier that can be used in API calls wherever a organization_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 a project, but may be reused across different projects in the same workspace.
119
+ # The type of this field is nilable +String+.
117
120
  # sso_jit_provisioning::
118
121
  # The authentication setting that controls the JIT provisioning of Members when authenticating via SSO. The accepted values are:
119
122
  #
120
- # `ALL_ALLOWED` – new Members will be automatically provisioned upon successful authentication via any of the Organization's `sso_active_connections`.
123
+ # `ALL_ALLOWED` – the default setting, new Members will be automatically provisioned upon successful authentication via any of the Organization's `sso_active_connections`.
121
124
  #
122
125
  # `RESTRICTED` – only new Members with SSO logins that comply with `sso_jit_provisioning_allowed_connections` can be provisioned upon authentication.
123
126
  #
@@ -135,7 +138,7 @@ module StytchB2B
135
138
  #
136
139
  # `RESTRICTED` – only new Members with verified emails that comply with `email_allowed_domains` can be provisioned upon authentication via Email Magic Link or OAuth.
137
140
  #
138
- # `NOT_ALLOWED` – disable JIT provisioning via Email Magic Link and OAuth.
141
+ # `NOT_ALLOWED` – the default setting, disables JIT provisioning via Email Magic Link and OAuth.
139
142
  #
140
143
  # The type of this field is nilable +String+.
141
144
  # email_invites::
@@ -193,7 +196,7 @@ module StytchB2B
193
196
  #
194
197
  # `RESTRICTED` – only new Members with tenants in `allowed_oauth_tenants` can JIT provision via tenant.
195
198
  #
196
- # `NOT_ALLOWED` – disable JIT provisioning by OAuth Tenant.
199
+ # `NOT_ALLOWED` – the default setting, disables JIT provisioning by OAuth Tenant.
197
200
  #
198
201
  # The type of this field is nilable +String+.
199
202
  # allowed_oauth_tenants::
@@ -205,7 +208,7 @@ module StytchB2B
205
208
  # first_party_connected_apps_allowed_type::
206
209
  # The authentication setting that sets the Organization's policy towards first party Connected Apps. The accepted values are:
207
210
  #
208
- # `ALL_ALLOWED` – any first party Connected App in the Project is permitted for use by Members.
211
+ # `ALL_ALLOWED` – the default setting, any first party Connected App in the Project is permitted for use by Members.
209
212
  #
210
213
  # `RESTRICTED` – only first party Connected Apps with IDs in `allowed_first_party_connected_apps` can be used by Members.
211
214
  #
@@ -218,7 +221,7 @@ module StytchB2B
218
221
  # third_party_connected_apps_allowed_type::
219
222
  # The authentication setting that sets the Organization's policy towards third party Connected Apps. The accepted values are:
220
223
  #
221
- # `ALL_ALLOWED` – any third party Connected App in the Project is permitted for use by Members.
224
+ # `ALL_ALLOWED` – the default setting, any third party Connected App in the Project is permitted for use by Members.
222
225
  #
223
226
  # `RESTRICTED` – only third party Connected Apps with IDs in `allowed_first_party_connected_apps` can be used by Members.
224
227
  #
@@ -245,6 +248,7 @@ module StytchB2B
245
248
  organization_slug: nil,
246
249
  organization_logo_url: nil,
247
250
  trusted_metadata: nil,
251
+ organization_external_id: nil,
248
252
  sso_jit_provisioning: nil,
249
253
  email_allowed_domains: nil,
250
254
  email_jit_provisioning: nil,
@@ -270,6 +274,7 @@ module StytchB2B
270
274
  request[:organization_slug] = organization_slug unless organization_slug.nil?
271
275
  request[:organization_logo_url] = organization_logo_url unless organization_logo_url.nil?
272
276
  request[:trusted_metadata] = trusted_metadata unless trusted_metadata.nil?
277
+ request[:organization_external_id] = organization_external_id unless organization_external_id.nil?
273
278
  request[:sso_jit_provisioning] = sso_jit_provisioning unless sso_jit_provisioning.nil?
274
279
  request[:email_allowed_domains] = email_allowed_domains unless email_allowed_domains.nil?
275
280
  request[:email_jit_provisioning] = email_jit_provisioning unless email_jit_provisioning.nil?
@@ -295,7 +300,7 @@ module StytchB2B
295
300
  #
296
301
  # == Parameters:
297
302
  # organization_id::
298
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
303
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
299
304
  # The type of this field is +String+.
300
305
  #
301
306
  # == Returns:
@@ -324,7 +329,7 @@ module StytchB2B
324
329
  #
325
330
  # == Parameters:
326
331
  # organization_id::
327
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
332
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
328
333
  # The type of this field is +String+.
329
334
  # organization_name::
330
335
  # The name of the Organization. Must be between 1 and 128 characters in length.
@@ -346,6 +351,9 @@ module StytchB2B
346
351
  # If a session header is passed into the request, this field may **not** be passed into the request. You cannot
347
352
  # update trusted metadata when acting as a Member.
348
353
  # The type of this field is nilable +object+.
354
+ # organization_external_id::
355
+ # An identifier that can be used in API calls wherever a organization_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 a project, but may be reused across different projects in the same workspace.
356
+ # The type of this field is nilable +String+.
349
357
  # sso_default_connection_id::
350
358
  # The default connection used for SSO when there are multiple active connections.
351
359
  #
@@ -354,7 +362,7 @@ module StytchB2B
354
362
  # sso_jit_provisioning::
355
363
  # The authentication setting that controls the JIT provisioning of Members when authenticating via SSO. The accepted values are:
356
364
  #
357
- # `ALL_ALLOWED` – new Members will be automatically provisioned upon successful authentication via any of the Organization's `sso_active_connections`.
365
+ # `ALL_ALLOWED` – the default setting, new Members will be automatically provisioned upon successful authentication via any of the Organization's `sso_active_connections`.
358
366
  #
359
367
  # `RESTRICTED` – only new Members with SSO logins that comply with `sso_jit_provisioning_allowed_connections` can be provisioned upon authentication.
360
368
  #
@@ -382,7 +390,7 @@ module StytchB2B
382
390
  #
383
391
  # `RESTRICTED` – only new Members with verified emails that comply with `email_allowed_domains` can be provisioned upon authentication via Email Magic Link or OAuth.
384
392
  #
385
- # `NOT_ALLOWED` – disable JIT provisioning via Email Magic Link and OAuth.
393
+ # `NOT_ALLOWED` – the default setting, disables JIT provisioning via Email Magic Link and OAuth.
386
394
  #
387
395
  #
388
396
  # If this field is provided and a session header is passed into the request, the Member Session must have permission to perform the `update.settings.email-jit-provisioning` action on the `stytch.organization` Resource.
@@ -456,7 +464,7 @@ module StytchB2B
456
464
  #
457
465
  # `RESTRICTED` – only new Members with tenants in `allowed_oauth_tenants` can JIT provision via tenant.
458
466
  #
459
- # `NOT_ALLOWED` – disable JIT provisioning by OAuth Tenant.
467
+ # `NOT_ALLOWED` – the default setting, disables JIT provisioning by OAuth Tenant.
460
468
  #
461
469
  #
462
470
  # If this field is provided and a session header is passed into the request, the Member Session must have permission to perform the `update.settings.oauth-tenant-jit-provisioning` action on the `stytch.organization` Resource.
@@ -472,7 +480,7 @@ module StytchB2B
472
480
  # first_party_connected_apps_allowed_type::
473
481
  # The authentication setting that sets the Organization's policy towards first party Connected Apps. The accepted values are:
474
482
  #
475
- # `ALL_ALLOWED` – any first party Connected App in the Project is permitted for use by Members.
483
+ # `ALL_ALLOWED` – the default setting, any first party Connected App in the Project is permitted for use by Members.
476
484
  #
477
485
  # `RESTRICTED` – only first party Connected Apps with IDs in `allowed_first_party_connected_apps` can be used by Members.
478
486
  #
@@ -485,7 +493,7 @@ module StytchB2B
485
493
  # third_party_connected_apps_allowed_type::
486
494
  # The authentication setting that sets the Organization's policy towards third party Connected Apps. The accepted values are:
487
495
  #
488
- # `ALL_ALLOWED` – any third party Connected App in the Project is permitted for use by Members.
496
+ # `ALL_ALLOWED` – the default setting, any third party Connected App in the Project is permitted for use by Members.
489
497
  #
490
498
  # `RESTRICTED` – only third party Connected Apps with IDs in `allowed_first_party_connected_apps` can be used by Members.
491
499
  #
@@ -516,6 +524,7 @@ module StytchB2B
516
524
  organization_slug: nil,
517
525
  organization_logo_url: nil,
518
526
  trusted_metadata: nil,
527
+ organization_external_id: nil,
519
528
  sso_default_connection_id: nil,
520
529
  sso_jit_provisioning: nil,
521
530
  sso_jit_provisioning_allowed_connections: nil,
@@ -544,6 +553,7 @@ module StytchB2B
544
553
  request[:organization_slug] = organization_slug unless organization_slug.nil?
545
554
  request[:organization_logo_url] = organization_logo_url unless organization_logo_url.nil?
546
555
  request[:trusted_metadata] = trusted_metadata unless trusted_metadata.nil?
556
+ request[:organization_external_id] = organization_external_id unless organization_external_id.nil?
547
557
  request[:sso_default_connection_id] = sso_default_connection_id unless sso_default_connection_id.nil?
548
558
  request[:sso_jit_provisioning] = sso_jit_provisioning unless sso_jit_provisioning.nil?
549
559
  request[:sso_jit_provisioning_allowed_connections] = sso_jit_provisioning_allowed_connections unless sso_jit_provisioning_allowed_connections.nil?
@@ -571,7 +581,7 @@ module StytchB2B
571
581
  #
572
582
  # == Parameters:
573
583
  # organization_id::
574
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
584
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
575
585
  # The type of this field is +String+.
576
586
  #
577
587
  # == Returns:
@@ -655,7 +665,7 @@ module StytchB2B
655
665
  #
656
666
  # == Parameters:
657
667
  # organization_id::
658
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
668
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
659
669
  # The type of this field is +String+.
660
670
  #
661
671
  # == Returns:
@@ -689,7 +699,7 @@ module StytchB2B
689
699
  #
690
700
  # == Parameters:
691
701
  # organization_id::
692
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
702
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
693
703
  # The type of this field is +String+.
694
704
  # connected_app_id::
695
705
  # The ID of the Connected App.
@@ -957,7 +967,7 @@ module StytchB2B
957
967
  #
958
968
  # == Parameters:
959
969
  # organization_id::
960
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
970
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
961
971
  # The type of this field is +String+.
962
972
  # member_id::
963
973
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -1090,7 +1100,7 @@ module StytchB2B
1090
1100
  #
1091
1101
  # == Parameters:
1092
1102
  # organization_id::
1093
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
1103
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
1094
1104
  # The type of this field is +String+.
1095
1105
  # member_id::
1096
1106
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -1124,7 +1134,7 @@ module StytchB2B
1124
1134
  #
1125
1135
  # == Parameters:
1126
1136
  # organization_id::
1127
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
1137
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
1128
1138
  # The type of this field is +String+.
1129
1139
  # member_id::
1130
1140
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -1172,7 +1182,7 @@ module StytchB2B
1172
1182
  #
1173
1183
  # == Parameters:
1174
1184
  # organization_id::
1175
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
1185
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
1176
1186
  # The type of this field is +String+.
1177
1187
  # member_id::
1178
1188
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -1216,7 +1226,7 @@ module StytchB2B
1216
1226
  #
1217
1227
  # == Parameters:
1218
1228
  # organization_id::
1219
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
1229
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
1220
1230
  # The type of this field is +String+.
1221
1231
  # member_id::
1222
1232
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -1315,7 +1325,7 @@ module StytchB2B
1315
1325
  #
1316
1326
  # == Parameters:
1317
1327
  # organization_id::
1318
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
1328
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
1319
1329
  # The type of this field is +String+.
1320
1330
  # member_password_id::
1321
1331
  # Globally unique UUID that identifies a Member's password.
@@ -1396,7 +1406,7 @@ module StytchB2B
1396
1406
  #
1397
1407
  # == Parameters:
1398
1408
  # organization_id::
1399
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
1409
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
1400
1410
  # The type of this field is +String+.
1401
1411
  # member_id::
1402
1412
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -1445,7 +1455,7 @@ module StytchB2B
1445
1455
  #
1446
1456
  # == Parameters:
1447
1457
  # organization_id::
1448
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
1458
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
1449
1459
  # The type of this field is +String+.
1450
1460
  # member_id::
1451
1461
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -1507,15 +1517,17 @@ module StytchB2B
1507
1517
  # The member will receive an Email Magic Link that expires in 5 minutes. If they do not verify their new email address in that timeframe, the email
1508
1518
  # will be freed up for other members to use.
1509
1519
  #
1520
+ # The Magic Link will redirect to your `login_redirect_url` (or the configured default if one isn't provided), and you should invoke the [Authenticate Magic Link](https://stytch.com/docs/b2b/api/authenticate-magic-link) endpoint as normal to complete the flow.
1521
+ #
1510
1522
  # == Parameters:
1511
1523
  # organization_id::
1512
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
1524
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
1513
1525
  # The type of this field is +String+.
1514
1526
  # member_id::
1515
1527
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
1516
1528
  # The type of this field is +String+.
1517
1529
  # email_address::
1518
- # The email address of the Member.
1530
+ # The new email address for the Member.
1519
1531
  # The type of this field is +String+.
1520
1532
  # login_redirect_url::
1521
1533
  # The URL that the Member clicks from the login Email Magic Link. This URL should be an endpoint in the backend server that
@@ -1584,7 +1596,7 @@ module StytchB2B
1584
1596
  #
1585
1597
  # == Parameters:
1586
1598
  # organization_id::
1587
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
1599
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
1588
1600
  # The type of this field is +String+.
1589
1601
  # member_id::
1590
1602
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -1620,7 +1632,7 @@ module StytchB2B
1620
1632
  #
1621
1633
  # == Parameters:
1622
1634
  # organization_id::
1623
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
1635
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
1624
1636
  # The type of this field is +String+.
1625
1637
  # email_address::
1626
1638
  # The email address of the Member.
@@ -1712,7 +1724,7 @@ module StytchB2B
1712
1724
  #
1713
1725
  # == Parameters:
1714
1726
  # organization_id::
1715
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
1727
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
1716
1728
  # The type of this field is +String+.
1717
1729
  # member_id::
1718
1730
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -1771,7 +1783,7 @@ module StytchB2B
1771
1783
  #
1772
1784
  # == Parameters:
1773
1785
  # organization_id::
1774
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
1786
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
1775
1787
  # The type of this field is +String+.
1776
1788
  # member_id::
1777
1789
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -1828,7 +1840,7 @@ module StytchB2B
1828
1840
  #
1829
1841
  # == Parameters:
1830
1842
  # organization_id::
1831
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
1843
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
1832
1844
  # The type of this field is +String+.
1833
1845
  # member_id::
1834
1846
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -1884,7 +1896,7 @@ module StytchB2B
1884
1896
  #
1885
1897
  # == Parameters:
1886
1898
  # organization_id::
1887
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
1899
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
1888
1900
  # The type of this field is +String+.
1889
1901
  # member_id::
1890
1902
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -1920,7 +1932,7 @@ module StytchB2B
1920
1932
  #
1921
1933
  # == Parameters:
1922
1934
  # organization_id::
1923
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
1935
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
1924
1936
  # The type of this field is +String+.
1925
1937
  # member_id::
1926
1938
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -1962,7 +1974,7 @@ module StytchB2B
1962
1974
  #
1963
1975
  # == Parameters:
1964
1976
  # organization_id::
1965
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
1977
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
1966
1978
  # The type of this field is +String+.
1967
1979
  # member_id::
1968
1980
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -2031,7 +2043,7 @@ module StytchB2B
2031
2043
  #
2032
2044
  # == Parameters:
2033
2045
  # organization_id::
2034
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
2046
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
2035
2047
  # The type of this field is +String+.
2036
2048
  # member_id::
2037
2049
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -38,18 +38,20 @@ module StytchB2B
38
38
  #
39
39
  # If a Member has a phone number and is enrolled in MFA, then after a successful primary authentication event (e.g. [email magic link](https://stytch.com/docs/b2b/api/authenticate-magic-link) or [SSO](https://stytch.com/docs/b2b/api/sso-authenticate) login is complete), an SMS OTP will automatically be sent to their phone number. In that case, this endpoint should only be used for subsequent authentication events, such as prompting a Member for an OTP again after a period of inactivity.
40
40
  #
41
- # Passing an intermediate session token, session token, or session JWT is not required, but if passed must match the Member ID passed.
41
+ # If the Member already has an active MFA factor, then passing an intermediate session token, session token, or session JWT with the existing MFA factor on it is required to prevent bypassing MFA.
42
+ #
43
+ # Otherwise, passing an intermediate session token, session token, or session JWT is not required, but if passed must match the `member_id` passed.
42
44
  #
43
45
  # ### Cost to send SMS OTP
44
46
  # Before configuring SMS or WhatsApp OTPs, please review how Stytch [bills the costs of international OTPs](https://stytch.com/pricing) and understand how to protect your app against [toll fraud](https://stytch.com/docs/guides/passcodes/toll-fraud/overview).
45
47
  #
46
48
  # Even when international SMS is enabled, we do not support sending SMS to countries on our [Unsupported countries list](https://stytch.com/docs/guides/passcodes/unsupported-countries).
47
49
  #
48
- # __Note:__ SMS to phone numbers outside of the US and Canada is disabled by default for customers who did not use SMS prior to October 2023. If you're interested in sending international SMS, please add those countries to your Project's allowlist via [the API](https://stytch.com/docs/workspace-management/pwa/country-code-allowlist-object), and [add credit card details](https://stytch.com/docs/dashboard/settings/billing) to your account.
50
+ # __Note:__ SMS to phone numbers outside of the US and Canada is disabled by default for customers who did not use SMS prior to October 2023. If you're interested in sending international SMS, please add those countries to your Project's allowlist via the [Dashboard](https://stytch.com/dashboard/country-code-allowlists) or [Programmatic Workspace Actions](https://stytch.com/docs/workspace-management/pwa/set-allowed-country-codes), and [add credit card details](https://stytch.com/dashboard/settings/billing) to your account.
49
51
  #
50
52
  # == Parameters:
51
53
  # organization_id::
52
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
54
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
53
55
  # The type of this field is +String+.
54
56
  # member_id::
55
57
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -136,7 +138,7 @@ module StytchB2B
136
138
  #
137
139
  # == Parameters:
138
140
  # organization_id::
139
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
141
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
140
142
  # The type of this field is +String+.
141
143
  # member_id::
142
144
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -255,7 +257,7 @@ module StytchB2B
255
257
  #
256
258
  # == Parameters:
257
259
  # organization_id::
258
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
260
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
259
261
  # The type of this field is +String+.
260
262
  # email_address::
261
263
  # The email address of the Member.
@@ -325,7 +327,7 @@ module StytchB2B
325
327
  end
326
328
 
327
329
  # Authenticate a Member with a one-time passcode (OTP). This endpoint requires an OTP that is not expired or previously used.
328
- # OTPs have a default expiry of 10 minutes. If the Members status is `pending` or `invited`, they will be updated to `active`.
330
+ # OTPs have a default expiry of 10 minutes. If the Member's status is `pending` or `invited`, they will be updated to `active`.
329
331
  # Provide the `session_duration_minutes` parameter to set the lifetime of the session. If the `session_duration_minutes` parameter is not specified, a Stytch session will be created with a 60 minute duration.
330
332
  #
331
333
  # If the Member is required to complete MFA to log in to the Organization, the returned value of `member_authenticated` will be `false`, and an `intermediate_session_token` will be returned.
@@ -338,7 +340,7 @@ module StytchB2B
338
340
  #
339
341
  # == Parameters:
340
342
  # organization_id::
341
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
343
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
342
344
  # The type of this field is +String+.
343
345
  # email_address::
344
346
  # The email address of the Member.
@@ -110,7 +110,7 @@ module StytchB2B
110
110
  # The password hash used. Currently `bcrypt`, `scrypt`, `argon_2i`, `argon_2id`, `md_5`, `sha_1`, and `pbkdf_2` are supported.
111
111
  # The type of this field is +MigrateRequestHashType+ (string enum).
112
112
  # organization_id::
113
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
113
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
114
114
  # The type of this field is +String+.
115
115
  # md_5_config::
116
116
  # Optional parameters for MD-5 hash types.
@@ -239,7 +239,7 @@ module StytchB2B
239
239
  #
240
240
  # == Parameters:
241
241
  # organization_id::
242
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
242
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
243
243
  # The type of this field is +String+.
244
244
  # email_address::
245
245
  # The email address of the Member.
@@ -389,7 +389,7 @@ module StytchB2B
389
389
  #
390
390
  # == Parameters:
391
391
  # organization_id::
392
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
392
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
393
393
  # The type of this field is +String+.
394
394
  # email_address::
395
395
  # The email address of the Member to start the email reset process for.
@@ -615,7 +615,7 @@ module StytchB2B
615
615
  # The email address of the Member to start the email reset process for.
616
616
  # The type of this field is +String+.
617
617
  # organization_id::
618
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
618
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
619
619
  # The type of this field is nilable +String+.
620
620
  # member_id::
621
621
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -623,6 +623,9 @@ module StytchB2B
623
623
  #
624
624
  # == Returns:
625
625
  # An object with the following fields:
626
+ # request_id::
627
+ # 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.
628
+ # The type of this field is +String+.
626
629
  # status_code::
627
630
  # 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.
628
631
  # The type of this field is +Integer+.
@@ -669,7 +672,7 @@ module StytchB2B
669
672
  #
670
673
  # == Parameters:
671
674
  # organization_id::
672
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
675
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
673
676
  # The type of this field is +String+.
674
677
  # password::
675
678
  # The password to authenticate, reset, or set for the first time. Any UTF8 character is allowed, e.g. spaces, emojis, non-English characters, etc.
@@ -773,7 +776,7 @@ module StytchB2B
773
776
  @connection = connection
774
777
  end
775
778
 
776
- # Reset the members password using their existing password.
779
+ # Reset the member's password using their existing password.
777
780
  #
778
781
  # This endpoint adapts to your Project's password strength configuration.
779
782
  # If you're using [zxcvbn](https://stytch.com/docs/guides/passwords/strength-policy), the default, your passwords are considered valid
@@ -800,7 +803,7 @@ module StytchB2B
800
803
  # The Member's elected new password.
801
804
  # The type of this field is +String+.
802
805
  # organization_id::
803
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
806
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
804
807
  # The type of this field is +String+.
805
808
  # session_token::
806
809
  # A secret token for a given Stytch Session.
@@ -20,7 +20,7 @@ module StytchB2B
20
20
  #
21
21
  # When using the backend SDKs, the RBAC Policy will be cached to allow for local evaluations, eliminating the need for an extra request to Stytch. The policy will be refreshed if an authorization check is requested and the RBAC policy was last updated more than 5 minutes ago.
22
22
  #
23
- # Resources and Roles can be created and managed within the [RBAC page](https://stytch.com/docs/dashboard/rbac) in the Dashboard.
23
+ # Resources and Roles can be created and managed within the [RBAC page](https://stytch.com/dashboard/rbac) in the Dashboard.
24
24
  # Additionally, [Role assignment](https://stytch.com/docs/b2b/guides/rbac/role-assignment) can be programmatically managed through certain Stytch API endpoints.
25
25
  #
26
26
  # Check out the [RBAC overview](https://stytch.com/docs/b2b/guides/rbac/overview) to learn more about Stytch's RBAC permissioning model.
@@ -36,7 +36,7 @@ module StytchB2B
36
36
  # 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.
37
37
  # The type of this field is +Integer+.
38
38
  # policy::
39
- # The RBAC Policy document that contains all defined Roles and Resources – which are managed in the [Dashboard](https://stytch.com/docs/dashboard/rbac). Read more about these entities and how they work in our [RBAC overview](https://stytch.com/docs/b2b/guides/rbac/overview).
39
+ # The RBAC Policy document that contains all defined Roles and Resources – which are managed in the [Dashboard](https://stytch.com/dashboard/rbac). Read more about these entities and how they work in our [RBAC overview](https://stytch.com/docs/b2b/guides/rbac/overview).
40
40
  # The type of this field is nilable +Policy+ (+object+).
41
41
  def policy
42
42
  headers = {}
@@ -20,7 +20,7 @@ module StytchB2B
20
20
  #
21
21
  # == Parameters:
22
22
  # organization_id::
23
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
23
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
24
24
  # The type of this field is +String+.
25
25
  # member_id::
26
26
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -114,7 +114,7 @@ module StytchB2B
114
114
  #
115
115
  # == Parameters:
116
116
  # organization_id::
117
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
117
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
118
118
  # The type of this field is +String+.
119
119
  # member_id::
120
120
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -154,7 +154,7 @@ module StytchB2B
154
154
  #
155
155
  # == Parameters:
156
156
  # organization_id::
157
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
157
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
158
158
  # The type of this field is +String+.
159
159
  # member_id::
160
160
  # Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
@@ -182,7 +182,7 @@ module StytchB2B
182
182
  #
183
183
  # == Parameters:
184
184
  # organization_id::
185
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
185
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
186
186
  # The type of this field is +String+.
187
187
  # connection_id::
188
188
  # The ID of the SCIM connection.
@@ -233,7 +233,7 @@ module StytchB2B
233
233
  #
234
234
  # == Parameters:
235
235
  # organization_id::
236
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
236
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
237
237
  # The type of this field is +String+.
238
238
  # connection_id::
239
239
  # The ID of the SCIM connection.
@@ -267,7 +267,7 @@ module StytchB2B
267
267
  #
268
268
  # == Parameters:
269
269
  # organization_id::
270
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
270
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
271
271
  # The type of this field is +String+.
272
272
  # connection_id::
273
273
  # The ID of the SCIM connection.
@@ -303,7 +303,7 @@ module StytchB2B
303
303
  #
304
304
  # == Parameters:
305
305
  # organization_id::
306
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
306
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
307
307
  # The type of this field is +String+.
308
308
  # connection_id::
309
309
  # The ID of the SCIM connection.
@@ -339,7 +339,7 @@ module StytchB2B
339
339
  #
340
340
  # == Parameters:
341
341
  # organization_id::
342
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
342
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
343
343
  # The type of this field is +String+.
344
344
  # connection_id::
345
345
  # The ID of the SCIM connection.
@@ -375,7 +375,7 @@ module StytchB2B
375
375
  #
376
376
  # == Parameters:
377
377
  # organization_id::
378
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
378
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
379
379
  # The type of this field is +String+.
380
380
  # connection_id::
381
381
  # The ID of the SCIM connection.
@@ -422,7 +422,7 @@ module StytchB2B
422
422
  #
423
423
  # == Parameters:
424
424
  # organization_id::
425
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
425
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
426
426
  # The type of this field is +String+.
427
427
  # display_name::
428
428
  # A human-readable display name for the connection.
@@ -464,7 +464,7 @@ module StytchB2B
464
464
  #
465
465
  # == Parameters:
466
466
  # organization_id::
467
- # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug here as a convenience.
467
+ # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
468
468
  # The type of this field is +String+.
469
469
  #
470
470
  # == Returns: