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.15.0 to 1.16.0

14

dist/cjs/client.js

@@ -26,3 +26,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.OnRampPurchaseStatus = exports.OnRampAsset = exports.OnRampProvider = exports.KeyType = exports.EncryptorType = exports.Chain = exports.SignatureScheme = exports.PublicKeyType = exports.PublicKeyStatus = exports.EmailTheme = exports.USER_NOT_MATCHING_ERROR = exports.USER_NOT_AUTHENTICATED_ERROR = exports.USER_NOT_VERIFIED = void 0;
exports.OnRampPurchaseStatus = exports.OnRampAsset = exports.OnRampProvider = exports.Network = exports.KeyType = exports.EncryptorType = exports.Chain = exports.SignatureScheme = exports.PublicKeyType = exports.PublicKeyStatus = exports.EmailTheme = exports.USER_NOT_MATCHING_ERROR = exports.USER_NOT_AUTHENTICATED_ERROR = exports.USER_NOT_VERIFIED = void 0;
const axios_1 = __importDefault(require("axios"));

@@ -70,2 +70,10 @@ const qs_1 = __importDefault(require("qs"));

};
var Network;
(function (Network) {
Network["ETHEREUM"] = "ETHEREUM";
Network["ARBITRUM"] = "ARBITRUM";
Network["BASE"] = "BASE";
Network["OPTIMISM"] = "OPTIMISM";
Network["POLYGON"] = "POLYGON";
})(Network || (exports.Network = Network = {}));
var OnRampProvider;

@@ -80,2 +88,3 @@ (function (OnRampProvider) {

OnRampAsset["USDC"] = "USDC";
OnRampAsset["POLYGON"] = "POLYGON";
})(OnRampAsset || (exports.OnRampAsset = OnRampAsset = {}));

@@ -538,6 +547,7 @@ var OnRampPurchaseStatus;

}
createOnRampPurchase(userId, walletId, provider, asset, testMode = false) {
createOnRampPurchase(userId, walletId, provider, network, asset, testMode = false) {
return __awaiter(this, void 0, void 0, function* () {
const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/purchases`, {
provider,
network,
asset,

@@ -544,0 +554,0 @@ testMode,

@@ -63,2 +63,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

};
export var Network;
(function (Network) {
Network["ETHEREUM"] = "ETHEREUM";
Network["ARBITRUM"] = "ARBITRUM";
Network["BASE"] = "BASE";
Network["OPTIMISM"] = "OPTIMISM";
Network["POLYGON"] = "POLYGON";
})(Network || (Network = {}));
export var OnRampProvider;

@@ -73,2 +81,3 @@ (function (OnRampProvider) {

OnRampAsset["USDC"] = "USDC";
OnRampAsset["POLYGON"] = "POLYGON";
})(OnRampAsset || (OnRampAsset = {}));

@@ -531,6 +540,7 @@ export var OnRampPurchaseStatus;

}
createOnRampPurchase(userId, walletId, provider, asset, testMode = false) {
createOnRampPurchase(userId, walletId, provider, network, asset, testMode = false) {
return __awaiter(this, void 0, void 0, function* () {
const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/purchases`, {
provider,
network,
asset,

@@ -537,0 +547,0 @@ testMode,

@@ -176,2 +176,9 @@ export declare const USER_NOT_VERIFIED = "user must verify biometrics";

};
export declare enum Network {
ETHEREUM = "ETHEREUM",
ARBITRUM = "ARBITRUM",
BASE = "BASE",
OPTIMISM = "OPTIMISM",
POLYGON = "POLYGON"
}
export declare enum OnRampProvider {

@@ -183,3 +190,4 @@ RAMP = "RAMP",

ETHEREUM = "ETHEREUM",
USDC = "USDC"
USDC = "USDC",
POLYGON = "POLYGON"
}

@@ -279,3 +287,3 @@ export declare enum OnRampPurchaseStatus {

getPolicyPermissions(userId: string, policyId: string): Promise<import("axios").AxiosResponse<any, any>>;
createOnRampPurchase(userId: string, walletId: string, provider: OnRampProvider, asset: OnRampAsset, testMode?: boolean): Promise<import("axios").AxiosResponse<OnRampPurchase, any>>;
createOnRampPurchase(userId: string, walletId: string, provider: OnRampProvider, network: Network, asset: OnRampAsset, testMode?: boolean): Promise<import("axios").AxiosResponse<OnRampPurchase, any>>;
updateOnRampPurchase(userId: string, walletId: string, purchaseId: string, updates: Partial<Pick<OnRampPurchase, 'status' | 'fiatCurrency' | 'fiatQuantity' | 'providerKey'>>): Promise<import("axios").AxiosResponse<OnRampPurchase, any>>;

@@ -282,0 +290,0 @@ getOnRampPurchase(userId: string, walletId: string, purchaseId: string): Promise<import("axios").AxiosResponse<OnRampPurchase, any>>;

4

package.json
{
"name": "@usecapsule/user-management-client",
"version": "1.15.0",
"version": "1.16.0",
"main": "dist/cjs/index.js",

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

},
"gitHead": "8f2feee0e3ce58f9277af7a13b002c8d296d23b0"
"gitHead": "ede5c170a08cd7ee2b9ddfaf33e458934e18ce7c"
}
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