@bitgo/public-types 2.9.2 → 2.10.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/mpcv2/common/mpcv2BroadcastMessage.d.ts +9 -3
- package/dist/src/schema/mpcv2/common/mpcv2BroadcastMessage.d.ts.map +1 -1
- package/dist/src/schema/mpcv2/common/mpcv2BroadcastMessage.js +8 -7
- package/dist/src/schema/mpcv2/common/mpcv2BroadcastMessage.js.map +1 -1
- package/dist/src/schema/mpcv2/keyGen/keygenRound.d.ts +12 -24
- package/dist/src/schema/mpcv2/keyGen/keygenRound.d.ts.map +1 -1
- package/dist/src/schema/mpcv2/signing/signingRound.d.ts +5 -9
- package/dist/src/schema/mpcv2/signing/signingRound.d.ts.map +1 -1
- package/dist/src/schema/mpcv2/signing/signingRound.js +1 -1
- package/dist/src/schema/mpcv2/signing/signingRound.js.map +1 -1
- 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/package.json +1 -1
@@ -1,10 +1,16 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export declare const MPCv2BroadcastMessage: t.
|
2
|
+
export declare const MPCv2BroadcastMessage: t.TypeC<{
|
3
3
|
from: import("./mpcv2PartyFromStringOrNumber").MPCv2PartyFromStringOrNumberC;
|
4
4
|
message: t.StringC;
|
5
5
|
signature: t.StringC;
|
6
|
-
}
|
6
|
+
}>;
|
7
|
+
export type MPCv2BroadcastMessage = t.TypeOf<typeof MPCv2BroadcastMessage>;
|
8
|
+
export declare const MPCv2BroadcastMessageWithSignatureR: t.IntersectionC<[t.TypeC<{
|
9
|
+
from: import("./mpcv2PartyFromStringOrNumber").MPCv2PartyFromStringOrNumberC;
|
10
|
+
message: t.StringC;
|
11
|
+
signature: t.StringC;
|
12
|
+
}>, t.TypeC<{
|
7
13
|
signatureR: t.StringC;
|
8
14
|
}>]>;
|
9
|
-
export type
|
15
|
+
export type MPCv2BroadcastMessageWithSignatureR = t.TypeOf<typeof MPCv2BroadcastMessageWithSignatureR>;
|
10
16
|
//# sourceMappingURL=mpcv2BroadcastMessage.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mpcv2BroadcastMessage.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2BroadcastMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,eAAO,MAAM,qBAAqB
|
1
|
+
{"version":3,"file":"mpcv2BroadcastMessage.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2BroadcastMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,eAAO,MAAM,qBAAqB;;;;EAOjC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE3E,eAAO,MAAM,mCAAmC;;;;;;IAK9C,CAAC;AAEH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CACxD,OAAO,mCAAmC,CAC3C,CAAC"}
|
@@ -23,16 +23,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
23
|
return result;
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.MPCv2BroadcastMessage = void 0;
|
26
|
+
exports.MPCv2BroadcastMessageWithSignatureR = exports.MPCv2BroadcastMessage = void 0;
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
28
|
const mpcv2PartyFromStringOrNumber_1 = require("./mpcv2PartyFromStringOrNumber");
|
29
|
-
exports.MPCv2BroadcastMessage = t.
|
29
|
+
exports.MPCv2BroadcastMessage = t.type({
|
30
|
+
from: mpcv2PartyFromStringOrNumber_1.MPCv2PartyFromStringOrNumber,
|
31
|
+
message: t.string,
|
32
|
+
signature: t.string,
|
33
|
+
}, "MPCv2BroadcastMessage");
|
34
|
+
exports.MPCv2BroadcastMessageWithSignatureR = t.intersection([
|
35
|
+
exports.MPCv2BroadcastMessage,
|
30
36
|
t.type({
|
31
|
-
from: mpcv2PartyFromStringOrNumber_1.MPCv2PartyFromStringOrNumber,
|
32
|
-
message: t.string,
|
33
|
-
signature: t.string,
|
34
|
-
}, "MPCv2BroadcastMessage"),
|
35
|
-
t.partial({
|
36
37
|
signatureR: t.string,
|
37
38
|
}),
|
38
39
|
]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mpcv2BroadcastMessage.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2BroadcastMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iFAA8E;AAEjE,QAAA,qBAAqB,GAAG,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"mpcv2BroadcastMessage.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2BroadcastMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iFAA8E;AAEjE,QAAA,qBAAqB,GAAG,CAAC,CAAC,IAAI,CACzC;IACE,IAAI,EAAE,2DAA4B;IAClC,OAAO,EAAE,CAAC,CAAC,MAAM;IACjB,SAAS,EAAE,CAAC,CAAC,MAAM;CACpB,EACD,uBAAuB,CACxB,CAAC;AAIW,QAAA,mCAAmC,GAAG,CAAC,CAAC,YAAY,CAAC;IAChE,6BAAqB;IACrB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,CAAC,CAAC,MAAM;KACrB,CAAC;CACH,CAAC,CAAC"}
|
@@ -2,31 +2,25 @@ import * as t from "io-ts";
|
|
2
2
|
export declare const MPCv2KeyGenRound1Request: t.TypeC<{
|
3
3
|
userGpgPublicKey: import("io-ts-types").NonEmptyStringC;
|
4
4
|
backupGpgPublicKey: import("io-ts-types").NonEmptyStringC;
|
5
|
-
userMsg1: t.
|
5
|
+
userMsg1: t.TypeC<{
|
6
6
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
7
7
|
message: t.StringC;
|
8
8
|
signature: t.StringC;
|
9
|
-
}
|
10
|
-
|
11
|
-
}>]>;
|
12
|
-
backupMsg1: t.IntersectionC<[t.TypeC<{
|
9
|
+
}>;
|
10
|
+
backupMsg1: t.TypeC<{
|
13
11
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
14
12
|
message: t.StringC;
|
15
13
|
signature: t.StringC;
|
16
|
-
}
|
17
|
-
signatureR: t.StringC;
|
18
|
-
}>]>;
|
14
|
+
}>;
|
19
15
|
}>;
|
20
16
|
export type MPCv2KeyGenRound1Request = t.TypeOf<typeof MPCv2KeyGenRound1Request>;
|
21
17
|
export declare const MPCv2KeyGenRound1Response: t.TypeC<{
|
22
18
|
sessionId: import("io-ts-types").NonEmptyStringC;
|
23
|
-
bitgoMsg1: t.
|
19
|
+
bitgoMsg1: t.TypeC<{
|
24
20
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
25
21
|
message: t.StringC;
|
26
22
|
signature: t.StringC;
|
27
|
-
}
|
28
|
-
signatureR: t.StringC;
|
29
|
-
}>]>;
|
23
|
+
}>;
|
30
24
|
bitgoToUserMsg2: t.TypeC<{
|
31
25
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
32
26
|
to: import("../common").MPCv2PartyFromStringOrNumberC;
|
@@ -90,32 +84,26 @@ export declare const MPCv2KeyGenRound3Request: t.TypeC<{
|
|
90
84
|
encryptedMessage: t.StringC;
|
91
85
|
signature: t.StringC;
|
92
86
|
}>;
|
93
|
-
userMsg4: t.
|
87
|
+
userMsg4: t.TypeC<{
|
94
88
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
95
89
|
message: t.StringC;
|
96
90
|
signature: t.StringC;
|
97
|
-
}
|
98
|
-
|
99
|
-
}>]>;
|
100
|
-
backupMsg4: t.IntersectionC<[t.TypeC<{
|
91
|
+
}>;
|
92
|
+
backupMsg4: t.TypeC<{
|
101
93
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
102
94
|
message: t.StringC;
|
103
95
|
signature: t.StringC;
|
104
|
-
}
|
105
|
-
signatureR: t.StringC;
|
106
|
-
}>]>;
|
96
|
+
}>;
|
107
97
|
}>;
|
108
98
|
export type MPCv2KeyGenRound3Request = t.TypeOf<typeof MPCv2KeyGenRound3Request>;
|
109
99
|
export declare const MPCv2KeyGenRound3Response: t.TypeC<{
|
110
100
|
sessionId: import("io-ts-types").NonEmptyStringC;
|
111
101
|
commonKeychain: import("io-ts-types").NonEmptyStringC;
|
112
|
-
bitgoMsg4: t.
|
102
|
+
bitgoMsg4: t.TypeC<{
|
113
103
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
114
104
|
message: t.StringC;
|
115
105
|
signature: t.StringC;
|
116
|
-
}
|
117
|
-
signatureR: t.StringC;
|
118
|
-
}>]>;
|
106
|
+
}>;
|
119
107
|
}>;
|
120
108
|
export type MPCv2KeyGenRound3Response = t.TypeOf<typeof MPCv2KeyGenRound3Response>;
|
121
109
|
//# sourceMappingURL=keygenRound.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"keygenRound.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/keyGen/keygenRound.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAI3B,eAAO,MAAM,wBAAwB
|
1
|
+
{"version":3,"file":"keygenRound.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/keyGen/keygenRound.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAI3B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;EAKnC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,wBAAwB,CAChC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;EAKpC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAC9C,OAAO,yBAAyB,CACjC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;EAMnC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,wBAAwB,CAChC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;EAKpC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAC9C,OAAO,yBAAyB,CACjC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;EAMnC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,wBAAwB,CAChC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;EAIpC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAC9C,OAAO,yBAAyB,CACjC,CAAC"}
|
@@ -7,13 +7,11 @@ export declare const MPCv2SignatureShareRound1Input: t.IntersectionC<[t.TypeC<{
|
|
7
7
|
}>, t.TypeC<{
|
8
8
|
type: t.LiteralC<"round1Input">;
|
9
9
|
data: t.TypeC<{
|
10
|
-
msg1: t.
|
10
|
+
msg1: t.TypeC<{
|
11
11
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
12
12
|
message: t.StringC;
|
13
13
|
signature: t.StringC;
|
14
|
-
}
|
15
|
-
signatureR: t.StringC;
|
16
|
-
}>]>;
|
14
|
+
}>;
|
17
15
|
}>;
|
18
16
|
}>]>;
|
19
17
|
export type MPCv2SignatureShareRound1Input = t.TypeOf<typeof MPCv2SignatureShareRound1Input>;
|
@@ -22,13 +20,11 @@ export declare const MPCv2SignatureShareRound1Output: t.IntersectionC<[t.TypeC<{
|
|
22
20
|
}>, t.TypeC<{
|
23
21
|
type: t.LiteralC<"round1Output">;
|
24
22
|
data: t.TypeC<{
|
25
|
-
msg1: t.
|
23
|
+
msg1: t.TypeC<{
|
26
24
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
27
25
|
message: t.StringC;
|
28
26
|
signature: t.StringC;
|
29
|
-
}
|
30
|
-
signatureR: t.StringC;
|
31
|
-
}>]>;
|
27
|
+
}>;
|
32
28
|
msg2: t.TypeC<{
|
33
29
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
34
30
|
to: import("../common").MPCv2PartyFromStringOrNumberC;
|
@@ -81,7 +77,7 @@ export declare const MPCv2SignatureShareRound3Input: t.IntersectionC<[t.TypeC<{
|
|
81
77
|
from: import("../common").MPCv2PartyFromStringOrNumberC;
|
82
78
|
message: t.StringC;
|
83
79
|
signature: t.StringC;
|
84
|
-
}>, t.
|
80
|
+
}>, t.TypeC<{
|
85
81
|
signatureR: t.StringC;
|
86
82
|
}>]>;
|
87
83
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"signingRound.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/signing/signingRound.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"signingRound.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/signing/signingRound.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAQ3B,eAAO,MAAM,uBAAuB;;EAElC,CAAC;AAKH,eAAO,MAAM,8BAA8B;;;;;;;;;;;IAWzC,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CACnD,OAAO,8BAA8B,CACtC,CAAC;AAKF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;IAY1C,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CACpD,OAAO,+BAA+B,CACvC,CAAC;AAKF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;IAYzC,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CACnD,OAAO,8BAA8B,CACtC,CAAC;AAKF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;IAW1C,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CACpD,OAAO,+BAA+B,CACvC,CAAC;AAKF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;IAWzC,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CACnD,OAAO,8BAA8B,CACtC,CAAC"}
|
@@ -73,7 +73,7 @@ exports.MPCv2SignatureShareRound3Input = t.intersection([
|
|
73
73
|
t.type({
|
74
74
|
type: t.literal("round3Input"),
|
75
75
|
data: t.type({
|
76
|
-
msg4: common_1.
|
76
|
+
msg4: common_1.MPCv2BroadcastMessageWithSignatureR,
|
77
77
|
}),
|
78
78
|
}, "MPCv2SignatureShareRound3Input"),
|
79
79
|
]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"signingRound.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/signing/signingRound.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
1
|
+
{"version":3,"file":"signingRound.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/signing/signingRound.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,sCAImB;AACnB,2DAAwD;AAE3C,QAAA,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC5C,IAAI,EAAE,qCAAiB;CACxB,CAAC,CAAC;AAKU,QAAA,8BAA8B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3D,+BAAuB;IACvB,CAAC,CAAC,IAAI,CACJ;QACE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;QAC9B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,8BAAqB;SAC5B,CAAC;KACH,EACD,2BAA2B,CAC5B;CACF,CAAC,CAAC;AASU,QAAA,+BAA+B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5D,+BAAuB;IACvB,CAAC,CAAC,IAAI,CACJ;QACE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;QAC/B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,8BAAqB;YAC3B,IAAI,EAAE,wBAAe;SACtB,CAAC;KACH,EACD,iCAAiC,CAClC;CACF,CAAC,CAAC;AASU,QAAA,8BAA8B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3D,+BAAuB;IACvB,CAAC,CAAC,IAAI,CACJ;QACE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;QAC9B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,wBAAe;YACrB,IAAI,EAAE,wBAAe;SACtB,CAAC;KACH,EACD,gCAAgC,CACjC;CACF,CAAC,CAAC;AASU,QAAA,+BAA+B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5D,+BAAuB;IACvB,CAAC,CAAC,IAAI,CACJ;QACE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;QAC/B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,wBAAe;SACtB,CAAC;KACH,EACD,iCAAiC,CAClC;CACF,CAAC,CAAC;AASU,QAAA,8BAA8B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3D,+BAAuB;IACvB,CAAC,CAAC,IAAI,CACJ;QACE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;QAC9B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,4CAAmC;SAC1C,CAAC;KACH,EACD,gCAAgC,CACjC;CACF,CAAC,CAAC"}
|
@@ -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"}
|