@bitgo/public-types 2.9.3 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/schema/webhook/index.d.ts +1 -0
- package/dist/src/schema/webhook/index.d.ts.map +1 -1
- package/dist/src/schema/webhook/index.js +1 -0
- package/dist/src/schema/webhook/index.js.map +1 -1
- package/dist/src/schema/webhook/webhookNotification.d.ts +29 -0
- package/dist/src/schema/webhook/webhookNotification.d.ts.map +1 -0
- package/dist/src/schema/webhook/webhookNotification.js +59 -0
- package/dist/src/schema/webhook/webhookNotification.js.map +1 -0
- package/dist/src/schema/webhook/webhookType.d.ts +4 -2
- package/dist/src/schema/webhook/webhookType.d.ts.map +1 -1
- package/dist/src/schema/webhook/webhookType.js +2 -0
- package/dist/src/schema/webhook/webhookType.js.map +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./addWalletWebhookRequest"), exports);
|
18
18
|
__exportStar(require("./webhook"), exports);
|
19
|
+
__exportStar(require("./webhookNotification"), exports);
|
19
20
|
__exportStar(require("./webhookState"), exports);
|
20
21
|
__exportStar(require("./webhookType"), exports);
|
21
22
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,4CAA0B;AAC1B,iDAA+B;AAC/B,gDAA8B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,4CAA0B;AAC1B,wDAAsC;AACtC,iDAA+B;AAC/B,gDAA8B"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const WebhookNotification: t.IntersectionC<[t.TypeC<{
|
3
|
+
id: t.StringC;
|
4
|
+
}>, t.PartialC<{
|
5
|
+
type: t.StringC;
|
6
|
+
wallet: t.StringC;
|
7
|
+
url: t.StringC;
|
8
|
+
hash: t.StringC;
|
9
|
+
coin: t.StringC;
|
10
|
+
coinChain: t.StringC;
|
11
|
+
transfer: t.StringC;
|
12
|
+
state: t.StringC;
|
13
|
+
simulation: t.BooleanC;
|
14
|
+
retries: t.NumberC;
|
15
|
+
webhook: t.StringC;
|
16
|
+
updatedAt: import("io-ts-types").DateFromISOStringC;
|
17
|
+
nextAttempt: import("io-ts-types").DateFromISOStringC;
|
18
|
+
version: t.NumberC;
|
19
|
+
allowBlockedHosts: t.BooleanC;
|
20
|
+
heightToConfirm: t.NumberC;
|
21
|
+
payload: t.StringC;
|
22
|
+
response: t.PartialC<{
|
23
|
+
code: t.UnknownC;
|
24
|
+
type: t.StringC;
|
25
|
+
body: t.StringC;
|
26
|
+
error: t.StringC;
|
27
|
+
}>;
|
28
|
+
}>]>;
|
29
|
+
//# sourceMappingURL=webhookNotification.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"webhookNotification.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookNotification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;IA6B9B,CAAC"}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
+
exports.WebhookNotification = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const io_ts_types_1 = require("io-ts-types");
|
29
|
+
exports.WebhookNotification = t.intersection([
|
30
|
+
t.type({
|
31
|
+
id: t.string,
|
32
|
+
}),
|
33
|
+
t.partial({
|
34
|
+
type: t.string,
|
35
|
+
wallet: t.string,
|
36
|
+
url: t.string,
|
37
|
+
hash: t.string,
|
38
|
+
coin: t.string,
|
39
|
+
coinChain: t.string,
|
40
|
+
transfer: t.string,
|
41
|
+
state: t.string,
|
42
|
+
simulation: t.boolean,
|
43
|
+
retries: t.number,
|
44
|
+
webhook: t.string,
|
45
|
+
updatedAt: io_ts_types_1.DateFromISOString,
|
46
|
+
nextAttempt: io_ts_types_1.DateFromISOString,
|
47
|
+
version: t.number,
|
48
|
+
allowBlockedHosts: t.boolean,
|
49
|
+
heightToConfirm: t.number,
|
50
|
+
payload: t.string,
|
51
|
+
response: t.partial({
|
52
|
+
code: t.unknown,
|
53
|
+
type: t.string,
|
54
|
+
body: t.string,
|
55
|
+
error: t.string,
|
56
|
+
}),
|
57
|
+
}),
|
58
|
+
]);
|
59
|
+
//# sourceMappingURL=webhookNotification.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"webhookNotification.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookNotification.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAgD;AAEnC,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,CAAC,CAAC,IAAI,CAAC;QACL,EAAE,EAAE,CAAC,CAAC,MAAM;KACb,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,IAAI,EAAE,CAAC,CAAC,MAAM;QACd,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,GAAG,EAAE,CAAC,CAAC,MAAM;QACb,IAAI,EAAE,CAAC,CAAC,MAAM;QACd,IAAI,EAAE,CAAC,CAAC,MAAM;QACd,SAAS,EAAE,CAAC,CAAC,MAAM;QACnB,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB,KAAK,EAAE,CAAC,CAAC,MAAM;QACf,UAAU,EAAE,CAAC,CAAC,OAAO;QACrB,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,SAAS,EAAE,+BAAiB;QAC5B,WAAW,EAAE,+BAAiB;QAC9B,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,iBAAiB,EAAE,CAAC,CAAC,OAAO;QAC5B,eAAe,EAAE,CAAC,CAAC,MAAM;QACzB,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC;YAClB,IAAI,EAAE,CAAC,CAAC,OAAO;YACf,IAAI,EAAE,CAAC,CAAC,MAAM;YACd,IAAI,EAAE,CAAC,CAAC,MAAM;YACd,KAAK,EAAE,CAAC,CAAC,MAAM;SAChB,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
@@ -12,7 +12,8 @@ export declare enum WebhookTypeEnum {
|
|
12
12
|
"address_confirmation" = "address_confirmation",
|
13
13
|
"lowFee" = "lowFee",
|
14
14
|
"wallet_confirmation" = "wallet_confirmation",
|
15
|
-
"wireWithdrawal" = "wireWithdrawal"
|
15
|
+
"wireWithdrawal" = "wireWithdrawal",
|
16
|
+
"bankAccount" = "bankAccount"
|
16
17
|
}
|
17
18
|
export declare const WebhookType: t.KeyofC<typeof WebhookTypeEnum>;
|
18
19
|
export type WebhookType = t.TypeOf<typeof WebhookType>;
|
@@ -28,7 +29,8 @@ export declare enum WalletWebhookTypeEnum {
|
|
28
29
|
"admin" = "admin",
|
29
30
|
"address_confirmation" = "address_confirmation",
|
30
31
|
"lowFee" = "lowFee",
|
31
|
-
"wireWithdrawal" = "wireWithdrawal"
|
32
|
+
"wireWithdrawal" = "wireWithdrawal",
|
33
|
+
"bankAccount" = "bankAccount"
|
32
34
|
}
|
33
35
|
export declare const WalletWebhookType: t.KeyofC<typeof WalletWebhookTypeEnum>;
|
34
36
|
export type WalletWebhookType = t.TypeOf<typeof WalletWebhookType>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"webhookType.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO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AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
@@ -40,6 +40,7 @@ var WebhookTypeEnum;
|
|
40
40
|
WebhookTypeEnum["lowFee"] = "lowFee";
|
41
41
|
WebhookTypeEnum["wallet_confirmation"] = "wallet_confirmation";
|
42
42
|
WebhookTypeEnum["wireWithdrawal"] = "wireWithdrawal";
|
43
|
+
WebhookTypeEnum["bankAccount"] = "bankAccount";
|
43
44
|
})(WebhookTypeEnum || (exports.WebhookTypeEnum = WebhookTypeEnum = {}));
|
44
45
|
exports.WebhookType = t.keyof(WebhookTypeEnum, "WebhookType");
|
45
46
|
var WalletWebhookTypeEnum;
|
@@ -56,6 +57,7 @@ var WalletWebhookTypeEnum;
|
|
56
57
|
WalletWebhookTypeEnum["address_confirmation"] = "address_confirmation";
|
57
58
|
WalletWebhookTypeEnum["lowFee"] = "lowFee";
|
58
59
|
WalletWebhookTypeEnum["wireWithdrawal"] = "wireWithdrawal";
|
60
|
+
WalletWebhookTypeEnum["bankAccount"] = "bankAccount";
|
59
61
|
})(WalletWebhookTypeEnum || (exports.WalletWebhookTypeEnum = WalletWebhookTypeEnum = {}));
|
60
62
|
exports.WalletWebhookType = t.keyof(WalletWebhookTypeEnum, "WalletWebhookType");
|
61
63
|
//# sourceMappingURL=webhookType.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"webhookType.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,
|
1
|
+
{"version":3,"file":"webhookType.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,eAoBX;AApBD,WAAY,eAAe;IAEzB,0CAAyB,CAAA;IAEzB,gEAA+C,CAAA;IAC/C,wCAAuB,CAAA;IACvB,8CAA6B,CAAA;IAC7B,4DAA2C,CAAA;IAC3C,0DAAyC,CAAA;IACzC,sDAAqC,CAAA;IACrC,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,gEAA+C,CAAA;IAC/C,oCAAmB,CAAA;IAGnB,8DAA6C,CAAA;IAE7C,oDAAmC,CAAA;IACnC,8CAA6B,CAAA;AAC/B,CAAC,EApBW,eAAe,+BAAf,eAAe,QAoB1B;AAEY,QAAA,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAGnE,IAAY,qBAcX;AAdD,WAAY,qBAAqB;IAC/B,gDAAyB,CAAA;IACzB,sEAA+C,CAAA;IAC/C,8CAAuB,CAAA;IACvB,oDAA6B,CAAA;IAC7B,kEAA2C,CAAA;IAC3C,gEAAyC,CAAA;IACzC,4DAAqC,CAAA;IACrC,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,sEAA+C,CAAA;IAC/C,0CAAmB,CAAA;IACnB,0DAAmC,CAAA;IACnC,oDAA6B,CAAA;AAC/B,CAAC,EAdW,qBAAqB,qCAArB,qBAAqB,QAchC;AAEY,QAAA,iBAAiB,GAAG,CAAC,CAAC,KAAK,CACtC,qBAAqB,EACrB,mBAAmB,CACpB,CAAC"}
|