@bitgo/public-types 2.13.0 → 2.15.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 +2 -2
- package/dist/src/schema/mpcv2/common/mpcv2P2PMessage.d.ts +2 -2
- package/dist/src/schema/mpcv2/common/mpcv2PartyFromStringOrNumber.d.ts +2 -4
- package/dist/src/schema/mpcv2/common/mpcv2PartyFromStringOrNumber.d.ts.map +1 -1
- package/dist/src/schema/mpcv2/common/mpcv2PartyFromStringOrNumber.js +2 -22
- package/dist/src/schema/mpcv2/common/mpcv2PartyFromStringOrNumber.js.map +1 -1
- package/dist/src/schema/mpcv2/keyGen/keygenRound.d.ts +22 -22
- package/dist/src/schema/mpcv2/signing/signingRound.d.ts +11 -11
- package/dist/src/schema/webhook/enterpriseWebhooks.d.ts +73 -0
- package/dist/src/schema/webhook/enterpriseWebhooks.d.ts.map +1 -0
- package/dist/src/schema/webhook/{addEnterpriseWebhookRequest.js → enterpriseWebhooks.js} +12 -2
- package/dist/src/schema/webhook/enterpriseWebhooks.js.map +1 -0
- package/dist/src/schema/webhook/index.d.ts +1 -1
- package/dist/src/schema/webhook/index.d.ts.map +1 -1
- package/dist/src/schema/webhook/index.js +1 -1
- package/dist/src/schema/webhook/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/src/schema/webhook/addEnterpriseWebhookRequest.d.ts +0 -13
- package/dist/src/schema/webhook/addEnterpriseWebhookRequest.d.ts.map +0 -1
- package/dist/src/schema/webhook/addEnterpriseWebhookRequest.js.map +0 -1
@@ -1,12 +1,12 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
2
|
export declare const MPCv2BroadcastMessage: t.TypeC<{
|
3
|
-
from:
|
3
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
4
4
|
message: t.StringC;
|
5
5
|
signature: t.StringC;
|
6
6
|
}>;
|
7
7
|
export type MPCv2BroadcastMessage = t.TypeOf<typeof MPCv2BroadcastMessage>;
|
8
8
|
export declare const MPCv2BroadcastMessageWithSignatureR: t.IntersectionC<[t.TypeC<{
|
9
|
-
from:
|
9
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
10
10
|
message: t.StringC;
|
11
11
|
signature: t.StringC;
|
12
12
|
}>, t.TypeC<{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
2
|
export declare const MPCv2P2PMessage: t.TypeC<{
|
3
|
-
from:
|
4
|
-
to:
|
3
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
4
|
+
to: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
5
5
|
encryptedMessage: t.StringC;
|
6
6
|
signature: t.StringC;
|
7
7
|
}>;
|
@@ -1,6 +1,4 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
|
-
export
|
3
|
-
export
|
4
|
-
}
|
5
|
-
export declare const MPCv2PartyFromStringOrNumber: MPCv2PartyFromStringOrNumberC;
|
2
|
+
export declare const MPCv2PartyFromStringOrNumber: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
3
|
+
export type MPCv2PartyFromStringOrNumber = t.TypeOf<typeof MPCv2PartyFromStringOrNumber>;
|
6
4
|
//# sourceMappingURL=mpcv2PartyFromStringOrNumber.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mpcv2PartyFromStringOrNumber.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2PartyFromStringOrNumber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"mpcv2PartyFromStringOrNumber.d.ts","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2PartyFromStringOrNumber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAK3B,eAAO,MAAM,4BAA4B,yGAGxC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CACjD,OAAO,4BAA4B,CACpC,CAAC"}
|
@@ -26,26 +26,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.MPCv2PartyFromStringOrNumber = void 0;
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
28
|
const io_ts_types_1 = require("io-ts-types");
|
29
|
-
const
|
30
|
-
exports.MPCv2PartyFromStringOrNumber =
|
31
|
-
return t.number.is(u) && (u === 0 || u === 1 || u === 2);
|
32
|
-
}, (u, c) => {
|
33
|
-
let mpcv2Party = -1;
|
34
|
-
if (io_ts_types_1.NonEmptyString.is(u)) {
|
35
|
-
const val = io_ts_types_1.NumberFromString.validate(u, c);
|
36
|
-
if ((0, These_1.isLeft)(val)) {
|
37
|
-
return t.failure(u, c, "value is not a NumberFromString");
|
38
|
-
}
|
39
|
-
mpcv2Party = val.right;
|
40
|
-
}
|
41
|
-
else if (t.number.is(u)) {
|
42
|
-
mpcv2Party = u;
|
43
|
-
}
|
44
|
-
else {
|
45
|
-
return t.failure(u, c, "value is neither a NumberFromString or a Number");
|
46
|
-
}
|
47
|
-
return mpcv2Party === 0 || mpcv2Party === 1 || mpcv2Party === 2
|
48
|
-
? t.success(mpcv2Party)
|
49
|
-
: t.failure(u, c, `value is ${mpcv2Party} but expected one of [0,1,2]`);
|
50
|
-
}, (a) => a);
|
29
|
+
const validPartyIndexes = t.union([t.literal(0), t.literal(1), t.literal(2)]);
|
30
|
+
exports.MPCv2PartyFromStringOrNumber = (0, io_ts_types_1.withMessage)(t.union([validPartyIndexes, io_ts_types_1.NumberFromString.pipe(validPartyIndexes)]), (input) => `value is ${input} but expected one of [0, 1, 2, "0", "1", "2"]`);
|
51
31
|
//# sourceMappingURL=mpcv2PartyFromStringOrNumber.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mpcv2PartyFromStringOrNumber.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2PartyFromStringOrNumber.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
1
|
+
{"version":3,"file":"mpcv2PartyFromStringOrNumber.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/common/mpcv2PartyFromStringOrNumber.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA4D;AAE5D,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAEjE,QAAA,4BAA4B,GAAG,IAAA,yBAAW,EACrD,CAAC,CAAC,KAAK,CAAC,CAAC,iBAAiB,EAAE,8BAAgB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,EACtE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,KAAK,+CAA+C,CAC5E,CAAC"}
|
@@ -3,12 +3,12 @@ export declare const MPCv2KeyGenRound1Request: t.TypeC<{
|
|
3
3
|
userGpgPublicKey: import("io-ts-types").NonEmptyStringC;
|
4
4
|
backupGpgPublicKey: import("io-ts-types").NonEmptyStringC;
|
5
5
|
userMsg1: t.TypeC<{
|
6
|
-
from:
|
6
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
7
7
|
message: t.StringC;
|
8
8
|
signature: t.StringC;
|
9
9
|
}>;
|
10
10
|
backupMsg1: t.TypeC<{
|
11
|
-
from:
|
11
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
12
12
|
message: t.StringC;
|
13
13
|
signature: t.StringC;
|
14
14
|
}>;
|
@@ -17,19 +17,19 @@ export type MPCv2KeyGenRound1Request = t.TypeOf<typeof MPCv2KeyGenRound1Request>
|
|
17
17
|
export declare const MPCv2KeyGenRound1Response: t.TypeC<{
|
18
18
|
sessionId: import("io-ts-types").NonEmptyStringC;
|
19
19
|
bitgoMsg1: t.TypeC<{
|
20
|
-
from:
|
20
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
21
21
|
message: t.StringC;
|
22
22
|
signature: t.StringC;
|
23
23
|
}>;
|
24
24
|
bitgoToUserMsg2: t.TypeC<{
|
25
|
-
from:
|
26
|
-
to:
|
25
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
26
|
+
to: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
27
27
|
encryptedMessage: t.StringC;
|
28
28
|
signature: t.StringC;
|
29
29
|
}>;
|
30
30
|
bitgoToBackupMsg2: t.TypeC<{
|
31
|
-
from:
|
32
|
-
to:
|
31
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
32
|
+
to: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
33
33
|
encryptedMessage: t.StringC;
|
34
34
|
signature: t.StringC;
|
35
35
|
}>;
|
@@ -38,15 +38,15 @@ export type MPCv2KeyGenRound1Response = t.TypeOf<typeof MPCv2KeyGenRound1Respons
|
|
38
38
|
export declare const MPCv2KeyGenRound2Request: t.TypeC<{
|
39
39
|
sessionId: import("io-ts-types").NonEmptyStringC;
|
40
40
|
userMsg2: t.TypeC<{
|
41
|
-
from:
|
42
|
-
to:
|
41
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
42
|
+
to: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
43
43
|
encryptedMessage: t.StringC;
|
44
44
|
signature: t.StringC;
|
45
45
|
}>;
|
46
46
|
userCommitment2: import("io-ts-types").NonEmptyStringC;
|
47
47
|
backupMsg2: t.TypeC<{
|
48
|
-
from:
|
49
|
-
to:
|
48
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
49
|
+
to: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
50
50
|
encryptedMessage: t.StringC;
|
51
51
|
signature: t.StringC;
|
52
52
|
}>;
|
@@ -57,14 +57,14 @@ export declare const MPCv2KeyGenRound2Response: t.TypeC<{
|
|
57
57
|
sessionId: import("io-ts-types").NonEmptyStringC;
|
58
58
|
bitgoCommitment2: import("io-ts-types").NonEmptyStringC;
|
59
59
|
bitgoToUserMsg3: t.TypeC<{
|
60
|
-
from:
|
61
|
-
to:
|
60
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
61
|
+
to: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
62
62
|
encryptedMessage: t.StringC;
|
63
63
|
signature: t.StringC;
|
64
64
|
}>;
|
65
65
|
bitgoToBackupMsg3: t.TypeC<{
|
66
|
-
from:
|
67
|
-
to:
|
66
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
67
|
+
to: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
68
68
|
encryptedMessage: t.StringC;
|
69
69
|
signature: t.StringC;
|
70
70
|
}>;
|
@@ -73,24 +73,24 @@ export type MPCv2KeyGenRound2Response = t.TypeOf<typeof MPCv2KeyGenRound2Respons
|
|
73
73
|
export declare const MPCv2KeyGenRound3Request: t.TypeC<{
|
74
74
|
sessionId: import("io-ts-types").NonEmptyStringC;
|
75
75
|
userMsg3: t.TypeC<{
|
76
|
-
from:
|
77
|
-
to:
|
76
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
77
|
+
to: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
78
78
|
encryptedMessage: t.StringC;
|
79
79
|
signature: t.StringC;
|
80
80
|
}>;
|
81
81
|
backupMsg3: t.TypeC<{
|
82
|
-
from:
|
83
|
-
to:
|
82
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
83
|
+
to: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
84
84
|
encryptedMessage: t.StringC;
|
85
85
|
signature: t.StringC;
|
86
86
|
}>;
|
87
87
|
userMsg4: t.TypeC<{
|
88
|
-
from:
|
88
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
89
89
|
message: t.StringC;
|
90
90
|
signature: t.StringC;
|
91
91
|
}>;
|
92
92
|
backupMsg4: t.TypeC<{
|
93
|
-
from:
|
93
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
94
94
|
message: t.StringC;
|
95
95
|
signature: t.StringC;
|
96
96
|
}>;
|
@@ -100,7 +100,7 @@ export declare const MPCv2KeyGenRound3Response: t.TypeC<{
|
|
100
100
|
sessionId: import("io-ts-types").NonEmptyStringC;
|
101
101
|
commonKeychain: import("io-ts-types").NonEmptyStringC;
|
102
102
|
bitgoMsg4: t.TypeC<{
|
103
|
-
from:
|
103
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
104
104
|
message: t.StringC;
|
105
105
|
signature: t.StringC;
|
106
106
|
}>;
|
@@ -8,7 +8,7 @@ export declare const MPCv2SignatureShareRound1Input: t.IntersectionC<[t.TypeC<{
|
|
8
8
|
type: t.LiteralC<"round1Input">;
|
9
9
|
data: t.TypeC<{
|
10
10
|
msg1: t.TypeC<{
|
11
|
-
from:
|
11
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
12
12
|
message: t.StringC;
|
13
13
|
signature: t.StringC;
|
14
14
|
}>;
|
@@ -21,13 +21,13 @@ export declare const MPCv2SignatureShareRound1Output: t.IntersectionC<[t.TypeC<{
|
|
21
21
|
type: t.LiteralC<"round1Output">;
|
22
22
|
data: t.TypeC<{
|
23
23
|
msg1: t.TypeC<{
|
24
|
-
from:
|
24
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
25
25
|
message: t.StringC;
|
26
26
|
signature: t.StringC;
|
27
27
|
}>;
|
28
28
|
msg2: t.TypeC<{
|
29
|
-
from:
|
30
|
-
to:
|
29
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
30
|
+
to: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
31
31
|
encryptedMessage: t.StringC;
|
32
32
|
signature: t.StringC;
|
33
33
|
}>;
|
@@ -40,14 +40,14 @@ export declare const MPCv2SignatureShareRound2Input: t.IntersectionC<[t.TypeC<{
|
|
40
40
|
type: t.LiteralC<"round2Input">;
|
41
41
|
data: t.TypeC<{
|
42
42
|
msg2: t.TypeC<{
|
43
|
-
from:
|
44
|
-
to:
|
43
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
44
|
+
to: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
45
45
|
encryptedMessage: t.StringC;
|
46
46
|
signature: t.StringC;
|
47
47
|
}>;
|
48
48
|
msg3: t.TypeC<{
|
49
|
-
from:
|
50
|
-
to:
|
49
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
50
|
+
to: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
51
51
|
encryptedMessage: t.StringC;
|
52
52
|
signature: t.StringC;
|
53
53
|
}>;
|
@@ -60,8 +60,8 @@ export declare const MPCv2SignatureShareRound2Output: t.IntersectionC<[t.TypeC<{
|
|
60
60
|
type: t.LiteralC<"round2Output">;
|
61
61
|
data: t.TypeC<{
|
62
62
|
msg3: t.TypeC<{
|
63
|
-
from:
|
64
|
-
to:
|
63
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
64
|
+
to: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
65
65
|
encryptedMessage: t.StringC;
|
66
66
|
signature: t.StringC;
|
67
67
|
}>;
|
@@ -74,7 +74,7 @@ export declare const MPCv2SignatureShareRound3Input: t.IntersectionC<[t.TypeC<{
|
|
74
74
|
type: t.LiteralC<"round3Input">;
|
75
75
|
data: t.TypeC<{
|
76
76
|
msg4: t.IntersectionC<[t.TypeC<{
|
77
|
-
from:
|
77
|
+
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>;
|
78
78
|
message: t.StringC;
|
79
79
|
signature: t.StringC;
|
80
80
|
}>, t.TypeC<{
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const AddEnterpriseWebhookRequestBody: {
|
3
|
+
type: t.KeyofC<typeof import("./webhookType").EnterpriseWebhookTypeEnum>;
|
4
|
+
url: import("io-ts-types").NonEmptyStringC;
|
5
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
6
|
+
};
|
7
|
+
export declare const AddEnterpriseWebhookRequestBodyC: t.TypeC<{
|
8
|
+
type: t.KeyofC<typeof import("./webhookType").EnterpriseWebhookTypeEnum>;
|
9
|
+
url: import("io-ts-types").NonEmptyStringC;
|
10
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
11
|
+
}>;
|
12
|
+
export type AddEnterpriseWebhookRequestBody = t.TypeOf<typeof AddEnterpriseWebhookRequestBodyC>;
|
13
|
+
export declare const ListEnterpriseWebhooksRequestBody: {
|
14
|
+
type: t.UnionC<[t.Type<"bankAccount", "bankAccount", unknown>, t.UndefinedC]>;
|
15
|
+
};
|
16
|
+
export declare const ListEnterpriseWebhooksRequestBodyC: t.TypeC<{
|
17
|
+
type: t.UnionC<[t.Type<"bankAccount", "bankAccount", unknown>, t.UndefinedC]>;
|
18
|
+
}>;
|
19
|
+
export type ListEnterpriseWebhooksRequestBody = t.TypeOf<typeof ListEnterpriseWebhooksRequestBodyC>;
|
20
|
+
export declare const ListEnterpriseWebhooksResponse: t.TypeC<{
|
21
|
+
webhooks: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
22
|
+
id: t.StringC;
|
23
|
+
created: import("io-ts-types").DateFromISOStringC;
|
24
|
+
coin: t.StringC;
|
25
|
+
url: t.StringC;
|
26
|
+
version: t.NumberC;
|
27
|
+
state: t.KeyofC<typeof import("./webhookState").WebhookStateEnum>;
|
28
|
+
successiveFailedAttempts: t.NumberC;
|
29
|
+
listenToFailureStates: t.BooleanC;
|
30
|
+
}>, t.PartialC<{
|
31
|
+
label: t.StringC;
|
32
|
+
walletId: t.StringC;
|
33
|
+
enterpriseId: t.StringC;
|
34
|
+
organizationId: t.StringC;
|
35
|
+
scope: t.KeyofC<typeof import("./webhookScope").WebhookScopeEnum>;
|
36
|
+
userId: t.StringC;
|
37
|
+
type: t.KeyofC<typeof import("./webhookType").WebhookTypeEnum>;
|
38
|
+
numConfirmations: t.NumberC;
|
39
|
+
lastAttempt: import("io-ts-types").DateFromISOStringC;
|
40
|
+
failingSince: import("io-ts-types").DateFromISOStringC;
|
41
|
+
allToken: t.BooleanC;
|
42
|
+
txRequestStates: t.ArrayC<t.KeyofC<{
|
43
|
+
pendingApproval: number;
|
44
|
+
canceled: number;
|
45
|
+
rejected: number;
|
46
|
+
initialized: number;
|
47
|
+
pendingDelivery: number;
|
48
|
+
delivered: number;
|
49
|
+
pendingUserSignature: number;
|
50
|
+
pendingUserCommitment: number;
|
51
|
+
pendingUserRShare: number;
|
52
|
+
pendingUserGShare: number;
|
53
|
+
readyToSend: number;
|
54
|
+
signed: number;
|
55
|
+
failed: number;
|
56
|
+
}>>;
|
57
|
+
txRequestTransactionStates: t.ArrayC<t.KeyofC<{
|
58
|
+
initialized: number;
|
59
|
+
pendingSignature: number;
|
60
|
+
eddsaPendingCommitment: number;
|
61
|
+
eddsaPendingRShare: number;
|
62
|
+
eddsaPendingGShare: number;
|
63
|
+
readyToCombineShares: number;
|
64
|
+
signed: number;
|
65
|
+
held: number;
|
66
|
+
delivered: number;
|
67
|
+
invalidSignature: number;
|
68
|
+
rejected: number;
|
69
|
+
}>>;
|
70
|
+
}>]>>;
|
71
|
+
}>;
|
72
|
+
export type ListEnterpriseWebhooksResponse = t.TypeOf<typeof ListEnterpriseWebhooksResponse>;
|
73
|
+
//# sourceMappingURL=enterpriseWebhooks.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"enterpriseWebhooks.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/enterpriseWebhooks.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,eAAO,MAAM,+BAA+B;;;;CAI3C,CAAC;AACF,eAAO,MAAM,gCAAgC;;;;EAE3C,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CACpD,OAAO,gCAAgC,CACxC,CAAC;AAEF,eAAO,MAAM,iCAAiC;;CAE7C,CAAC;AACF,eAAO,MAAM,kCAAkC;;EAE7C,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CACtD,OAAO,kCAAkC,CAC1C,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEzC,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CACnD,OAAO,8BAA8B,CACtC,CAAC"}
|
@@ -23,11 +23,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
23
|
return result;
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.AddEnterpriseWebhookRequestBodyC = exports.AddEnterpriseWebhookRequestBody = void 0;
|
26
|
+
exports.ListEnterpriseWebhooksResponse = exports.ListEnterpriseWebhooksRequestBodyC = exports.ListEnterpriseWebhooksRequestBody = exports.AddEnterpriseWebhookRequestBodyC = exports.AddEnterpriseWebhookRequestBody = void 0;
|
27
27
|
const webhookType_1 = require("./webhookType");
|
28
28
|
const io_ts_types_1 = require("io-ts-types");
|
29
29
|
const utils_1 = require("../../utils");
|
30
30
|
const t = __importStar(require("io-ts"));
|
31
|
+
const webhook_1 = require("./webhook");
|
31
32
|
exports.AddEnterpriseWebhookRequestBody = {
|
32
33
|
type: webhookType_1.EnterpriseWebhookType,
|
33
34
|
url: io_ts_types_1.NonEmptyString,
|
@@ -36,4 +37,13 @@ exports.AddEnterpriseWebhookRequestBody = {
|
|
36
37
|
exports.AddEnterpriseWebhookRequestBodyC = t.type({
|
37
38
|
...exports.AddEnterpriseWebhookRequestBody,
|
38
39
|
});
|
39
|
-
|
40
|
+
exports.ListEnterpriseWebhooksRequestBody = {
|
41
|
+
type: (0, utils_1.Optional)(webhookType_1.EnterpriseWebhookType),
|
42
|
+
};
|
43
|
+
exports.ListEnterpriseWebhooksRequestBodyC = t.type({
|
44
|
+
...exports.ListEnterpriseWebhooksRequestBody,
|
45
|
+
});
|
46
|
+
exports.ListEnterpriseWebhooksResponse = t.type({
|
47
|
+
webhooks: t.array(webhook_1.Webhook),
|
48
|
+
});
|
49
|
+
//# sourceMappingURL=enterpriseWebhooks.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"enterpriseWebhooks.js","sourceRoot":"","sources":["../../../../src/schema/webhook/enterpriseWebhooks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAsD;AACtD,6CAA6C;AAC7C,uCAAuC;AACvC,yCAA2B;AAC3B,uCAAoC;AAEvB,QAAA,+BAA+B,GAAG;IAC7C,IAAI,EAAE,mCAAqB;IAC3B,GAAG,EAAE,4BAAc;IACnB,KAAK,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,MAAM,CAAC;CAC1B,CAAC;AACW,QAAA,gCAAgC,GAAG,CAAC,CAAC,IAAI,CAAC;IACrD,GAAG,uCAA+B;CACnC,CAAC,CAAC;AAMU,QAAA,iCAAiC,GAAG;IAC/C,IAAI,EAAE,IAAA,gBAAQ,EAAC,mCAAqB,CAAC;CACtC,CAAC;AACW,QAAA,kCAAkC,GAAG,CAAC,CAAC,IAAI,CAAC;IACvD,GAAG,yCAAiC;CACrC,CAAC,CAAC;AAMU,QAAA,8BAA8B,GAAG,CAAC,CAAC,IAAI,CAAC;IACnD,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAO,CAAC;CAC3B,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":"AAAA,cAAc
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./
|
17
|
+
__exportStar(require("./enterpriseWebhooks"), exports);
|
18
18
|
__exportStar(require("./addWalletWebhookRequest"), exports);
|
19
19
|
__exportStar(require("./webhook"), exports);
|
20
20
|
__exportStar(require("./webhookNotification"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,4CAA0B;AAC1B,wDAAsC;AACtC,iDAA+B;AAC/B,iDAA+B;AAC/B,gDAA8B"}
|
package/package.json
CHANGED
@@ -1,13 +0,0 @@
|
|
1
|
-
import * as t from "io-ts";
|
2
|
-
export declare const AddEnterpriseWebhookRequestBody: {
|
3
|
-
type: t.KeyofC<typeof import("./webhookType").EnterpriseWebhookTypeEnum>;
|
4
|
-
url: import("io-ts-types").NonEmptyStringC;
|
5
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
6
|
-
};
|
7
|
-
export declare const AddEnterpriseWebhookRequestBodyC: t.TypeC<{
|
8
|
-
type: t.KeyofC<typeof import("./webhookType").EnterpriseWebhookTypeEnum>;
|
9
|
-
url: import("io-ts-types").NonEmptyStringC;
|
10
|
-
label: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
11
|
-
}>;
|
12
|
-
export type AddEnterpriseWebhookRequestBody = t.TypeOf<typeof AddEnterpriseWebhookRequestBodyC>;
|
13
|
-
//# sourceMappingURL=addEnterpriseWebhookRequest.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"addEnterpriseWebhookRequest.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/addEnterpriseWebhookRequest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,eAAO,MAAM,+BAA+B;;;;CAI3C,CAAC;AACF,eAAO,MAAM,gCAAgC;;;;EAE3C,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CACpD,OAAO,gCAAgC,CACxC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"addEnterpriseWebhookRequest.js","sourceRoot":"","sources":["../../../../src/schema/webhook/addEnterpriseWebhookRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAsD;AACtD,6CAA6C;AAC7C,uCAAuC;AACvC,yCAA2B;AAEd,QAAA,+BAA+B,GAAG;IAC7C,IAAI,EAAE,mCAAqB;IAC3B,GAAG,EAAE,4BAAc;IACnB,KAAK,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,MAAM,CAAC;CAC1B,CAAC;AACW,QAAA,gCAAgC,GAAG,CAAC,CAAC,IAAI,CAAC;IACrD,GAAG,uCAA+B;CACnC,CAAC,CAAC"}
|