stytch 9.2.0 → 9.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stytch/b2b_organizations.rb +87 -0
- 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: d26559911b9b0677b360db5707cc19a0faead0a0420bd7ec7612766184dde63b
|
4
|
+
data.tar.gz: 37ed33c882f14ef4cb40e925f9dc62362a7674621a7ed032a5afca2a753cd503
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c751854693f03128c410031c7647982a0702d8971ebb2df47a5c542b25df668faa4309587dbd00d5c415166dc5aebb5db26fbf7b350eff6f4129be9bd3fc38cd
|
7
|
+
data.tar.gz: 82ac37c5f69e67fe207a06fa61809844b0a9084e0ec73d4820f3f4e8896e74ab0010750663aa910e564dc2cb7135faa1dbd8d492ba94e3b8fad069bcfbab4931
|
@@ -631,6 +631,25 @@ module StytchB2B
|
|
631
631
|
end
|
632
632
|
end
|
633
633
|
|
634
|
+
class UnlinkRetiredEmailRequestOptions
|
635
|
+
# Optional authorization object.
|
636
|
+
# Pass in an active Stytch Member session token or session JWT and the request
|
637
|
+
# will be run using that member's permissions.
|
638
|
+
attr_accessor :authorization
|
639
|
+
|
640
|
+
def initialize(
|
641
|
+
authorization: nil
|
642
|
+
)
|
643
|
+
@authorization = authorization
|
644
|
+
end
|
645
|
+
|
646
|
+
def to_headers
|
647
|
+
headers = {}
|
648
|
+
headers.merge!(@authorization.to_headers) if authorization
|
649
|
+
headers
|
650
|
+
end
|
651
|
+
end
|
652
|
+
|
634
653
|
class CreateRequestOptions
|
635
654
|
# Optional authorization object.
|
636
655
|
# Pass in an active Stytch Member session token or session JWT and the request
|
@@ -1078,6 +1097,74 @@ module StytchB2B
|
|
1078
1097
|
get_request(request, headers)
|
1079
1098
|
end
|
1080
1099
|
|
1100
|
+
# Unlinks a retired email address from a Member specified by their `organization_id` and `member_id`. The email address
|
1101
|
+
# to be retired can be identified in the request body by either its `email_id`, its `email_address`, or both. If using
|
1102
|
+
# both identifiers they must refer to the same email.
|
1103
|
+
#
|
1104
|
+
# A previously active email address can be marked as retired in one of two ways:
|
1105
|
+
#
|
1106
|
+
# - It's replaced with a new primary email address during an explicit Member update.
|
1107
|
+
# - A new email address is surfaced by an OAuth, SAML or OIDC provider. In this case the new email address becomes the
|
1108
|
+
# Member's primary email address and the old primary email address is retired.
|
1109
|
+
#
|
1110
|
+
# A retired email address cannot be used by other Members in the same Organization. However, unlinking retired email
|
1111
|
+
# addresses allows then to be subsequently re-used by other Organization Members. Retired email addresses can be viewed
|
1112
|
+
# on the [Member object](https://stytch.com/docs/b2b/api/member-object).
|
1113
|
+
# %}
|
1114
|
+
#
|
1115
|
+
# == Parameters:
|
1116
|
+
# organization_id::
|
1117
|
+
# 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.
|
1118
|
+
# The type of this field is +String+.
|
1119
|
+
# member_id::
|
1120
|
+
# 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.
|
1121
|
+
# The type of this field is +String+.
|
1122
|
+
# email_id::
|
1123
|
+
# The globally unique UUID of a Member's email.
|
1124
|
+
# The type of this field is nilable +String+.
|
1125
|
+
# email_address::
|
1126
|
+
# The email address of the Member.
|
1127
|
+
# The type of this field is nilable +String+.
|
1128
|
+
#
|
1129
|
+
# == Returns:
|
1130
|
+
# An object with the following fields:
|
1131
|
+
# request_id::
|
1132
|
+
# 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.
|
1133
|
+
# The type of this field is +String+.
|
1134
|
+
# member_id::
|
1135
|
+
# Globally unique UUID that identifies a specific Member.
|
1136
|
+
# The type of this field is +String+.
|
1137
|
+
# organization_id::
|
1138
|
+
# 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.
|
1139
|
+
# The type of this field is +String+.
|
1140
|
+
# member::
|
1141
|
+
# The [Member object](https://stytch.com/docs/b2b/api/member-object)
|
1142
|
+
# The type of this field is +Member+ (+object+).
|
1143
|
+
# organization::
|
1144
|
+
# The [Organization object](https://stytch.com/docs/b2b/api/organization-object).
|
1145
|
+
# The type of this field is +Organization+ (+object+).
|
1146
|
+
# status_code::
|
1147
|
+
# 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.
|
1148
|
+
# The type of this field is +Integer+.
|
1149
|
+
#
|
1150
|
+
# == Method Options:
|
1151
|
+
# This method supports an optional +StytchB2B::Organizations::Members::UnlinkRetiredEmailRequestOptions+ object which will modify the headers sent in the HTTP request.
|
1152
|
+
def unlink_retired_email(
|
1153
|
+
organization_id:,
|
1154
|
+
member_id:,
|
1155
|
+
email_id: nil,
|
1156
|
+
email_address: nil,
|
1157
|
+
method_options: nil
|
1158
|
+
)
|
1159
|
+
headers = {}
|
1160
|
+
headers = headers.merge(method_options.to_headers) unless method_options.nil?
|
1161
|
+
request = {}
|
1162
|
+
request[:email_id] = email_id unless email_id.nil?
|
1163
|
+
request[:email_address] = email_address unless email_address.nil?
|
1164
|
+
|
1165
|
+
post_request("/v1/b2b/organizations/#{organization_id}/members/#{member_id}/unlink_retired_email", request, headers)
|
1166
|
+
end
|
1167
|
+
|
1081
1168
|
# Creates a Member. An `organization_id` and `email_address` are required.
|
1082
1169
|
#
|
1083
1170
|
# == Parameters:
|
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: 9.
|
4
|
+
version: 9.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stytch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|