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

@bitgo/public-types

Package Overview
Dependencies
Maintainers
15
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitgo/public-types - npm Package Compare versions

Comparing version 2.32.1 to 2.32.2

32

dist/src/schema/webhook/addWalletWebhookRequest.d.ts
import * as t from "io-ts";
export declare const AddWalletWebhookRequestBody: {
type: t.KeyofC<{
txRequest: number;
txRequestTransaction: number;
transfer: number;
transaction: number;
transactionRemoved: number;
transactionExpire: number;
pendingapproval: number;
block: number;
admin: number;
address_confirmation: number;
lowFee: number;
circuitBreaker: number;
wireWithdrawal: number;
}>;
type: t.KeyofC<typeof import("./webhookType").WalletWebhookTypeEnum>;
url: import("io-ts-types").NonEmptyStringC;

@@ -27,17 +13,3 @@ label: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;

export declare const AddWalletWebhookRequestBodyC: t.TypeC<{
type: t.KeyofC<{
txRequest: number;
txRequestTransaction: number;
transfer: number;
transaction: number;
transactionRemoved: number;
transactionExpire: number;
pendingapproval: number;
block: number;
admin: number;
address_confirmation: number;
lowFee: number;
circuitBreaker: number;
wireWithdrawal: number;
}>;
type: t.KeyofC<typeof import("./webhookType").WalletWebhookTypeEnum>;
url: import("io-ts-types").NonEmptyStringC;

@@ -44,0 +16,0 @@ label: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;

import * as t from "io-ts";
export declare const AddEnterpriseWebhookRequestBody: {
type: t.KeyofC<{
bankAccount: number;
accessToken: number;
}>;
type: t.KeyofC<typeof import("./webhookType").EnterpriseWebhookTypeEnum>;
url: import("io-ts-types").NonEmptyStringC;

@@ -11,6 +8,3 @@ label: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;

export declare const AddEnterpriseWebhookRequestBodyC: t.TypeC<{
type: t.KeyofC<{
bankAccount: number;
accessToken: number;
}>;
type: t.KeyofC<typeof import("./webhookType").EnterpriseWebhookTypeEnum>;
url: import("io-ts-types").NonEmptyStringC;

@@ -48,23 +42,3 @@ label: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;

userId: t.StringC;
type: t.KeyofC<{
txRequest: number;
txRequestTransaction: number;
transfer: number;
transaction: number;
transactionRemoved: number;
transactionExpire: number;
pendingapproval: number;
block: number;
admin: number;
address_confirmation: number;
lowFee: number;
circuitBreaker: number;
wallet_confirmation: number;
wireWithdrawal: number;
bankAccount: number;
userKycState: number;
enterpriseKycState: number;
identityStatus: number;
accessToken: number;
}>;
type: t.KeyofC<typeof import("./webhookType").WebhookTypeEnum>;
numConfirmations: t.NumberC;

@@ -71,0 +45,0 @@ lastAttempt: import("io-ts-types").DateFromISOStringC;

@@ -18,23 +18,3 @@ import * as t from "io-ts";

userId: t.StringC;
type: t.KeyofC<{
txRequest: number;
txRequestTransaction: number;
transfer: number;
transaction: number;
transactionRemoved: number;
transactionExpire: number;
pendingapproval: number;
block: number;
admin: number;
address_confirmation: number;
lowFee: number;
circuitBreaker: number;
wallet_confirmation: number;
wireWithdrawal: number;
bankAccount: number;
userKycState: number;
enterpriseKycState: number;
identityStatus: number;
accessToken: number;
}>;
type: t.KeyofC<typeof import("./webhookType").WebhookTypeEnum>;
numConfirmations: t.NumberC;

@@ -41,0 +21,0 @@ lastAttempt: import("io-ts-types").DateFromISOStringC;

@@ -7,23 +7,3 @@ import * as t from "io-ts";

}>, t.PartialC<{
type: t.KeyofC<{
txRequest: number;
txRequestTransaction: number;
transfer: number;
transaction: number;
transactionRemoved: number;
transactionExpire: number;
pendingapproval: number;
block: number;
admin: number;
address_confirmation: number;
lowFee: number;
circuitBreaker: number;
wallet_confirmation: number;
wireWithdrawal: number;
bankAccount: number;
userKycState: number;
enterpriseKycState: number;
identityStatus: number;
accessToken: number;
}>;
type: t.KeyofC<typeof import("./webhookType").WebhookTypeEnum>;
wallet: t.StringC;

@@ -30,0 +10,0 @@ url: t.StringC;

83

dist/src/schema/webhook/webhookType.d.ts
import * as t from "io-ts";
export declare const WebhookType: t.KeyofC<{
txRequest: number;
txRequestTransaction: number;
transfer: number;
transaction: number;
transactionRemoved: number;
transactionExpire: number;
pendingapproval: number;
block: number;
admin: number;
address_confirmation: number;
lowFee: number;
circuitBreaker: number;
wallet_confirmation: number;
wireWithdrawal: number;
bankAccount: number;
userKycState: number;
enterpriseKycState: number;
identityStatus: number;
accessToken: number;
}>;
export declare enum WebhookTypeEnum {
"txRequest" = "txRequest",
"txRequestTransaction" = "txRequestTransaction",
"transfer" = "transfer",
"transaction" = "transaction",
"transactionRemoved" = "transactionRemoved",
"transactionExpire" = "transactionExpire",
"pendingapproval" = "pendingapproval",
"block" = "block",
"admin" = "admin",
"address_confirmation" = "address_confirmation",
"lowFee" = "lowFee",
"circuitBreaker" = "circuitBreaker",
"wallet_confirmation" = "wallet_confirmation",
"wireWithdrawal" = "wireWithdrawal",
"bankAccount" = "bankAccount",
"userKycState" = "userKycState",
"enterpriseKycState" = "enterpriseKycState",
"identityStatus" = "identityStatus",
"accessToken" = "accessToken"
}
export declare const WebhookType: t.KeyofC<typeof WebhookTypeEnum>;
export type WebhookType = t.TypeOf<typeof WebhookType>;
export declare const WalletWebhookType: t.KeyofC<{
txRequest: number;
txRequestTransaction: number;
transfer: number;
transaction: number;
transactionRemoved: number;
transactionExpire: number;
pendingapproval: number;
block: number;
admin: number;
address_confirmation: number;
lowFee: number;
circuitBreaker: number;
wireWithdrawal: number;
}>;
export declare enum WalletWebhookTypeEnum {
"txRequest" = "txRequest",
"txRequestTransaction" = "txRequestTransaction",
"transfer" = "transfer",
"transaction" = "transaction",
"transactionRemoved" = "transactionRemoved",
"transactionExpire" = "transactionExpire",
"pendingapproval" = "pendingapproval",
"block" = "block",
"admin" = "admin",
"address_confirmation" = "address_confirmation",
"lowFee" = "lowFee",
"circuitBreaker" = "circuitBreaker",
"wireWithdrawal" = "wireWithdrawal"
}
export declare const WalletWebhookType: t.KeyofC<typeof WalletWebhookTypeEnum>;
export type WalletWebhookType = t.TypeOf<typeof WalletWebhookType>;
export declare const EnterpriseWebhookType: t.KeyofC<{
bankAccount: number;
accessToken: number;
}>;
export declare enum EnterpriseWebhookTypeEnum {
"bankAccount" = "bankAccount",
"accessToken" = "accessToken"
}
export declare const EnterpriseWebhookType: t.KeyofC<typeof EnterpriseWebhookTypeEnum>;
export type EnterpriseWebhookType = t.TypeOf<typeof EnterpriseWebhookType>;

@@ -26,44 +26,50 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.EnterpriseWebhookType = exports.WalletWebhookType = exports.WebhookType = void 0;
exports.EnterpriseWebhookType = exports.EnterpriseWebhookTypeEnum = exports.WalletWebhookType = exports.WalletWebhookTypeEnum = exports.WebhookType = exports.WebhookTypeEnum = void 0;
const t = __importStar(require("io-ts"));
exports.WebhookType = t.keyof({
txRequest: 1,
txRequestTransaction: 1,
transfer: 1,
transaction: 1,
transactionRemoved: 1,
transactionExpire: 1,
pendingapproval: 1,
block: 1,
admin: 1,
address_confirmation: 1,
lowFee: 1,
circuitBreaker: 1,
wallet_confirmation: 1,
wireWithdrawal: 1,
bankAccount: 1,
userKycState: 1,
enterpriseKycState: 1,
identityStatus: 1,
accessToken: 1,
}, "WebhookType");
exports.WalletWebhookType = t.keyof({
txRequest: 1,
txRequestTransaction: 1,
transfer: 1,
transaction: 1,
transactionRemoved: 1,
transactionExpire: 1,
pendingapproval: 1,
block: 1,
admin: 1,
address_confirmation: 1,
lowFee: 1,
circuitBreaker: 1,
wireWithdrawal: 1,
}, "WalletWebhookType");
exports.EnterpriseWebhookType = t.keyof({
bankAccount: 1,
accessToken: 1,
}, "EnterpriseWebhookType");
var WebhookTypeEnum;
(function (WebhookTypeEnum) {
WebhookTypeEnum["txRequest"] = "txRequest";
WebhookTypeEnum["txRequestTransaction"] = "txRequestTransaction";
WebhookTypeEnum["transfer"] = "transfer";
WebhookTypeEnum["transaction"] = "transaction";
WebhookTypeEnum["transactionRemoved"] = "transactionRemoved";
WebhookTypeEnum["transactionExpire"] = "transactionExpire";
WebhookTypeEnum["pendingapproval"] = "pendingapproval";
WebhookTypeEnum["block"] = "block";
WebhookTypeEnum["admin"] = "admin";
WebhookTypeEnum["address_confirmation"] = "address_confirmation";
WebhookTypeEnum["lowFee"] = "lowFee";
WebhookTypeEnum["circuitBreaker"] = "circuitBreaker";
WebhookTypeEnum["wallet_confirmation"] = "wallet_confirmation";
WebhookTypeEnum["wireWithdrawal"] = "wireWithdrawal";
WebhookTypeEnum["bankAccount"] = "bankAccount";
WebhookTypeEnum["userKycState"] = "userKycState";
WebhookTypeEnum["enterpriseKycState"] = "enterpriseKycState";
WebhookTypeEnum["identityStatus"] = "identityStatus";
WebhookTypeEnum["accessToken"] = "accessToken";
})(WebhookTypeEnum || (exports.WebhookTypeEnum = WebhookTypeEnum = {}));
exports.WebhookType = t.keyof(WebhookTypeEnum, "WebhookType");
var WalletWebhookTypeEnum;
(function (WalletWebhookTypeEnum) {
WalletWebhookTypeEnum["txRequest"] = "txRequest";
WalletWebhookTypeEnum["txRequestTransaction"] = "txRequestTransaction";
WalletWebhookTypeEnum["transfer"] = "transfer";
WalletWebhookTypeEnum["transaction"] = "transaction";
WalletWebhookTypeEnum["transactionRemoved"] = "transactionRemoved";
WalletWebhookTypeEnum["transactionExpire"] = "transactionExpire";
WalletWebhookTypeEnum["pendingapproval"] = "pendingapproval";
WalletWebhookTypeEnum["block"] = "block";
WalletWebhookTypeEnum["admin"] = "admin";
WalletWebhookTypeEnum["address_confirmation"] = "address_confirmation";
WalletWebhookTypeEnum["lowFee"] = "lowFee";
WalletWebhookTypeEnum["circuitBreaker"] = "circuitBreaker";
WalletWebhookTypeEnum["wireWithdrawal"] = "wireWithdrawal";
})(WalletWebhookTypeEnum || (exports.WalletWebhookTypeEnum = WalletWebhookTypeEnum = {}));
exports.WalletWebhookType = t.keyof(WalletWebhookTypeEnum, "WalletWebhookType");
var EnterpriseWebhookTypeEnum;
(function (EnterpriseWebhookTypeEnum) {
EnterpriseWebhookTypeEnum["bankAccount"] = "bankAccount";
EnterpriseWebhookTypeEnum["accessToken"] = "accessToken";
})(EnterpriseWebhookTypeEnum || (exports.EnterpriseWebhookTypeEnum = EnterpriseWebhookTypeEnum = {}));
exports.EnterpriseWebhookType = t.keyof(EnterpriseWebhookTypeEnum, "EnterpriseWebhookType");
//# sourceMappingURL=webhookType.js.map
{
"name": "@bitgo/public-types",
"version": "2.32.1",
"version": "2.32.2",
"description": "Collection of types exposed externally as part of the BitGo public API",

@@ -5,0 +5,0 @@ "license": "UNLICENSED",

import * as t from "io-ts";
export const WebhookType = t.keyof(
{
// Webhook for txRequest.state changes
txRequest: 1,
// Webhook for any txRequest.transactions[].state changes
txRequestTransaction: 1,
transfer: 1,
transaction: 1,
transactionRemoved: 1,
transactionExpire: 1,
pendingapproval: 1,
block: 1,
admin: 1,
address_confirmation: 1,
lowFee: 1,
circuitBreaker: 1,
export enum WebhookTypeEnum {
// Webhook for txRequest.state changes
"txRequest" = "txRequest",
// Webhook for any txRequest.transactions[].state changes
"txRequestTransaction" = "txRequestTransaction",
"transfer" = "transfer",
"transaction" = "transaction",
"transactionRemoved" = "transactionRemoved",
"transactionExpire" = "transactionExpire",
"pendingapproval" = "pendingapproval",
"block" = "block",
"admin" = "admin",
"address_confirmation" = "address_confirmation",
"lowFee" = "lowFee",
"circuitBreaker" = "circuitBreaker",
// Specific to User Webhooks
wallet_confirmation: 1,
// Specific to User Webhooks
"wallet_confirmation" = "wallet_confirmation",
wireWithdrawal: 1,
bankAccount: 1,
userKycState: 1,
enterpriseKycState: 1,
identityStatus: 1,
"wireWithdrawal" = "wireWithdrawal",
"bankAccount" = "bankAccount",
"userKycState" = "userKycState",
"enterpriseKycState" = "enterpriseKycState",
"identityStatus" = "identityStatus",
accessToken: 1,
},
"WebhookType",
);
"accessToken" = "accessToken",
}
export const WebhookType = t.keyof(WebhookTypeEnum, "WebhookType");
export type WebhookType = t.TypeOf<typeof WebhookType>;
export enum WalletWebhookTypeEnum {
"txRequest" = "txRequest",
"txRequestTransaction" = "txRequestTransaction",
"transfer" = "transfer",
"transaction" = "transaction",
"transactionRemoved" = "transactionRemoved",
"transactionExpire" = "transactionExpire",
"pendingapproval" = "pendingapproval",
"block" = "block",
"admin" = "admin",
"address_confirmation" = "address_confirmation",
"lowFee" = "lowFee",
"circuitBreaker" = "circuitBreaker",
"wireWithdrawal" = "wireWithdrawal",
}
export const WalletWebhookType = t.keyof(
{
txRequest: 1,
txRequestTransaction: 1,
transfer: 1,
transaction: 1,
transactionRemoved: 1,
transactionExpire: 1,
pendingapproval: 1,
block: 1,
admin: 1,
address_confirmation: 1,
lowFee: 1,
circuitBreaker: 1,
wireWithdrawal: 1,
},
WalletWebhookTypeEnum,
"WalletWebhookType",

@@ -56,9 +56,10 @@ );

export enum EnterpriseWebhookTypeEnum {
"bankAccount" = "bankAccount",
"accessToken" = "accessToken",
}
export const EnterpriseWebhookType = t.keyof(
{
bankAccount: 1,
accessToken: 1,
},
EnterpriseWebhookTypeEnum,
"EnterpriseWebhookType",
);
export type EnterpriseWebhookType = t.TypeOf<typeof EnterpriseWebhookType>;

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