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

@usecapsule/core-sdk

Package Overview
Dependencies
Maintainers
7
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@usecapsule/core-sdk - npm Package Compare versions

Comparing version 1.22.0 to 1.23.0-dev.1

9

dist/cjs/definitions.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPortalBaseURL = exports.getPortalDomain = exports.getNetwork = exports.getProviderAssetInverse = exports.getProviderNetworkAndAssetCode = exports.WalletSchemeMap = exports.getAsset = exports.getProvider = exports.OnRampMethod = exports.OnRampProviderAssetMap = exports.OnRampProviderNetworkMap = exports.OnRampAssetMap = exports.OnRampProviderMap = exports.SupportedOnRamps = exports.NetworkMap = exports.OAuthMethod = exports.Environment = exports.is2FAEnabled = exports.OnRampPurchaseStatus = exports.OnRampProvider = exports.OnRampAsset = exports.Network = void 0;
exports.CURRENT_WALLET_IDS_CHANGE_EVENT = exports.EXTERNAL_WALLET_CHANGE_EVENT = exports.getPortalBaseURL = exports.getPortalDomain = exports.getNetwork = exports.getProviderAssetInverse = exports.getProviderNetworkAndAssetCode = exports.WalletSchemeMap = exports.getAsset = exports.getProvider = exports.OnRampMethod = exports.OnRampProviderAssetMap = exports.OnRampProviderNetworkMap = exports.EnabledFlow = exports.OnRampAssetMap = exports.OnRampProviderMap = exports.SupportedOnRamps = exports.NetworkMap = exports.OAuthMethod = exports.Environment = exports.is2FAEnabled = exports.OnRampPurchaseStatus = exports.OnRampProvider = exports.OnRampAsset = exports.Network = void 0;
const buffer_1 = require("buffer");

@@ -119,2 +119,7 @@ if (typeof global !== 'undefined') {

};
var EnabledFlow;
(function (EnabledFlow) {
EnabledFlow["BUY"] = "BUY";
EnabledFlow["RECEIVE"] = "RECEIVE";
})(EnabledFlow || (exports.EnabledFlow = EnabledFlow = {}));
exports.OnRampProviderNetworkMap = {

@@ -224,1 +229,3 @@ [user_management_client_1.OnRampProvider.RAMP]: {

exports.getPortalBaseURL = getPortalBaseURL;
exports.EXTERNAL_WALLET_CHANGE_EVENT = 'capsuleExternalWalletChange';
exports.CURRENT_WALLET_IDS_CHANGE_EVENT = 'capsuleCurrentWalletIdsChange';

10

dist/cjs/index.js

@@ -29,3 +29,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.capsuleVersion = exports.EmailTheme = exports.PregenIdentifierType = exports.STORAGE_PREFIX = exports.transmissionUtilsRetrieve = exports.decryptPrivateKeyAndDecryptShare = exports.decryptPrivateKey = exports.encryptPrivateKey = exports.getSHA256HashHex = exports.getPublicKeyFromSignature = exports.getDerivedPrivateKeyAndDecrypt = exports.encodePrivateKeyToPemHex = exports.encryptWithDerivedPublicKey = exports.getPublicKeyHex = exports.getAsymmetricKeyPair = exports.decryptWithPrivateKey = exports.decryptWithKeyPair = exports.getBaseUrl = exports.mpcComputationClient = exports.initClient = exports.stringToPhoneNumber = exports.RecoveryStatus = exports.KeyContainer = exports.distributeNewShare = exports.NON_ED25519 = exports.WalletScheme = exports.WalletType = void 0;
exports.capsuleVersion = exports.EmailTheme = exports.getSchemes = exports.PregenIdentifierType = exports.STORAGE_PREFIX = exports.transmissionUtilsRetrieve = exports.decryptPrivateKeyAndDecryptShare = exports.decryptPrivateKey = exports.encryptPrivateKey = exports.getSHA256HashHex = exports.getPublicKeyFromSignature = exports.getDerivedPrivateKeyAndDecrypt = exports.encodePrivateKeyToPemHex = exports.encryptWithDerivedPublicKey = exports.getPublicKeyHex = exports.getAsymmetricKeyPair = exports.decryptWithPrivateKey = exports.decryptWithKeyPair = exports.getBaseUrl = exports.mpcComputationClient = exports.initClient = exports.ExternalWalletType = exports.stringToPhoneNumber = exports.RecoveryStatus = exports.KeyContainer = exports.distributeNewShare = exports.NON_ED25519 = exports.WalletScheme = exports.WalletType = void 0;
const CoreCapsule_js_1 = require("./CoreCapsule.js");
Object.defineProperty(exports, "STORAGE_PREFIX", { enumerable: true, get: function () { return CoreCapsule_js_1.PREFIX; } });
Object.defineProperty(exports, "PregenIdentifierType", { enumerable: true, get: function () { return CoreCapsule_js_1.PregenIdentifierType; } });
Object.defineProperty(exports, "getSchemes", { enumerable: true, get: function () { return CoreCapsule_js_1.getSchemes; } });
var user_management_client_1 = require("@usecapsule/user-management-client");

@@ -41,8 +45,6 @@ Object.defineProperty(exports, "WalletType", { enumerable: true, get: function () { return user_management_client_1.WalletType; } });

Object.defineProperty(exports, "KeyContainer", { enumerable: true, get: function () { return KeyContainer_js_1.KeyContainer; } });
const CoreCapsule_js_1 = require("./CoreCapsule.js");
Object.defineProperty(exports, "STORAGE_PREFIX", { enumerable: true, get: function () { return CoreCapsule_js_1.PREFIX; } });
Object.defineProperty(exports, "PregenIdentifierType", { enumerable: true, get: function () { return CoreCapsule_js_1.PregenIdentifierType; } });
var CoreCapsule_js_2 = require("./CoreCapsule.js");
Object.defineProperty(exports, "RecoveryStatus", { enumerable: true, get: function () { return CoreCapsule_js_2.RecoveryStatus; } });
Object.defineProperty(exports, "stringToPhoneNumber", { enumerable: true, get: function () { return CoreCapsule_js_2.stringToPhoneNumber; } });
Object.defineProperty(exports, "ExternalWalletType", { enumerable: true, get: function () { return CoreCapsule_js_2.ExternalWalletType; } });
var capsuleClient_js_1 = require("./external/capsuleClient.js");

@@ -49,0 +51,0 @@ Object.defineProperty(exports, "initClient", { enumerable: true, get: function () { return capsuleClient_js_1.initClient; } });

@@ -113,2 +113,7 @@ import { Buffer as NodeBuffer } from 'buffer';

};
export var EnabledFlow;
(function (EnabledFlow) {
EnabledFlow["BUY"] = "BUY";
EnabledFlow["RECEIVE"] = "RECEIVE";
})(EnabledFlow || (EnabledFlow = {}));
export const OnRampProviderNetworkMap = {

@@ -211,1 +216,3 @@ [OnRampProvider.RAMP]: {

}
export const EXTERNAL_WALLET_CHANGE_EVENT = 'capsuleExternalWalletChange';
export const CURRENT_WALLET_IDS_CHANGE_EVENT = 'capsuleCurrentWalletIdsChange';

@@ -0,1 +1,2 @@

import { CoreCapsule, PREFIX as STORAGE_PREFIX, PregenIdentifierType, getSchemes } from './CoreCapsule.js';
export { WalletType, WalletScheme, NON_ED25519 } from '@usecapsule/user-management-client';

@@ -6,4 +7,3 @@ export * from './definitions.js';

export { KeyContainer } from './shares/KeyContainer.js';
import { CoreCapsule, PREFIX as STORAGE_PREFIX, PregenIdentifierType } from './CoreCapsule.js';
export { RecoveryStatus, stringToPhoneNumber } from './CoreCapsule.js';
export { RecoveryStatus, stringToPhoneNumber, ExternalWalletType } from './CoreCapsule.js';
export { initClient } from './external/capsuleClient.js';

@@ -19,5 +19,5 @@ import * as mpcComputationClient_1 from './external/mpcComputationClient.js';

export { retrieve as transmissionUtilsRetrieve } from './transmission/transmissionUtils.js';
export { STORAGE_PREFIX, PregenIdentifierType };
export { STORAGE_PREFIX, PregenIdentifierType, getSchemes };
export { EmailTheme } from '@usecapsule/user-management-client';
export const capsuleVersion = CoreCapsule.version;
export default CoreCapsule;
import { EmailTheme, OnRampPurchase, PartnerEntity, WalletEntity, WalletType, WalletScheme } from '@usecapsule/user-management-client';
import { pki } from 'node-forge';
import { Ctx, NetworkProp, OnRampAssetProp, OnRampProviderProp } from './definitions.js';
import { Environment, OAuthMethod } from './definitions.js';
import { FullSignatureRes } from './types/walletTypes.js';
import type { pki as pkiType } from 'node-forge';
import { Ctx, NetworkProp, OnRampAssetProp, OnRampProviderProp, Environment, OAuthMethod } from './definitions.js';
import { Theme, FullSignatureRes } from './types/index.js';
import { PlatformUtils } from './PlatformUtils.js';
import { Theme } from './types/theme.js';
import { CountryCallingCode } from 'libphonenumber-js';
export declare function getSchemes(supportedWalletTypes: SupportedWalletTypes): WalletScheme[];
type WalletFilters = {

@@ -14,14 +13,9 @@ type?: WalletType[];

};
type EvmType = {
[WalletType.EVM]: true;
};
type SolanaType = {
[WalletType.SOLANA]: true;
};
type CosmosType = {
[WalletType.COSMOS]: {
prefix: string;
export type SupportedWalletTypes = {
[WalletType.EVM]?: true;
[WalletType.SOLANA]?: true;
[WalletType.COSMOS]?: true | {
prefix?: string;
};
};
export type SupportedWalletTypes = EvmType | SolanaType | CosmosType;
export declare enum RecoveryStatus {

@@ -38,2 +32,7 @@ INITIATED = "INITIATED",

}
export declare enum ExternalWalletType {
EVM = "EVM",
SOLANA = "SOLANA",
COSMOS = "COSMOS"
}
export interface Wallet {

@@ -59,2 +58,6 @@ createdAt?: string;

}
export interface ExternalWallet {
address: string;
type: ExternalWalletType;
}
export interface ConstructorOpts {

@@ -137,3 +140,5 @@ useStorageOverrides?: boolean;

/**
* Which type of wallet your application supports, in the form `{ [WalletType]: true }`. Currently allowed values for `WalletType` are `"EVM"`, `"SOLANA"`, or `"COSMOS"`.
* Which type of wallet your application supports, in the form `{ [WalletType]: true }`. Currently allowed values for `WalletType` are `'evm'`, `'solana'`, or `'cosmos'` (case insensitive).
*
* To specify which prefix to use for new Cosmos wallets, pass `{ cosmos: { prefix: 'your-prefix' } }`. Defaults to `'cosmos'`.
*/

@@ -163,3 +168,3 @@ supportedWalletTypes?: SupportedWalletTypes;

/**
* The ids of the currently active wallets. Any signer integrations will default to the first id in this list.
* The IDs of the currently active wallets. Any signer integrations will default to the first viable wallet ID in this list.
*/

@@ -172,2 +177,10 @@ currentWalletIds?: string[];

/**
* The addresses of the currently active external wallets.
*/
currentExternalWalletAddresses?: string[];
/**
* Wallets associated with the `CoreCapsule` instance.
*/
externalWallets?: Record<string, ExternalWallet>;
/**
* Base theme for the emails sent from this Capsule instance.

@@ -212,3 +225,3 @@ * @default - dark

*/
loginEncryptionKeyPair?: pki.rsa.KeyPair;
loginEncryptionKeyPair?: pkiType.rsa.KeyPair;
/**

@@ -251,2 +264,3 @@ * Hex color to use in the portal for the background color.

* Remove all local storage and prefixed session storage.
* @param {'local' | 'session' | 'secure' | 'all'} type - Type of storage to clear. Defaults to 'all'.
*/

@@ -266,5 +280,10 @@ clearStorage: (type?: 'local' | 'session' | 'secure' | 'all') => Promise<void>;

* @param walletId - the ID of the wallet address to display.
* @returns - the wallet address.
* @param options.truncate - whether to truncate the address.
* @returns - the formatted address string.
*/
getDisplayAddress(walletId: string): string;
getDisplayAddress(walletId: string, { truncate }?: {
truncate?: boolean;
} | undefined): string;
getWallets(): Record<string, Wallet>;
getAddress(walletId?: string): string | undefined;
protected abstract getPlatformUtils(): PlatformUtils;

@@ -304,2 +323,8 @@ /**

/**
* Sets the external wallet address and type associated with the `CoreCapsule` instance.
* @param externalAddress - External wallet address to set.
* @param externalType - Type of external wallet to set.
*/
setExternalWallet(externalAddress: string, externalType: ExternalWalletType): Promise<void>;
/**
* Sets the user id associated with the `CoreCapsule` instance.

@@ -315,6 +340,12 @@ * @param userId - User id to set.

/**
* Sets the external wallets associated with the `CoreCapsule` instance.
* @param externalWallets - External wallets to set.
*/
setExternalWallets(externalWallets: Record<string, ExternalWallet>): Promise<void>;
setCurrentExternalWalletAddresses(currentExternalWalletAddresses: string[]): Promise<void>;
/**
* Sets the login encryption key pair associated with the `CoreCapsule` instance.
* @param keyPair - Encryption key pair generated from loginEncryptionKey.
*/
setLoginEncryptionKeyPair(keyPair: pki.rsa.KeyPair): Promise<void>;
setLoginEncryptionKeyPair(keyPair: pkiType.rsa.KeyPair): Promise<void>;
private deleteLoginEncryptionKeyPair;

@@ -332,17 +363,29 @@ /**

/**
* Gets the phone number associated with the `CoreCapsule` instance.
* @returns - phone number associated with the `CoreCapsule` instance.
* Gets the phone object associated with the `CoreCapsule` instance.
* @returns - phone object with phone number and country code associated with the `CoreCapsule` instance.
*/
getPhone(): {
phone?: string;
countryCode?: string;
};
/**
* Gets the formatted phone number associated with the `CoreCapsule` instance.
* @returns - formatted phone number associated with the `CoreCapsule` instance.
*/
getPhoneNumber(): string | undefined;
setCurrentWalletIds(currentWalletIds: string[], sessionLookupId?: string): Promise<void>;
get cosmosPrefix(): string | undefined;
setCurrentWalletIds(currentWalletIds: string[], sessionLookupId?: string, needsWallet?: boolean): Promise<void>;
/**
* The prefix for the instance's managed Cosmos wallets. Defaults to `'cosmos'`.
*/
get cosmosPrefix(): string;
/**
* Validates that a wallet ID is present on the instance, usable, and matches the desired filters.
* If no ID is passed, this will instead return the first valid, usable wallet ID that matches the filters.
* @param {string} [walletId] - the wallet ID to validate.
* @param {WalletFilters} [filter] - a `WalletFilters` object specifying allowed types, schemes, and whether to forbid unclaimed pregen wallets.
* @returns {string} - the wallet ID originally passed, or the one found.
* @param {string} [walletId] the wallet ID to validate.
* @param {WalletFilters} [filter={}] a `WalletFilters` object specifying allowed types, schemes, and whether to forbid unclaimed pregen wallets.
* @returns {string} the wallet ID originally passed, or the one found.
*/
findWalletId(walletId?: string, filter?: WalletFilters): string;
private assertIsValidWalletId;
private assertIsValidWalletType;
private getPartnerURL;

@@ -392,3 +435,3 @@ /**

*/
fetchWallets(): Promise<any[]>;
fetchWallets(): Promise<WalletEntity[]>;
private populateWalletAddresses;

@@ -418,2 +461,13 @@ private populatePregenWalletAddresses;

/**
* Logs in or creates a new user using an external wallet address.
* @param externalAddress - external wallet address to use for identification.
* @param type - type of external wallet to use for identification.
* @param externalWalletProvider - name of provider for the external wallet.
*/
externalWalletLogin(externalAddress: string, type: ExternalWalletType, externalWalletProvider?: string): Promise<void>;
/**
* Returns whether or not the user is connected with an external wallet.
*/
isUsingExternalWallet(): boolean;
/**
* Passes the email code obtained from the user for verification.

@@ -544,2 +598,3 @@ * @param verificationCode

partnerId?: string;
needsWallet?: boolean;
sessionLookupId: string;

@@ -591,3 +646,3 @@ };

**/
createWallet(type?: WalletType, skipDistribute?: boolean, _customFunction?: (params?: any) => void): Promise<[Wallet, string | null]>;
createWallet(_type?: WalletType, skipDistribute?: boolean, _customFunction?: (params?: any) => void): Promise<[Wallet, string | null]>;
/**

@@ -600,3 +655,3 @@ * Creates a new pregenerated wallet.

**/
createWalletPreGen(type: WalletType, pregenIdentifier: string, pregenIdentifierType?: PregenIdentifierType): Promise<Wallet>;
createWalletPreGen(_type: WalletType, pregenIdentifier: string, pregenIdentifierType?: PregenIdentifierType): Promise<Wallet>;
/**

@@ -633,3 +688,3 @@ * Claims a pregenerated wallet.

**/
getPregenWallets(pregenIdentifier: string, pregenIdentifierType?: PregenIdentifierType, expand?: boolean): Promise<WalletEntity[]>;
getPregenWallets(pregenIdentifier: string, pregenIdentifierType?: PregenIdentifierType): Promise<WalletEntity[]>;
private encodeWalletBase64;

@@ -677,25 +732,48 @@ /**

*
* @param provider - one of `RAMP` or `STRIPE`.
* @param asset - the on-chain asset to purchase, one of `USDC` or `ETH`
* @param testMode - if `true`, the purchase involves test-net assets only
* @param {Object} config - The config to use to update the purchase
* @param {string} config.provider - one of `RAMP` or `STRIPE`.
* @param {string} config.asset - the on-chain asset to purchase, one of `USDC` or `ETH`
* @param {boolean} config.testMode - if `true`, the purchase involves test-net assets only
* @param {string} config.walletId - the uuid of the desired purchase's associated wallet
* @param {string} config.externalWalletAddress - the address of the desired purchase's external wallet
* @returns - the created purchase object
**/
createOnRampPurchase(provider: OnRampProviderProp, network: NetworkProp, asset: OnRampAssetProp, testMode?: boolean, walletId?: string): Promise<OnRampPurchase>;
createOnRampPurchase({ provider, network, asset, testMode, walletId, externalWalletAddress, }: {
provider: OnRampProviderProp;
network: NetworkProp;
asset: OnRampAssetProp;
testMode: boolean;
walletId?: string;
externalWalletAddress?: string;
}): Promise<OnRampPurchase>;
/**
* Update an on-ramp purchase.
*
* @param walletId - the uuid of the desired purchase's associated wallet
* @param purchaseId - the uuid of the desired purchase
* @param updates - the updates to apply, limited to `status`, `fiatCurrency`, `fiatQuantity`, `asset`', `assetQuantity`', and `providerKey``
* @param {Object} config - The config to use to update the purchase
* @param {string} config.walletId - the uuid of the desired purchase's associated wallet
* @param {string} config.externalWalletAddress - the address of the desired purchase's external wallet
* @param {string} config.purchaseId - the uuid of the desired purchase
* @param {Object} config.updates - the updates to apply, limited to `status`, `fiatCurrency`, `fiatQuantity`, `asset`, `assetQuantity`, and `providerKey`
* @returns - the updated purchase object
**/
updateOnRampPurchase(walletId: string, purchaseId: string, updates: Partial<Pick<OnRampPurchase, 'status' | 'fiatCurrency' | 'fiatQuantity' | 'asset' | 'assetQuantity' | 'providerKey'>>): Promise<OnRampPurchase>;
updateOnRampPurchase({ walletId, externalWalletAddress, purchaseId, updates, }: {
walletId?: string;
externalWalletAddress?: string;
purchaseId: string;
updates: Partial<Pick<OnRampPurchase, 'status' | 'fiatCurrency' | 'fiatQuantity' | 'asset' | 'assetQuantity' | 'providerKey'>>;
}): Promise<OnRampPurchase>;
/**
* Retrieve a desired on-ramp purchase.
*
* @param walletId - the ID of the purchase's wallet.
* @param purchaseId - the purchase ID to retrieve.
* @param {Object} config - The config to use to update the purchase
* @param {string} config.walletId - the ID of the purchase's wallet.
* @param {string} config.externalWalletAddress - the address of the purchase's external wallet
* @param {string} config.purchaseId - the purchase ID to retrieve.
* @returns - the purchase object
**/
getOnRampPurchase(walletId: string, purchaseId: string): Promise<OnRampPurchase>;
getOnRampPurchase({ walletId, externalWalletAddress, purchaseId, }: {
walletId?: string;
purchaseId: string;
externalWalletAddress?: string;
}): Promise<OnRampPurchase>;
/**

@@ -702,0 +780,0 @@ * Returns true if session was successfully kept alive, false otherwise.

@@ -24,2 +24,3 @@ import Client, { Network, OnRampAsset, OnRampProvider, OnRampPurchase, OnRampPurchaseStatus, WalletScheme, WalletType } from '@usecapsule/user-management-client';

wasmOverride?: ArrayBuffer;
cosmosPrefix?: string;
}

@@ -76,2 +77,7 @@ export declare enum OAuthMethod {

export type OnRampConfigProvider = RampConfig | StripeConfig;
export declare enum EnabledFlow {
BUY = "BUY",
RECEIVE = "RECEIVE"
}
export type EnabledFlowProp = keyof typeof EnabledFlow | EnabledFlow;
export type OnRampConfig = {

@@ -81,2 +87,3 @@ testMode?: boolean;

network: NetworkProp;
enabledFlows?: EnabledFlowProp[];
providers: OnRampConfigProvider[];

@@ -125,1 +132,3 @@ };

}, useLocalIp?: boolean): string;
export declare const EXTERNAL_WALLET_CHANGE_EVENT = "capsuleExternalWalletChange";
export declare const CURRENT_WALLET_IDS_CHANGE_EVENT = "capsuleCurrentWalletIdsChange";

@@ -0,1 +1,2 @@

import { CoreCapsule, PREFIX as STORAGE_PREFIX, PregenIdentifierType, getSchemes } from './CoreCapsule.js';
export { WalletType, WalletScheme, NON_ED25519 } from '@usecapsule/user-management-client';

@@ -7,4 +8,3 @@ export * from './definitions.js';

export { KeyContainer } from './shares/KeyContainer.js';
import { CoreCapsule, PREFIX as STORAGE_PREFIX, PregenIdentifierType } from './CoreCapsule.js';
export { RecoveryStatus, stringToPhoneNumber } from './CoreCapsule.js';
export { RecoveryStatus, stringToPhoneNumber, ExternalWalletType } from './CoreCapsule.js';
export type { Wallet, ConstructorOpts, SupportedWalletTypes } from './CoreCapsule.js';

@@ -22,5 +22,5 @@ export type { PlatformUtils } from './PlatformUtils.js';

export { retrieve as transmissionUtilsRetrieve } from './transmission/transmissionUtils.js';
export { STORAGE_PREFIX, PregenIdentifierType };
export { STORAGE_PREFIX, PregenIdentifierType, getSchemes };
export { EmailTheme } from '@usecapsule/user-management-client';
export declare const capsuleVersion: string;
export default CoreCapsule;

@@ -9,9 +9,9 @@ /// <reference types="node" />

getPrivateKey(ctx: Ctx, userId: string, walletId: string, share: string, sessionCookie: string): Promise<string>;
keygen(ctx: Ctx, userId: string, secretKey: string | null, // should be acceptable as null in RN as we don't pre-gen them
sessionCookie: string, emailProps?: BackupKitEmailProps, type?: Exclude<WalletType, WalletType.SOLANA>): Promise<{
keygen(ctx: Ctx, userId: string, type: Exclude<WalletType, WalletType.SOLANA>, secretKey: string | null, // should be acceptable as null in RN as we don't pre-gen them
sessionCookie: string, emailProps?: BackupKitEmailProps): Promise<{
signer: string;
walletId: string;
}>;
preKeygen(ctx: Ctx, partnerId: string, pregenIdentifier: string, pregenIdentifierType: PregenIdentifierType, secretKey: string | null, // should be acceptable as null in RN as we don't pre-gen them
sessionCookie: string, type?: Exclude<WalletType, WalletType.SOLANA>): Promise<{
preKeygen(ctx: Ctx, partnerId: string, pregenIdentifier: string, pregenIdentifierType: PregenIdentifierType, type: Exclude<WalletType, WalletType.SOLANA>, secretKey: string | null, // should be acceptable as null in RN as we don't pre-gen them
sessionCookie: string): Promise<{
signer: string;

@@ -18,0 +18,0 @@ walletId: string;

{
"name": "@usecapsule/core-sdk",
"version": "1.22.0",
"version": "1.23.0-dev.1",
"main": "dist/cjs/index.js",

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

"@cosmjs/encoding": "^0.32.4",
"@usecapsule/user-management-client": "1.19.0",
"@usecapsule/user-management-client": "1.20.0",
"base64url": "^3.0.1",

@@ -43,3 +43,3 @@ "buffer": "6.0.3",

},
"gitHead": "2f9f59b43c147849f37d50a136970f56dce05be9"
"gitHead": "e6e791d4e4f9afd94f2093d6045d686b85e5a682"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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