Comparing version 1.2.3 to 2.0.0
@@ -103,10 +103,2 @@ 'use strict'; | ||
// MAGIC LINKS | ||
Client.prototype.sendMagicLink = | ||
function(request, cb) { | ||
return this._authenticatedRequest({ | ||
path: 'magic_links/send', | ||
body: request, | ||
},'POST', cb); | ||
}; | ||
Client.prototype.sendMagicLinkByEmail = | ||
@@ -113,0 +105,0 @@ function(request, cb) { |
{ | ||
"name": "stytch", | ||
"version": "1.2.3", | ||
"version": "2.0.0", | ||
"description": "A wrapper for the Stytch API", | ||
@@ -5,0 +5,0 @@ "main": "lib/stytch.js", |
@@ -61,2 +61,3 @@ declare module 'stytch' { | ||
name?: Name; | ||
create_user_as_pending?: boolean; | ||
attributes?: Attributes; | ||
@@ -118,18 +119,8 @@ } | ||
// MAGIC LINKS | ||
interface SendMagicLinkRequest { | ||
user_id: string; | ||
method_id: string; | ||
magic_link_url: string; | ||
expiration_minutes?: bigint; | ||
attributes?: Attributes; | ||
} | ||
interface SendMagicLinkResponse extends BaseResponse { | ||
user_id: string; | ||
} | ||
interface SendMagicLinkByEmailRequest { | ||
email: string; | ||
magic_link_url: string; | ||
expiration_minutes?: bigint; | ||
login_magic_link_url: string; | ||
signup_magic_link_url: string; | ||
login_expiration_minutes?: bigint; | ||
signup_expiration_minutes?: bigint; | ||
attributes?: Attributes; | ||
@@ -161,4 +152,4 @@ } | ||
email: string; | ||
magic_link_url: string; | ||
expiration_minutes?: bigint; | ||
invite_magic_link_url: string; | ||
invite_expiration_minutes?: bigint; | ||
name?: Name; | ||
@@ -297,11 +288,2 @@ attributes?: Attributes; | ||
// MAGIC LINKS | ||
sendMagicLink( | ||
request: SendMagicLinkRequest | ||
): Promise<SendMagicLinkResponse>; | ||
sendMagicLink( | ||
request: SendMagicLinkRequest, | ||
cb: Callback<SendMagicLinkResponse>, | ||
): void; | ||
sendMagicLinkByEmail( | ||
@@ -308,0 +290,0 @@ request: SendMagicLinkByEmailRequest |
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
22178
578