Comparing version 10.8.0 to 10.9.0
@@ -51,3 +51,5 @@ "use strict"; | ||
headers, | ||
params: {} | ||
params: { | ||
include_refresh_token: params.include_refresh_token | ||
} | ||
}); | ||
@@ -74,3 +76,5 @@ } | ||
headers, | ||
params: {} | ||
params: { | ||
include_refresh_token: params.include_refresh_token | ||
} | ||
}); | ||
@@ -77,0 +81,0 @@ } |
@@ -11,3 +11,7 @@ "use strict"; | ||
if (requestConfig.params) { | ||
Object.entries(requestConfig.params).forEach(([key, value]) => url.searchParams.append(key, String(value))); | ||
Object.entries(requestConfig.params).forEach(([key, value]) => { | ||
if (value !== undefined) { | ||
url.searchParams.append(key, String(value)); | ||
} | ||
}); | ||
} | ||
@@ -14,0 +18,0 @@ const finalHeaders = { |
{ | ||
"name": "stytch", | ||
"version": "10.8.0", | ||
"version": "10.9.0", | ||
"description": "A wrapper for the Stytch API", | ||
@@ -5,0 +5,0 @@ "types": "./types/lib/index.d.ts", |
@@ -187,3 +187,3 @@ # Stytch Node.js Library | ||
If you have questions or want help troubleshooting, join us in [Slack](https://join.slack.com/t/stytch/shared_invite/zt-nil4wo92-jApJ9Cl32cJbEd9esKkvyg) or email support@stytch.com. | ||
If you have questions or want help troubleshooting, join us in [Slack](https://stytch.slack.com/join/shared_invite/zt-2f0fi1ruu-ub~HGouWRmPARM1MTwPESA) or email support@stytch.com. | ||
@@ -190,0 +190,0 @@ If you've found a security vulnerability, please follow our [responsible disclosure instructions](https://stytch.com/docs/resources/security-and-trust/security#:~:text=Responsible%20disclosure%20program). |
@@ -37,2 +37,3 @@ import { fetchConfig } from "../shared"; | ||
status_code: number; | ||
refresh_token?: string; | ||
} | ||
@@ -54,2 +55,3 @@ /** | ||
member_id: string; | ||
include_refresh_token?: boolean; | ||
} | ||
@@ -91,2 +93,3 @@ export interface B2BOrganizationsMembersOAuthProvidersMicrosoftResponse { | ||
status_code: number; | ||
refresh_token?: string; | ||
} | ||
@@ -93,0 +96,0 @@ export declare class OAuthProviders { |
@@ -735,3 +735,3 @@ import { Authorization } from "../shared/method_options"; | ||
*/ | ||
rbac_email_implicit_role_assignments?: string[]; | ||
rbac_email_implicit_role_assignments?: EmailImplicitRoleAssignment[]; | ||
/** | ||
@@ -738,0 +738,0 @@ * The setting that controls which MFA methods can be used by Members of an Organization. The accepted |
import { Authorization } from "../shared/method_options"; | ||
import { fetchConfig } from "../shared"; | ||
import { SAMLConnection } from "./sso"; | ||
import { SAMLConnection, SAMLConnectionImplicitRoleAssignment, SAMLGroupImplicitRoleAssignment } from "./sso"; | ||
export interface B2BSSOSAMLCreateConnectionRequestOptions { | ||
@@ -134,3 +134,3 @@ /** | ||
*/ | ||
saml_connection_implicit_role_assignments?: string[]; | ||
saml_connection_implicit_role_assignments?: SAMLConnectionImplicitRoleAssignment[]; | ||
/** | ||
@@ -148,3 +148,3 @@ * Defines the names of the SAML groups | ||
*/ | ||
saml_group_implicit_role_assignments?: string[]; | ||
saml_group_implicit_role_assignments?: SAMLGroupImplicitRoleAssignment[]; | ||
/** | ||
@@ -151,0 +151,0 @@ * An alternative URL to use for the Audience Restriction. This value can be used when you wish to migrate |
@@ -55,5 +55,31 @@ import { Authorization } from "../shared/method_options"; | ||
export interface SAMLConnectionImplicitRoleAssignment { | ||
/** | ||
* The unique identifier of the RBAC Role, provided by the developer and intended to be human-readable. | ||
* | ||
* Reserved `role_id`s that are predefined by Stytch include: | ||
* | ||
* * `stytch_member` | ||
* * `stytch_admin` | ||
* | ||
* Check out the [guide on Stytch default Roles](https://stytch.com/docs/b2b/guides/rbac/stytch-defaults) | ||
* for a more detailed explanation. | ||
* | ||
* | ||
*/ | ||
role_id: string; | ||
} | ||
export interface SAMLGroupImplicitRoleAssignment { | ||
/** | ||
* The unique identifier of the RBAC Role, provided by the developer and intended to be human-readable. | ||
* | ||
* Reserved `role_id`s that are predefined by Stytch include: | ||
* | ||
* * `stytch_member` | ||
* * `stytch_admin` | ||
* | ||
* Check out the [guide on Stytch default Roles](https://stytch.com/docs/b2b/guides/rbac/stytch-defaults) | ||
* for a more detailed explanation. | ||
* | ||
* | ||
*/ | ||
role_id: string; | ||
@@ -60,0 +86,0 @@ group: string; |
@@ -11,3 +11,3 @@ import type { Dispatcher } from "undici"; | ||
method: "GET" | "DELETE" | "POST" | "PUT"; | ||
params?: Record<string, string | number>; | ||
params?: Record<string, string | number | boolean | undefined>; | ||
data?: unknown; | ||
@@ -14,0 +14,0 @@ dataRaw?: BodyInit; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
703306
15140