Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@usecapsule/user-management-client

Package Overview
Dependencies
Maintainers
13
Versions
134
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 0.16.0 to 0.17.0

11

client.ts

@@ -82,4 +82,10 @@ import axios, { AxiosInstance, AxiosRequestHeaders, AxiosResponseHeaders } from 'axios';

export enum SignatureScheme {
DKLS = 'DKLS',
CGGMP = 'CGGMP',
}
interface createWalletBody {
useTwoSigners?: boolean
scheme: SignatureScheme
}

@@ -547,4 +553,5 @@

async distributeCapsuleShare(userId: string, walletId: string) {
const res = await this.baseRequest.post<any>(`/users/${userId}/wallets/${walletId}/capsule-share/distribute`);
async distributeCapsuleShare(userId: string, walletId: string, useDKLS: boolean) {
const body = { useDKLS };
const res = await this.baseRequest.post<any>(`/users/${userId}/wallets/${walletId}/capsule-share/distribute`, body);
return res;

@@ -551,0 +558,0 @@ }

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

}
export declare enum SignatureScheme {
DKLS = "DKLS",
CGGMP = "CGGMP"
}
interface createWalletBody {
useTwoSigners?: boolean;
scheme: SignatureScheme;
}

@@ -161,4 +166,4 @@ interface createWalletRes {

getPolicyPermissions(userId: string, policyId: string): Promise<import("axios").AxiosResponse<any, any>>;
distributeCapsuleShare(userId: string, walletId: string): Promise<import("axios").AxiosResponse<any, any>>;
distributeCapsuleShare(userId: string, walletId: string, useDKLS: boolean): Promise<import("axios").AxiosResponse<any, any>>;
}
export default Client;

13

dist/client.js

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

})(PublicKeyType || (PublicKeyType = {}));
export var SignatureScheme;
(function (SignatureScheme) {
SignatureScheme["DKLS"] = "DKLS";
SignatureScheme["CGGMP"] = "CGGMP";
})(SignatureScheme || (SignatureScheme = {}));
export var Chain;

@@ -780,8 +785,10 @@ (function (Chain) {

};
Client.prototype.distributeCapsuleShare = function (userId, walletId) {
Client.prototype.distributeCapsuleShare = function (userId, walletId, useDKLS) {
return __awaiter(this, void 0, void 0, function () {
var res;
var body, res;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.baseRequest.post("/users/".concat(userId, "/wallets/").concat(walletId, "/capsule-share/distribute"))];
case 0:
body = { useDKLS: useDKLS };
return [4 /*yield*/, this.baseRequest.post("/users/".concat(userId, "/wallets/").concat(walletId, "/capsule-share/distribute"), body)];
case 1:

@@ -788,0 +795,0 @@ res = _a.sent();

{
"name": "@usecapsule/user-management-client",
"version": "0.16.0",
"version": "0.17.0",
"main": "dist/client.js",

@@ -5,0 +5,0 @@ "types": "dist/client.d.ts",

Sorry, the diff of this file is not supported yet

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