Socket
Socket
Sign inDemoInstall

@usecapsule/user-management-client

Package Overview
Dependencies
Maintainers
7
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@usecapsule/user-management-client - npm Package Compare versions

Comparing version 1.12.0 to 1.13.0

6

dist/cjs/client.js

@@ -185,5 +185,5 @@ "use strict";

});
// GET /wallets/pregen?email={email}
this.getPregenWallets = (email) => __awaiter(this, void 0, void 0, function* () {
const res = yield this.baseRequest.get(`/wallets/pregen?email=${encodeURIComponent(email)}`);
// GET /wallets/pregen?pregenIdentifier={pregenIdentifier}&pregenIdentifierType={pregenIdentifierType}
this.getPregenWallets = (pregenIdentifier, pregenIdentifierType) => __awaiter(this, void 0, void 0, function* () {
const res = yield this.baseRequest.get(`/wallets/pregen?pregenIdentifier=${encodeURIComponent(pregenIdentifier)}&pregenIdentifierType=${encodeURIComponent(pregenIdentifierType)}`);
return res.data;

@@ -190,0 +190,0 @@ });

@@ -179,5 +179,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

});
// GET /wallets/pregen?email={email}
this.getPregenWallets = (email) => __awaiter(this, void 0, void 0, function* () {
const res = yield this.baseRequest.get(`/wallets/pregen?email=${encodeURIComponent(email)}`);
// GET /wallets/pregen?pregenIdentifier={pregenIdentifier}&pregenIdentifierType={pregenIdentifierType}
this.getPregenWallets = (pregenIdentifier, pregenIdentifierType) => __awaiter(this, void 0, void 0, function* () {
const res = yield this.baseRequest.get(`/wallets/pregen?pregenIdentifier=${encodeURIComponent(pregenIdentifier)}&pregenIdentifierType=${encodeURIComponent(pregenIdentifierType)}`);
return res.data;

@@ -184,0 +184,0 @@ });

@@ -102,6 +102,7 @@ export declare const USER_NOT_VERIFIED = "user must verify biometrics";

}
interface walletEntity {
export interface WalletEntity {
address: string | null;
createdAt: string;
email: string;
pregenIdentifier: string;
pregenIdentifierType: string;
id: string;

@@ -118,3 +119,3 @@ keyGenComplete: boolean;

interface getWalletsRes {
wallets: walletEntity[];
wallets: WalletEntity[];
}

@@ -126,3 +127,4 @@ interface createWalletBody {

interface updatePregenWalletBody {
email: string;
pregenIdentifier: string;
pregenIdentifierType: string;
}

@@ -134,3 +136,4 @@ interface createWalletRes {

interface createPreGenWalletBody {
email: string;
pregenIdentifier: string;
pregenIdentifierType: string;
scheme?: SignatureScheme;

@@ -220,3 +223,3 @@ }

createPregenWallet: (body?: createPreGenWalletBody) => Promise<createWalletRes>;
getPregenWallets: (email: string) => Promise<getWalletsRes>;
getPregenWallets: (pregenIdentifier: string, pregenIdentifierType: string) => Promise<getWalletsRes>;
claimPregenWallet: (body?: claimPreGenWalletBody) => Promise<void>;

@@ -223,0 +226,0 @@ sendTransaction: (userId: string, walletId: string, body: sendTransactionBody) => Promise<any>;

{
"name": "@usecapsule/user-management-client",
"version": "1.12.0",
"version": "1.13.0",
"main": "dist/cjs/index.js",

@@ -33,3 +33,3 @@ "module": "dist/esm/index.js",

},
"gitHead": "41dd49a5be1ebb9a723a52a40b2b65c15acc2379"
"gitHead": "3776532fb0aa1dec9c952a5c35d4340af7dd0a0e"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc