Skip to content

Commit

Permalink
Mark preserve_existing_sessions optional (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-stytch authored Dec 15, 2023
1 parent 4b94ab7 commit 2645bfc
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 42 deletions.
4 changes: 2 additions & 2 deletions dist/b2b/organizations_members.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions lib/b2b/organizations_members.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,14 +390,6 @@ export interface B2BOrganizationsMembersUpdateRequest {
* operations on a Member, so be sure to preserve this value.
*/
member_id: string;
/**
* (Coming Soon) Whether to preserve existing sessions when explicit Roles that are revoked are also
* implicitly assigned
* by SSO connection or SSO group. Defaults to `false` - that is, existing Member Sessions that contain
* SSO
* authentication factors with the affected SSO connection IDs will be revoked.
*/
preserve_existing_sessions: boolean;
/**
* The name of the Member.
*
Expand Down Expand Up @@ -477,10 +469,18 @@ export interface B2BOrganizationsMembersUpdateRequest {
* the
* `preserve_existing_sessions` parameter with a value of `true`.
*
* If this field is provided, the logged-in Member must have permission to perform the
* `update.settings.roles` action on the `stytch.member` Resource.
* 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.roles` action on the `stytch.member` Resource.
*/
roles?: string[];
/**
* (Coming Soon) Whether to preserve existing sessions when explicit Roles that are revoked are also
* implicitly assigned
* by SSO connection or SSO group. Defaults to `false` - that is, existing Member Sessions that contain
* SSO
* authentication factors with the affected SSO connection IDs will be revoked.
*/
preserve_existing_sessions?: boolean;
}

// Response type for `organizations.members.update`.
Expand Down Expand Up @@ -551,14 +551,14 @@ export class Members {
url: `/v1/b2b/organizations/${data.organization_id}/members/${data.member_id}`,
headers,
data: {
preserve_existing_sessions: data.preserve_existing_sessions,
name: data.name,
trusted_metadata: data.trusted_metadata,
untrusted_metadata: data.untrusted_metadata,
is_breakglass: data.is_breakglass,
mfa_phone_number: data.mfa_phone_number,
mfa_enrolled: data.mfa_enrolled,
roles: data.roles,
preserve_existing_sessions: data.preserve_existing_sessions,
},
});
}
Expand Down
16 changes: 8 additions & 8 deletions lib/b2b/passwords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,6 @@ export interface B2BPasswordsMigrateRequest {
* perform operations on an Organization, so be sure to preserve this value.
*/
organization_id: string;
/**
* (Coming Soon) Whether to preserve existing sessions when explicit Roles that are revoked are also
* implicitly assigned
* by SSO connection or SSO group. Defaults to `false` - that is, existing Member Sessions that contain
* SSO
* authentication factors with the affected SSO connection IDs will be revoked.
*/
preserve_existing_sessions: boolean;
// Optional parameters for MD-5 hash types.
md_5_config?: MD5Config;
// Required parameters if the argon2 hex form, as opposed to the encoded form, is supplied.
Expand Down Expand Up @@ -237,6 +229,14 @@ export interface B2BPasswordsMigrateRequest {
* `preserve_existing_sessions` parameter with a value of `true`.
*/
roles?: string[];
/**
* (Coming Soon) Whether to preserve existing sessions when explicit Roles that are revoked are also
* implicitly assigned
* by SSO connection or SSO group. Defaults to `false` - that is, existing Member Sessions that contain
* SSO
* authentication factors with the affected SSO connection IDs will be revoked.
*/
preserve_existing_sessions?: boolean;
}

// Response type for `passwords.migrate`.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stytch",
"version": "10.0.0",
"version": "10.0.1",
"description": "A wrapper for the Stytch API",
"types": "./types/lib/index.d.ts",
"main": "./dist/index.js",
Expand Down
20 changes: 10 additions & 10 deletions types/lib/b2b/organizations_members.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions types/lib/b2b/passwords.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2645bfc

Please sign in to comment.