Comparing version 3.11.2 to 3.12.0
@@ -14,2 +14,4 @@ "use strict"; | ||
var _crypto_wallets = require("./crypto_wallets"); | ||
var _users = require("./users"); | ||
@@ -77,2 +79,3 @@ | ||
this.webauthn = new _webauthn.WebAuthn(this.client); | ||
this.cryptoWallets = new _crypto_wallets.CryptoWallets(this.client); | ||
} | ||
@@ -79,0 +82,0 @@ /** @deprecated since version 3.0. Will be deleted in version 4.0. Use users.create instead. */ |
@@ -159,2 +159,9 @@ "use strict"; | ||
deleteCryptoWallet(cryptoWalletID) { | ||
return (0, _shared.request)(this.client, { | ||
method: "DELETE", | ||
url: this.endpoint(`crypto_wallets/${cryptoWalletID}`) | ||
}); | ||
} | ||
} | ||
@@ -161,0 +168,0 @@ |
{ | ||
"name": "stytch", | ||
"version": "3.11.2", | ||
"version": "3.12.0", | ||
"description": "A wrapper for the Stytch API", | ||
@@ -5,0 +5,0 @@ "types": "./types/lib/index.d.ts", |
@@ -30,2 +30,3 @@ # Stytch Node.js Library | ||
- [x] [Time-based one-time passcodes (TOTPs) (Beta)](https://stytch.com/docs/api/totps-overview) | ||
- [x] [Crypto wallets (Beta)](https://stytch.com/docs/api/crypto-wallet-overview) | ||
@@ -32,0 +33,0 @@ ### Example usage |
@@ -0,1 +1,2 @@ | ||
import { CryptoWallets } from "./crypto_wallets"; | ||
import { Users } from "./users"; | ||
@@ -25,2 +26,3 @@ import { MagicLinks } from "./magic_links"; | ||
webauthn: WebAuthn; | ||
cryptoWallets: CryptoWallets; | ||
private client; | ||
@@ -27,0 +29,0 @@ constructor(config: Config); |
@@ -31,2 +31,8 @@ import type { AxiosInstance, AxiosRequestConfig } from "axios"; | ||
} | ||
export interface CryptoWallet { | ||
crypto_wallet_id: string; | ||
crypto_wallet_address: string; | ||
crypto_wallet_type: string; | ||
verified: boolean; | ||
} | ||
export interface OAuthProvider { | ||
@@ -130,3 +136,13 @@ provider_subject: string; | ||
} | ||
export declare type AuthenticationFactor = EmailFactor | PhoneNumberFactor | GoogleOAuthFactor | MicrosoftOAuthFactor | AppleOAuthFactor | GithubOAuthFactor | FacebookOAuthFactor | WebAuthnFactor | AuthenticatorAppFactor | RecoveryCodeFactor; | ||
export interface CryptoWalletFactor { | ||
delivery_method: "crypto_wallet"; | ||
type: string; | ||
last_authenticated_at: string; | ||
crypto_wallet_factor: { | ||
crypto_wallet_id: string; | ||
crypto_wallet_address: string; | ||
crypto_wallet_type: string; | ||
}; | ||
} | ||
export declare type AuthenticationFactor = EmailFactor | PhoneNumberFactor | GoogleOAuthFactor | MicrosoftOAuthFactor | AppleOAuthFactor | GithubOAuthFactor | FacebookOAuthFactor | WebAuthnFactor | AuthenticatorAppFactor | RecoveryCodeFactor | CryptoWalletFactor; | ||
export interface Session { | ||
@@ -133,0 +149,0 @@ session_id: string; |
import { OAuthProvider } from "./shared"; | ||
import type { AxiosInstance } from "axios"; | ||
import type { Attributes, BaseResponse, Email, Name, PhoneNumber, WebAuthnRegistration, TOTP } from "./shared"; | ||
import type { Attributes, BaseResponse, Email, Name, PhoneNumber, WebAuthnRegistration, TOTP, CryptoWallet } from "./shared"; | ||
export declare type UserID = string; | ||
@@ -10,2 +10,3 @@ export interface PendingUser { | ||
phone_numbers: PhoneNumber[]; | ||
crypto_wallet: CryptoWallet[]; | ||
status: string; | ||
@@ -38,2 +39,3 @@ invited_at: string; | ||
totps: TOTP[]; | ||
crypto_wallets: CryptoWallet[]; | ||
} | ||
@@ -100,2 +102,11 @@ export declare type GetResponse = BaseResponse & User; | ||
} | { | ||
filter_name: "crypto_wallet_id"; | ||
filter_value: string[]; | ||
} | { | ||
filter_name: "crypto_wallet_address"; | ||
filter_value: string[]; | ||
} | { | ||
filter_name: "crypto_wallet_verified"; | ||
filter_value: boolean; | ||
} | { | ||
filter_name: "totp_id"; | ||
@@ -130,2 +141,6 @@ filter_value: string[]; | ||
}[]; | ||
crypto_wallets?: { | ||
crypto_wallet_address: string; | ||
crypto_wallet_type: string; | ||
}[]; | ||
attributes?: Attributes; | ||
@@ -137,2 +152,3 @@ } | ||
phone_numbers: PhoneNumber[]; | ||
crypto_wallets: CryptoWallet[]; | ||
} | ||
@@ -164,2 +180,5 @@ export interface DeleteResponse extends BaseResponse { | ||
} | ||
export interface DeleteCryptoWalletResponse extends BaseResponse { | ||
user_id: UserID; | ||
} | ||
export declare class UserSearchIterator { | ||
@@ -190,3 +209,4 @@ private client; | ||
deleteTOTP(totpID: string): Promise<DeleteTOTPResponse>; | ||
deleteCryptoWallet(cryptoWalletID: string): Promise<DeleteCryptoWalletResponse>; | ||
} | ||
export {}; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
56220
30
1563
102
0