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

fireblocks-sdk

Package Overview
Dependencies
Maintainers
12
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fireblocks-sdk - npm Package Compare versions

Comparing version 5.13.0 to 5.14.0

2

dist/package.json
{
"name": "fireblocks-sdk",
"version": "5.13.0",
"version": "5.14.0",
"main": "dist/src/fireblocks-sdk.js",

@@ -5,0 +5,0 @@ "types": "dist/src/fireblocks-sdk.d.ts",

@@ -11,8 +11,8 @@ import { IAuthProvider } from "./iauth-provider";

private getUserAgent;
issueGetRequestForTransactionPages(path: string): Promise<TransactionPageResponse>;
issueGetRequest<T>(path: string): Promise<T>;
issuePostRequest<T>(path: string, body: any, requestOptions?: RequestOptions): Promise<T>;
issuePutRequest<T>(path: string, body: any): Promise<T>;
issuePatchRequest<T>(path: string, body: any): Promise<T>;
issueDeleteRequest<T>(path: string): Promise<T>;
issueGetRequestForTransactionPages(rawPath: string): Promise<TransactionPageResponse>;
issueGetRequest<T>(rawPath: string): Promise<T>;
issuePostRequest<T>(rawPath: string, body: any, requestOptions?: RequestOptions): Promise<T>;
issuePutRequest<T>(rawPath: string, body: any): Promise<T>;
issuePatchRequest<T>(rawPath: string, body: any): Promise<T>;
issueDeleteRequest<T>(rawPath: string): Promise<T>;
}

@@ -50,4 +50,5 @@ "use strict";

}
issueGetRequestForTransactionPages(path) {
issueGetRequestForTransactionPages(rawPath) {
return __awaiter(this, void 0, void 0, function* () {
const path = normalizePath(rawPath);
const token = this.authProvider.signJwt(path);

@@ -66,4 +67,5 @@ const res = yield this.axiosInstance.get(path, {

}
issueGetRequest(path) {
issueGetRequest(rawPath) {
return __awaiter(this, void 0, void 0, function* () {
const path = normalizePath(rawPath);
const token = this.authProvider.signJwt(path);

@@ -76,5 +78,6 @@ const res = yield this.axiosInstance.get(path, {

}
issuePostRequest(path, body, requestOptions) {
issuePostRequest(rawPath, body, requestOptions) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
const path = normalizePath(rawPath);
const token = this.authProvider.signJwt(path, body);

@@ -94,4 +97,5 @@ const headers = { "Authorization": `Bearer ${token}` };

}
issuePutRequest(path, body) {
issuePutRequest(rawPath, body) {
return __awaiter(this, void 0, void 0, function* () {
const path = normalizePath(rawPath);
const token = this.authProvider.signJwt(path, body);

@@ -104,4 +108,5 @@ const res = (yield this.axiosInstance.put(path, body, {

}
issuePatchRequest(path, body) {
issuePatchRequest(rawPath, body) {
return __awaiter(this, void 0, void 0, function* () {
const path = normalizePath(rawPath);
const token = this.authProvider.signJwt(path, body);

@@ -114,4 +119,5 @@ const res = (yield this.axiosInstance.patch(path, body, {

}
issueDeleteRequest(path) {
issueDeleteRequest(rawPath) {
return __awaiter(this, void 0, void 0, function* () {
const path = normalizePath(rawPath);
const token = this.authProvider.signJwt(path);

@@ -126,2 +132,9 @@ const res = (yield this.axiosInstance.delete(path, {

exports.ApiClient = ApiClient;
/**
* This function allows backward compatibility with previous version of axois that did not omit ? for
* urls with no params. This function will make sure we are omitting the ? before signing it
*/
function normalizePath(path) {
return path.replace(/\?$/, "");
}
//# sourceMappingURL=api-client.js.map
import { ApiClient } from "./api-client";
import { IAuthProvider } from "./iauth-provider";
import { AllocateFundsRequest, AssetResponse, AssetTypeResponse, CancelTransactionResponse, ConvertExchangeAssetResponse, CreateTransactionResponse, DeallocateFundsRequest, DepositAddressResponse, EstimateFeeResponse, EstimateTransactionFeeResponse, ExchangeResponse, ExternalWalletAsset, FiatAccountResponse, GasStationInfo, GenerateAddressResponse, InternalWalletAsset, MaxSpendableAmountResponse, MaxBip44IndexUsedResponse, PaginatedAddressesResponse, OptionalPaginatedAddressesRequestFilters, NetworkConnectionResponse, OffExchangeEntityResponse, OperationSuccessResponse, PagedVaultAccountsRequestFilters, PagedVaultAccountsResponse, PublicKeyInfoArgs, PublicKeyInfoForVaultAccountArgs, RequestOptions, ResendWebhooksResponse, TransactionArguments, TransactionFilter, TransactionPageFilter, TransactionPageResponse, TransactionResponse, User, ValidateAddressResponse, VaultAccountResponse, VaultAssetResponse, VaultBalancesFilter, WalletContainerResponse, SetFeePayerConfiguration, FeePayerConfiguration, CreateWeb3ConnectionResponse, Session, NetworkConnectionRoutingPolicy, NetworkIdRoutingPolicy, NetworkIdResponse, TimePeriod, AuditsResponse, NFTOwnershipFilter, NFTOwnedAssetsFilter, Token, TokenWithBalance, Web3PagedResponse, CreateWalletConnectPayload, Web3ConnectionType, GetWeb3ConnectionsPayload, PublicKeyResponse, AllocateFundsResponse, AddCollateralTransactionRequest, RemoveCollateralTransactionRequest, GetSettlementTransactionsResponse, SettlementRequest, SettlementResponse, GetNFTsFilter, SettleOffExchangeAccountResponse, PublicKeyInformation, DropTransactionResponse, GetAssetWalletsFilters, GetAssetWalletsResponse, TokenLink, IssueTokenRequest, NFTOwnershipStatus, NFTOwnershipStatusUpdatedPayload, NFTOwnedCollectionsFilter, CollectionOwnership, TravelRuleOptions, ValidateTravelRuleVaspInfo, ValidateTravelRuleResult, ValidateCreateTravelRuleTransaction, ValidateFullTravelRuleResult, TravelRuleVasp, TravelRuleVaspFilter, TravelRuleEncryptionOptions, SmartTransfersTicketResponse, SmartTransfersTicketCreatePayload, SmartTransfersTicketsResponse, SmartTransfersTicketsFilters, SmartTransfersTicketTermPayload, SmartTransfersTicketTermFundPayload, ScreeningPolicyConfiguration, TravelRulePolicy, TravelRuleRulesConfiguration, SmartTransfersTicketTermResponse, SmartTransfersUserGroupsResponse, UsersGroup, LeanContractTemplateDto, ContractTemplateDto, BatchTask, BatchJob, JobCreatedResponse, ContractUploadRequest, ContractDeployResponse, ContractDeployRequest, PendingTokenLinkDto, ExchangeAccountsPageFilter, PagedExchangeResponse, TAP, WriteCallFunctionDto, ReadCallFunctionDto, WriteCallFunctionResponseDto, ContractAbiResponseDto, DeployedContractResponseDto, LeanDeployedContractResponseDto, ParameterWithValueList } from "./types";
import { AllocateFundsRequest, AssetResponse, AssetTypeResponse, CancelTransactionResponse, ConvertExchangeAssetResponse, CreateTransactionResponse, DeallocateFundsRequest, DepositAddressResponse, EstimateFeeResponse, EstimateTransactionFeeResponse, ExchangeResponse, ExternalWalletAsset, FiatAccountResponse, GasStationInfo, GenerateAddressResponse, InternalWalletAsset, MaxSpendableAmountResponse, MaxBip44IndexUsedResponse, PaginatedAddressesResponse, OptionalPaginatedAddressesRequestFilters, NetworkConnectionResponse, OffExchangeEntityResponse, OperationSuccessResponse, PagedVaultAccountsRequestFilters, PagedVaultAccountsResponse, PublicKeyInfoArgs, PublicKeyInfoForVaultAccountArgs, RequestOptions, ResendWebhooksResponse, TransactionArguments, TransactionFilter, TransactionPageFilter, TransactionPageResponse, TransactionResponse, User, ValidateAddressResponse, VaultAccountResponse, VaultAssetResponse, VaultBalancesFilter, WalletContainerResponse, SetFeePayerConfiguration, FeePayerConfiguration, CreateWeb3ConnectionResponse, Session, NetworkConnectionRoutingPolicy, NetworkIdRoutingPolicy, NetworkIdResponse, TimePeriod, AuditsResponse, NFTOwnershipFilter, NFTOwnedAssetsFilter, Token, TokenWithBalance, Web3PagedResponse, CreateWalletConnectPayload, Web3ConnectionType, GetWeb3ConnectionsPayload, PublicKeyResponse, AllocateFundsResponse, AddCollateralTransactionRequest, RemoveCollateralTransactionRequest, GetSettlementTransactionsResponse, SettlementRequest, SettlementResponse, GetNFTsFilter, SettleOffExchangeAccountResponse, PublicKeyInformation, DropTransactionResponse, GetAssetWalletsFilters, GetAssetWalletsResponse, TokenLink, IssueTokenRequest, NFTOwnershipStatus, NFTOwnershipStatusUpdatedPayload, NFTOwnedCollectionsFilter, CollectionOwnership, TravelRuleOptions, ValidateTravelRuleVaspInfo, ValidateTravelRuleResult, ValidateCreateTravelRuleTransaction, ValidateFullTravelRuleResult, TravelRuleVasp, TravelRuleVaspFilter, TravelRuleEncryptionOptions, SmartTransfersTicketResponse, SmartTransfersTicketCreatePayload, SmartTransfersTicketsResponse, SmartTransfersTicketsFilters, SmartTransfersTicketTermPayload, SmartTransfersTicketTermFundPayload, SmartTransfersTicketTermResponse, ConsoleUser, ApiUser, TRole, UsersGroup, SmartTransfersUserGroupsResponse, LeanContractTemplateDto, ContractTemplateDto, BatchTask, BatchJob, JobCreatedResponse, ContractUploadRequest, ContractDeployResponse, ContractDeployRequest, PendingTokenLinkDto, ExchangeAccountsPageFilter, PagedExchangeResponse, TAP, WriteCallFunctionDto, ReadCallFunctionDto, WriteCallFunctionResponseDto, ContractAbiResponseDto, DeployedContractResponseDto, LeanDeployedContractResponseDto, ParameterWithValueList, ScreeningTenantConfiguration } from "./types";
import { AxiosProxyConfig, AxiosResponse } from "axios";

@@ -657,4 +657,46 @@ import { NcwSdk } from "./ncw-sdk";

/**
* Gets all Users Groups for your tenant
* Gets all Console Users for your tenant
*/
getConsoleUsers(): Promise<{
users: ConsoleUser[];
}>;
/**
* Gets all Api Users for your tenant
*/
getApiUsers(): Promise<{
users: ApiUser[];
}>;
/**
* Create Console User for your tenant
* @param firstName firstName of the user, example: "Johnny". Maximum length: 30 chars.
* @param lastName lastName of the user. Maximum length: 30 chars.
* @param email email of the user, example: "email@example.com"
* @param role role of the user, for example: "ADMIN"
* @param requestOptions
*/
createConsoleUser(firstName: string, lastName: string, email: string, role: TRole, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**
* Create Api User for your tenant
* @param name name of the api user, example: "Johnny The Api". Maximum length: 30 chars.
* @param role role of the user, for example: "ADMIN"
* @param csrPem generate .csr file and provide its string content here, example: "-----BEGIN CERTIFICATE REQUEST-----aaa-----END CERTIFICATE REQUEST-----"
* You can find more info about csrPem and how to create it here: https://developers.fireblocks.com/docs/quickstart
* @param coSignerSetup your cosigner, for example: "SGX_MACHINE", read more: https://developers.fireblocks.com/docs/quickstart
* @param coSignerSetupIsFirstUser [SGX server enabled only] If you are the first user to be configured on this SGX-enabled Co-Signer server, this has to be true
*/
createApiUser(name: string, role: TRole, csrPem: string, coSignerSetup?: string, coSignerSetupIsFirstUser?: boolean, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**
* Re-enroll Mobile Device of a user in your tenant
* @param id userId of the user to reset device
* @param requestOptions
*/
resetDeviceRequest(id: string, requestOptions?: RequestOptions): Promise<OperationSuccessResponse>;
/**
* Get whitelisted addresses of api user in your tenant
* @param id userId of the user
* @param requestOptions
*/
getWhitelistedAddresses(id: string): Promise<OperationSuccessResponse>;
/** Gets all Users Groups for your tenant
*/
getUsersGroups(): Promise<UsersGroup[]>;

@@ -988,19 +1030,28 @@ /**

/**
* Get PostScreening Policies for travel rule compliance
* Get PostScreening Policies for compliance
* @param screeningType The type of screening (e.g., 'travel_rule', 'aml')
*/
getTravelRulePostScreeningPolicy(): Promise<TravelRuleRulesConfiguration>;
private getPostScreeningPolicy;
/**
* Get Screening Policies for travel rule compliance
* Get Screening Policies for compliance
* @param screeningType The type of screening (e.g., 'travel_rule', 'aml')
*/
getTravelRuleScreeningPolicy(): Promise<TravelRulePolicy>;
private getScreeningPolicy;
/**
* Get Screening Configuration for travel rule compliance
* Get Screening Configuration for compliance
* @param screeningType The type of screening (e.g., 'travel_rule', 'aml')
*/
getTravelRuleScreeningConfiguration(): Promise<ScreeningPolicyConfiguration>;
private getScreeningConfiguration;
/**
* Update Bypass Screening Configuration for travel rule compliance
* @param screeningPolicyConfiguration
* Update Bypass Screening Configuration for compliance
* @param screeningType The type of screening (e.g., 'travel_rule', 'aml')
* @param screeningPolicyConfiguration The configuration to update
*/
updateTravelRulePolicyConfiguration(screeningPolicyConfiguration: ScreeningPolicyConfiguration): Promise<ScreeningPolicyConfiguration>;
private updatePolicyConfiguration;
/**
* Update Bypass Screening Tenant Configuration for AML/KYT compliance
* @param screeningTenantConfiguration
*/
updateTenantScreeningConfiguration(screeningTenantConfiguration: ScreeningTenantConfiguration): Promise<ScreeningTenantConfiguration>;
/**
* Creates Smart Transfers ticket

@@ -1007,0 +1058,0 @@ * @param data

@@ -463,3 +463,7 @@ import { AxiosResponseHeaders } from "axios";

}
export declare enum TravelRuleAction {
export interface ScreeningTenantConfiguration {
disableBypass: boolean;
disableUnfreeze: boolean;
}
export declare enum ScreeningAction {
screen = "SCREEN",

@@ -469,3 +473,3 @@ pass = "PASS",

}
export interface TravelRulePolicyRule {
export interface ScreeningPolicyRuleResponse {
sourceType?: string;

@@ -484,4 +488,12 @@ sourceSubType?: string;

operation?: string;
action: TravelRuleAction;
action: ScreeningAction;
}
export interface ScreeningProviderConfigurationResponse {
direction?: TransactionDirection;
status?: ScreeningTransactionStatus;
amountUSD?: number;
amount?: number;
asset?: string;
action: ScreeningVerdict;
}
export declare enum PolicyApprovalStatus {

@@ -495,3 +507,3 @@ live = "live",

}
export declare enum FbTravelRuleTransactionStatus {
export declare enum ScreeningTransactionStatus {
completed = "COMPLETED",

@@ -504,3 +516,3 @@ pending = "PENDING",

}
export declare enum TravelRuleVerdict {
export declare enum ScreeningVerdict {
accept = "ACCEPT",

@@ -513,13 +525,10 @@ reject = "REJECT",

}
export interface TravelRuleRulesConfiguration {
direction?: TransactionDirection;
status?: FbTravelRuleTransactionStatus;
amountUSD?: number;
amount?: number;
asset?: string;
action: TravelRuleVerdict;
export interface ScreeningConfigurationsResponse {
bypassScreeningDuringServiceOutages: boolean;
inboundTransactionDelay: number;
outboundTransactionDelay: number;
}
export interface TravelRulePolicy {
export interface ScreeningPolicyResponse {
tenantId?: string;
policy: TravelRulePolicyRule[];
policy: ScreeningPolicyRuleResponse;
policyStatus?: PolicyApprovalStatus;

@@ -530,2 +539,19 @@ isDefault: boolean;

}
export interface ScreeningPolicyRuleResponse {
sourceType?: string;
sourceSubType?: string;
destType?: string;
destSubType?: string;
destAddress?: string;
sourceId?: string;
destId?: string;
asset?: string;
baseAsset?: string;
amount?: number;
amountUSD?: number;
networkProtocol?: string;
operation?: string;
action: ScreeningAction;
}
export type ScreeningType = "travel_rule" | "aml";
export declare enum Web3ConnectionFeeLevel {

@@ -1146,2 +1172,19 @@ HIGH = "HIGH",

}
export type TRole = "ADMIN" | "SIGNER" | "EDITOR" | "APPROVER" | "VIEWER" | "NON_SIGNING_ADMIN" | "AUDITOR" | "NCW_ADMIN" | "NCW_SIGNER";
interface BaseUser {
id: string;
enabled: boolean;
role: TRole;
status: string;
}
export interface ConsoleUser extends BaseUser {
firstName: string;
lastName: string;
email: string;
userType: "CONSOLE";
}
export interface ApiUser extends BaseUser {
name: string;
userType: "API";
}
export interface UsersGroup {

@@ -1148,0 +1191,0 @@ id: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TAP = exports.NCW = exports.SmartTransferTicketTermStatus = exports.SmartTransfersTicketStatus = exports.SmartTransfersTicketDirection = exports.BatchTask = exports.BatchJob = exports.BatchStatus = exports.NFTOwnershipWalletType = exports.NFTOwnershipStatus = exports.OrderValues = exports.GetOwnedAssetsSortValues = exports.GetOwnedCollectionsSortValues = exports.GetOwnedNFTsSortValues = exports.GetNFTsSortValues = exports.TimePeriod = exports.ExchangeReply = exports.SettleResponseCode = exports.TransferTicketTermStatus = exports.TransferTicketStatus = exports.Web3ConnectionMethod = exports.Web3ConnectionType = exports.TransactionOperation = exports.VirtualType = exports.PeerType = exports.TransactionStatus = exports.TransactionOrder = exports.NetworkDestType = exports.NetworkScheme = exports.FeeLevel = exports.Web3ConnectionFeeLevel = exports.TravelRuleVerdict = exports.FbTravelRuleTransactionStatus = exports.TransactionDirection = exports.PolicyApprovalStatus = exports.TravelRuleAction = exports.TravelRuleAddressTypeCode = exports.SigningAlgorithm = exports.VaultAssetActivationStatus = exports.VirtualAffiliation = void 0;
exports.TAP = exports.NCW = exports.SmartTransferTicketTermStatus = exports.SmartTransfersTicketStatus = exports.SmartTransfersTicketDirection = exports.BatchTask = exports.BatchJob = exports.BatchStatus = exports.NFTOwnershipWalletType = exports.NFTOwnershipStatus = exports.OrderValues = exports.GetOwnedAssetsSortValues = exports.GetOwnedCollectionsSortValues = exports.GetOwnedNFTsSortValues = exports.GetNFTsSortValues = exports.TimePeriod = exports.ExchangeReply = exports.SettleResponseCode = exports.TransferTicketTermStatus = exports.TransferTicketStatus = exports.Web3ConnectionMethod = exports.Web3ConnectionType = exports.TransactionOperation = exports.VirtualType = exports.PeerType = exports.TransactionStatus = exports.TransactionOrder = exports.NetworkDestType = exports.NetworkScheme = exports.FeeLevel = exports.Web3ConnectionFeeLevel = exports.ScreeningVerdict = exports.ScreeningTransactionStatus = exports.TransactionDirection = exports.PolicyApprovalStatus = exports.ScreeningAction = exports.TravelRuleAddressTypeCode = exports.SigningAlgorithm = exports.VaultAssetActivationStatus = exports.VirtualAffiliation = void 0;
var VirtualAffiliation;

@@ -27,8 +27,8 @@ (function (VirtualAffiliation) {

})(TravelRuleAddressTypeCode || (exports.TravelRuleAddressTypeCode = TravelRuleAddressTypeCode = {}));
var TravelRuleAction;
(function (TravelRuleAction) {
TravelRuleAction["screen"] = "SCREEN";
TravelRuleAction["pass"] = "PASS";
TravelRuleAction["freeze"] = "FREEZE";
})(TravelRuleAction || (exports.TravelRuleAction = TravelRuleAction = {}));
var ScreeningAction;
(function (ScreeningAction) {
ScreeningAction["screen"] = "SCREEN";
ScreeningAction["pass"] = "PASS";
ScreeningAction["freeze"] = "FREEZE";
})(ScreeningAction || (exports.ScreeningAction = ScreeningAction = {}));
var PolicyApprovalStatus;

@@ -44,20 +44,20 @@ (function (PolicyApprovalStatus) {

})(TransactionDirection || (exports.TransactionDirection = TransactionDirection = {}));
var FbTravelRuleTransactionStatus;
(function (FbTravelRuleTransactionStatus) {
FbTravelRuleTransactionStatus["completed"] = "COMPLETED";
FbTravelRuleTransactionStatus["pending"] = "PENDING";
FbTravelRuleTransactionStatus["rejected"] = "REJECTED";
FbTravelRuleTransactionStatus["failed"] = "FAILED";
FbTravelRuleTransactionStatus["canceled"] = "CANCELED";
FbTravelRuleTransactionStatus["blockingTimeExpired"] = "BLOCKING_TIME_EXPIRED";
})(FbTravelRuleTransactionStatus || (exports.FbTravelRuleTransactionStatus = FbTravelRuleTransactionStatus = {}));
var TravelRuleVerdict;
(function (TravelRuleVerdict) {
TravelRuleVerdict["accept"] = "ACCEPT";
TravelRuleVerdict["reject"] = "REJECT";
TravelRuleVerdict["alert"] = "ALERT";
TravelRuleVerdict["wait"] = "WAIT";
TravelRuleVerdict["freeze"] = "FREEZE";
TravelRuleVerdict["cancel"] = "CANCEL";
})(TravelRuleVerdict || (exports.TravelRuleVerdict = TravelRuleVerdict = {}));
var ScreeningTransactionStatus;
(function (ScreeningTransactionStatus) {
ScreeningTransactionStatus["completed"] = "COMPLETED";
ScreeningTransactionStatus["pending"] = "PENDING";
ScreeningTransactionStatus["rejected"] = "REJECTED";
ScreeningTransactionStatus["failed"] = "FAILED";
ScreeningTransactionStatus["canceled"] = "CANCELED";
ScreeningTransactionStatus["blockingTimeExpired"] = "BLOCKING_TIME_EXPIRED";
})(ScreeningTransactionStatus || (exports.ScreeningTransactionStatus = ScreeningTransactionStatus = {}));
var ScreeningVerdict;
(function (ScreeningVerdict) {
ScreeningVerdict["accept"] = "ACCEPT";
ScreeningVerdict["reject"] = "REJECT";
ScreeningVerdict["alert"] = "ALERT";
ScreeningVerdict["wait"] = "WAIT";
ScreeningVerdict["freeze"] = "FREEZE";
ScreeningVerdict["cancel"] = "CANCEL";
})(ScreeningVerdict || (exports.ScreeningVerdict = ScreeningVerdict = {}));
var Web3ConnectionFeeLevel;

@@ -64,0 +64,0 @@ (function (Web3ConnectionFeeLevel) {

{
"name": "fireblocks-sdk",
"version": "5.13.0",
"version": "5.14.0",
"main": "dist/src/fireblocks-sdk.js",

@@ -5,0 +5,0 @@ "types": "dist/src/fireblocks-sdk.d.ts",

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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