@bitgo/public-types 2.12.0 → 2.14.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/index.d.ts +2 -0
- package/dist/src/schema/webhook/index.d.ts.map +1 -1
- package/dist/src/schema/webhook/index.js +2 -0
- package/dist/src/schema/webhook/index.js.map +1 -1
- package/dist/src/schema/webhook/webhook.d.ts +2 -0
- package/dist/src/schema/webhook/webhook.d.ts.map +1 -1
- package/dist/src/schema/webhook/webhook.js +3 -0
- package/dist/src/schema/webhook/webhook.js.map +1 -1
- package/dist/src/schema/webhook/webhookScope.d.ts +9 -0
- package/dist/src/schema/webhook/webhookScope.d.ts.map +1 -0
- package/dist/src/schema/webhook/webhookScope.js +35 -0
- package/dist/src/schema/webhook/webhookScope.js.map +1 -0
- package/package.json +1 -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<{
|
@@ -1,6 +1,8 @@
|
|
1
|
+
export * from "./addEnterpriseWebhookRequest";
|
1
2
|
export * from "./addWalletWebhookRequest";
|
2
3
|
export * from "./webhook";
|
3
4
|
export * from "./webhookNotification";
|
5
|
+
export * from "./webhookScope";
|
4
6
|
export * from "./webhookState";
|
5
7
|
export * from "./webhookType";
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
@@ -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,uBAAuB,CAAC;AACtC,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,+BAA+B,CAAC;AAC9C,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,9 +14,11 @@ 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("./addEnterpriseWebhookRequest"), exports);
|
17
18
|
__exportStar(require("./addWalletWebhookRequest"), exports);
|
18
19
|
__exportStar(require("./webhook"), exports);
|
19
20
|
__exportStar(require("./webhookNotification"), exports);
|
21
|
+
__exportStar(require("./webhookScope"), exports);
|
20
22
|
__exportStar(require("./webhookState"), exports);
|
21
23
|
__exportStar(require("./webhookType"), exports);
|
22
24
|
//# 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,wDAAsC;AACtC,iDAA+B;AAC/B,gDAA8B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,4DAA0C;AAC1C,4CAA0B;AAC1B,wDAAsC;AACtC,iDAA+B;AAC/B,iDAA+B;AAC/B,gDAA8B"}
|
@@ -12,6 +12,8 @@ export declare const Webhook: t.IntersectionC<[t.TypeC<{
|
|
12
12
|
label: t.StringC;
|
13
13
|
walletId: t.StringC;
|
14
14
|
enterpriseId: t.StringC;
|
15
|
+
organizationId: t.StringC;
|
16
|
+
scope: t.KeyofC<typeof import("./webhookScope").WebhookScopeEnum>;
|
15
17
|
userId: t.StringC;
|
16
18
|
type: t.KeyofC<typeof import("./webhookType").WebhookTypeEnum>;
|
17
19
|
numConfirmations: t.NumberC;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/webhook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/webhook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAQ3B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0BlB,CAAC"}
|
@@ -30,6 +30,7 @@ const transactionRequestState_1 = require("../transactionRequest/transactionRequ
|
|
30
30
|
const transactionState_1 = require("../transactionRequest/transactionState");
|
31
31
|
const webhookState_1 = require("./webhookState");
|
32
32
|
const webhookType_1 = require("./webhookType");
|
33
|
+
const webhookScope_1 = require("./webhookScope");
|
33
34
|
exports.Webhook = t.intersection([
|
34
35
|
t.type({
|
35
36
|
id: t.string,
|
@@ -45,6 +46,8 @@ exports.Webhook = t.intersection([
|
|
45
46
|
label: t.string,
|
46
47
|
walletId: t.string,
|
47
48
|
enterpriseId: t.string,
|
49
|
+
organizationId: t.string,
|
50
|
+
scope: webhookScope_1.WebhookScope,
|
48
51
|
userId: t.string,
|
49
52
|
type: webhookType_1.WebhookType,
|
50
53
|
numConfirmations: t.number,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhook.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAgD;AAChD,2FAAwF;AACxF,6EAA0E;AAC1E,iDAA8C;AAC9C,+CAA4C;
|
1
|
+
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhook.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAgD;AAChD,2FAAwF;AACxF,6EAA0E;AAC1E,iDAA8C;AAC9C,+CAA4C;AAC5C,iDAA8C;AAEjC,QAAA,OAAO,GAAG,CAAC,CAAC,YAAY,CAAC;IACpC,CAAC,CAAC,IAAI,CAAC;QACL,EAAE,EAAE,CAAC,CAAC,MAAM;QACZ,OAAO,EAAE,+BAAiB;QAC1B,IAAI,EAAE,CAAC,CAAC,MAAM;QACd,GAAG,EAAE,CAAC,CAAC,MAAM;QACb,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,KAAK,EAAE,2BAAY;QACnB,wBAAwB,EAAE,CAAC,CAAC,MAAM;QAClC,qBAAqB,EAAE,CAAC,CAAC,OAAO;KACjC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,KAAK,EAAE,CAAC,CAAC,MAAM;QACf,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB,cAAc,EAAE,CAAC,CAAC,MAAM;QACxB,KAAK,EAAE,2BAAY;QACnB,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,IAAI,EAAE,yBAAW;QACjB,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,WAAW,EAAE,+BAAiB;QAC9B,YAAY,EAAE,+BAAiB;QAC/B,QAAQ,EAAE,CAAC,CAAC,OAAO;QACnB,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,iDAAuB,CAAC;QACjD,0BAA0B,EAAE,CAAC,CAAC,KAAK,CAAC,mCAAgB,CAAC;KACtD,CAAC;CACH,CAAC,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare enum WebhookScopeEnum {
|
3
|
+
"wallet" = "wallet",
|
4
|
+
"enterprise" = "enterprise",
|
5
|
+
"organization" = "organization"
|
6
|
+
}
|
7
|
+
export declare const WebhookScope: t.KeyofC<typeof WebhookScopeEnum>;
|
8
|
+
export type WebhookScope = t.TypeOf<typeof WebhookScope>;
|
9
|
+
//# sourceMappingURL=webhookScope.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"webhookScope.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,oBAAY,gBAAgB;IAC1B,QAAQ,WAAW;IACnB,YAAY,eAAe;IAC3B,cAAc,iBAAiB;CAChC;AAED,eAAO,MAAM,YAAY,mCAA4C,CAAC;AACtE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
@@ -0,0 +1,35 @@
|
|
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.WebhookScope = exports.WebhookScopeEnum = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
var WebhookScopeEnum;
|
29
|
+
(function (WebhookScopeEnum) {
|
30
|
+
WebhookScopeEnum["wallet"] = "wallet";
|
31
|
+
WebhookScopeEnum["enterprise"] = "enterprise";
|
32
|
+
WebhookScopeEnum["organization"] = "organization";
|
33
|
+
})(WebhookScopeEnum || (exports.WebhookScopeEnum = WebhookScopeEnum = {}));
|
34
|
+
exports.WebhookScope = t.keyof(WebhookScopeEnum, "WebhookScope");
|
35
|
+
//# sourceMappingURL=webhookScope.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"webhookScope.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookScope.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,qCAAmB,CAAA;IACnB,6CAA2B,CAAA;IAC3B,iDAA+B,CAAA;AACjC,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAEY,QAAA,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC"}
|