@bitgo/public-types 1.2.1 → 1.3.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/index.d.ts +1 -0
- package/dist/src/schema/index.d.ts.map +1 -1
- package/dist/src/schema/index.js +1 -0
- package/dist/src/schema/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/transactionRequestState.d.ts +18 -0
- package/dist/src/schema/transactionRequest/transactionRequestState.d.ts.map +1 -0
- package/dist/src/schema/transactionRequest/transactionRequestState.js +43 -0
- package/dist/src/schema/transactionRequest/transactionRequestState.js.map +1 -0
- package/dist/src/schema/transactionRequest/transactionState.d.ts +16 -0
- package/dist/src/schema/transactionRequest/transactionState.d.ts.map +1 -0
- package/dist/src/schema/transactionRequest/transactionState.js +41 -0
- package/dist/src/schema/transactionRequest/transactionState.js.map +1 -0
- package/dist/src/schema/transactions/sendTransactions.d.ts +5 -5
- package/dist/src/schema/transactions/sendTransactions.d.ts.map +1 -1
- package/dist/src/schema/webhook/addWalletWebhookRequest.d.ts +23 -0
- package/dist/src/schema/webhook/addWalletWebhookRequest.d.ts.map +1 -0
- package/dist/src/schema/webhook/addWalletWebhookRequest.js +46 -0
- package/dist/src/schema/webhook/addWalletWebhookRequest.js.map +1 -0
- package/dist/src/schema/webhook/index.d.ts +5 -0
- package/dist/src/schema/webhook/index.d.ts.map +1 -0
- package/dist/src/schema/webhook/index.js +21 -0
- package/dist/src/schema/webhook/index.js.map +1 -0
- package/dist/src/schema/webhook/webhook.d.ts +49 -0
- package/dist/src/schema/webhook/webhook.d.ts.map +1 -0
- package/dist/src/schema/webhook/webhook.js +57 -0
- package/dist/src/schema/webhook/webhook.js.map +1 -0
- package/dist/src/schema/webhook/webhookState.d.ts +8 -0
- package/dist/src/schema/webhook/webhookState.d.ts.map +1 -0
- package/dist/src/schema/webhook/webhookState.js +34 -0
- package/dist/src/schema/webhook/webhookState.js.map +1 -0
- package/dist/src/schema/webhook/webhookType.d.ts +33 -0
- package/dist/src/schema/webhook/webhookType.d.ts.map +1 -0
- package/dist/src/schema/webhook/webhookType.js +59 -0
- package/dist/src/schema/webhook/webhookType.js.map +1 -0
- package/package.json +9 -7
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAA"}
|
package/dist/src/schema/index.js
CHANGED
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./transactions"), exports);
|
18
|
+
__exportStar(require("./webhook"), exports);
|
18
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,4CAAyB"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export declare const TransactionRequestState: t.KeyofC<{
|
3
|
+
pendingApproval: number;
|
4
|
+
canceled: number;
|
5
|
+
rejected: number;
|
6
|
+
initialized: number;
|
7
|
+
pendingDelivery: number;
|
8
|
+
delivered: number;
|
9
|
+
pendingUserSignature: number;
|
10
|
+
pendingUserCommitment: number;
|
11
|
+
pendingUserRShare: number;
|
12
|
+
pendingUserGShare: number;
|
13
|
+
readyToSend: number;
|
14
|
+
signed: number;
|
15
|
+
failed: number;
|
16
|
+
}>;
|
17
|
+
export type TransactionRequestState = t.TypeOf<typeof TransactionRequestState>;
|
18
|
+
//# sourceMappingURL=transactionRequestState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"transactionRequestState.d.ts","sourceRoot":"","sources":["../../../../src/schema/transactionRequest/transactionRequestState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;EAiBnC,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
@@ -0,0 +1,43 @@
|
|
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.TransactionRequestState = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
exports.TransactionRequestState = t.keyof({
|
29
|
+
pendingApproval: 1,
|
30
|
+
canceled: 1,
|
31
|
+
rejected: 1,
|
32
|
+
initialized: 1,
|
33
|
+
pendingDelivery: 1,
|
34
|
+
delivered: 1,
|
35
|
+
pendingUserSignature: 1,
|
36
|
+
pendingUserCommitment: 1,
|
37
|
+
pendingUserRShare: 1,
|
38
|
+
pendingUserGShare: 1,
|
39
|
+
readyToSend: 1,
|
40
|
+
signed: 1,
|
41
|
+
failed: 1,
|
42
|
+
}, 'TransactionRequestState');
|
43
|
+
//# sourceMappingURL=transactionRequestState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"transactionRequestState.js","sourceRoot":"","sources":["../../../../src/schema/transactionRequest/transactionRequestState.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAEd,QAAA,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC5C;IACE,eAAe,EAAE,CAAC;IAClB,QAAQ,EAAE,CAAC;IACX,QAAQ,EAAE,CAAC;IACX,WAAW,EAAE,CAAC;IACd,eAAe,EAAE,CAAC;IAClB,SAAS,EAAE,CAAC;IACZ,oBAAoB,EAAE,CAAC;IACvB,qBAAqB,EAAE,CAAC;IACxB,iBAAiB,EAAE,CAAC;IACpB,iBAAiB,EAAE,CAAC;IACpB,WAAW,EAAE,CAAC;IACd,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;CACV,EACD,yBAAyB,CAC1B,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export declare const TransactionState: t.KeyofC<{
|
3
|
+
initialized: number;
|
4
|
+
pendingSignature: number;
|
5
|
+
eddsaPendingCommitment: number;
|
6
|
+
eddsaPendingRShare: number;
|
7
|
+
eddsaPendingGShare: number;
|
8
|
+
readyToCombineShares: number;
|
9
|
+
signed: number;
|
10
|
+
held: number;
|
11
|
+
delivered: number;
|
12
|
+
invalidSignature: number;
|
13
|
+
rejected: number;
|
14
|
+
}>;
|
15
|
+
export type TransactionState = t.TypeOf<typeof TransactionState>;
|
16
|
+
//# sourceMappingURL=transactionState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"transactionState.d.ts","sourceRoot":"","sources":["../../../../src/schema/transactionRequest/transactionState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAe5B,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
@@ -0,0 +1,41 @@
|
|
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.TransactionState = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
exports.TransactionState = t.keyof({
|
29
|
+
initialized: 1,
|
30
|
+
pendingSignature: 1,
|
31
|
+
eddsaPendingCommitment: 1,
|
32
|
+
eddsaPendingRShare: 1,
|
33
|
+
eddsaPendingGShare: 1,
|
34
|
+
readyToCombineShares: 1,
|
35
|
+
signed: 1,
|
36
|
+
held: 1,
|
37
|
+
delivered: 1,
|
38
|
+
invalidSignature: 1,
|
39
|
+
rejected: 1,
|
40
|
+
}, 'TransactionState');
|
41
|
+
//# sourceMappingURL=transactionState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"transactionState.js","sourceRoot":"","sources":["../../../../src/schema/transactionRequest/transactionState.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAEd,QAAA,gBAAgB,GAAG,CAAC,CAAC,KAAK,CACrC;IACE,WAAW,EAAE,CAAC;IACd,gBAAgB,EAAE,CAAC;IACnB,sBAAsB,EAAE,CAAC;IACzB,kBAAkB,EAAE,CAAC;IACrB,kBAAkB,EAAE,CAAC;IACrB,oBAAoB,EAAE,CAAC;IACvB,MAAM,EAAE,CAAC;IACT,IAAI,EAAE,CAAC;IACP,SAAS,EAAE,CAAC;IACZ,gBAAgB,EAAE,CAAC;IACnB,QAAQ,EAAE,CAAC;CACZ,EACD,kBAAkB,CACnB,CAAC"}
|
@@ -7,7 +7,7 @@ declare const recipient: t.PartialC<{
|
|
7
7
|
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
8
8
|
tokenName: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
9
9
|
}>;
|
10
|
-
export
|
10
|
+
export type TransactionRecipient = t.TypeOf<typeof recipient>;
|
11
11
|
declare const lightningPaymentRequest: t.IntersectionC<[t.TypeC<{
|
12
12
|
invoice: t.StringC;
|
13
13
|
}>, t.PartialC<{
|
@@ -16,7 +16,7 @@ declare const lightningPaymentRequest: t.IntersectionC<[t.TypeC<{
|
|
16
16
|
feeLimit: t.NumberC;
|
17
17
|
feeLimitRatio: t.NumberC;
|
18
18
|
}>]>;
|
19
|
-
export
|
19
|
+
export type LightningPaymentRequest = t.TypeOf<typeof lightningPaymentRequest>;
|
20
20
|
declare const halfSigned: t.PartialC<{
|
21
21
|
txHex: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
22
22
|
recipients: t.UnionC<[t.Type<{
|
@@ -64,7 +64,7 @@ declare const halfSigned: t.PartialC<{
|
|
64
64
|
feeLimitRatio?: number | undefined;
|
65
65
|
}, unknown>, t.UndefinedC]>;
|
66
66
|
}>;
|
67
|
-
export
|
67
|
+
export type HalfSignedTransaction = t.TypeOf<typeof halfSigned>;
|
68
68
|
export declare const memo: t.PartialC<{
|
69
69
|
type: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
70
70
|
value: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
@@ -478,7 +478,7 @@ export declare const TxSendBody: t.ExactC<t.IntersectionC<[t.PartialC<{
|
|
478
478
|
}>, t.PartialC<{
|
479
479
|
tokenName: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
480
480
|
}>]>>;
|
481
|
-
export
|
481
|
+
export type TxSendBody = t.TypeOf<typeof TxSendBody>;
|
482
482
|
export declare const TxSendResponse: t.PartialC<{
|
483
483
|
baseValue: t.NumberC;
|
484
484
|
baseValueString: t.StringC;
|
@@ -527,6 +527,6 @@ export declare const TxSendResponse: t.PartialC<{
|
|
527
527
|
wallet: t.StringC;
|
528
528
|
walletType: t.StringC;
|
529
529
|
}>;
|
530
|
-
export
|
530
|
+
export type TxSendResponse = t.TypeOf<typeof TxSendResponse>;
|
531
531
|
export {};
|
532
532
|
//# sourceMappingURL=sendTransactions.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sendTransactions.d.ts","sourceRoot":"","sources":["../../../../src/schema/transactions/sendTransactions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAW3B,QAAA,MAAM,SAAS;;;;;;;EAOb,CAAC;AACH,
|
1
|
+
{"version":3,"file":"sendTransactions.d.ts","sourceRoot":"","sources":["../../../../src/schema/transactions/sendTransactions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAW3B,QAAA,MAAM,SAAS;;;;;;;EAOb,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,SAAS,CAAC,CAAC;AAQ9D,QAAA,MAAM,uBAAuB;;;;;;;IAU3B,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE/E,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYd,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AAEhE,eAAO,MAAM,IAAI;;;EAGf,CAAC;AAoBH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqGtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAOtB,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AAgBrD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export declare const AddWalletWebhookRequestBody: {
|
3
|
+
type: t.KeyofC<typeof import("./webhookType").WalletWebhookTypeEnum>;
|
4
|
+
url: import("io-ts-types").NonEmptyStringC;
|
5
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
6
|
+
numConfirmations: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC, t.UndefinedC]>;
|
7
|
+
allToken: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
8
|
+
listenToFailureStates: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
9
|
+
txRequestStates: t.UnionC<[t.Type<("pendingApproval" | "canceled" | "rejected" | "initialized" | "pendingDelivery" | "delivered" | "pendingUserSignature" | "pendingUserCommitment" | "pendingUserRShare" | "pendingUserGShare" | "readyToSend" | "signed" | "failed")[], ("pendingApproval" | "canceled" | "rejected" | "initialized" | "pendingDelivery" | "delivered" | "pendingUserSignature" | "pendingUserCommitment" | "pendingUserRShare" | "pendingUserGShare" | "readyToSend" | "signed" | "failed")[], unknown>, t.UndefinedC]>;
|
10
|
+
txRequestTransactionStates: t.UnionC<[t.Type<("rejected" | "initialized" | "delivered" | "signed" | "pendingSignature" | "eddsaPendingCommitment" | "eddsaPendingRShare" | "eddsaPendingGShare" | "readyToCombineShares" | "held" | "invalidSignature")[], ("rejected" | "initialized" | "delivered" | "signed" | "pendingSignature" | "eddsaPendingCommitment" | "eddsaPendingRShare" | "eddsaPendingGShare" | "readyToCombineShares" | "held" | "invalidSignature")[], unknown>, t.UndefinedC]>;
|
11
|
+
};
|
12
|
+
export declare const AddWalletWebhookRequestBodyC: t.TypeC<{
|
13
|
+
type: t.KeyofC<typeof import("./webhookType").WalletWebhookTypeEnum>;
|
14
|
+
url: import("io-ts-types").NonEmptyStringC;
|
15
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
16
|
+
numConfirmations: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC, t.UndefinedC]>;
|
17
|
+
allToken: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
18
|
+
listenToFailureStates: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
19
|
+
txRequestStates: t.UnionC<[t.Type<("pendingApproval" | "canceled" | "rejected" | "initialized" | "pendingDelivery" | "delivered" | "pendingUserSignature" | "pendingUserCommitment" | "pendingUserRShare" | "pendingUserGShare" | "readyToSend" | "signed" | "failed")[], ("pendingApproval" | "canceled" | "rejected" | "initialized" | "pendingDelivery" | "delivered" | "pendingUserSignature" | "pendingUserCommitment" | "pendingUserRShare" | "pendingUserGShare" | "readyToSend" | "signed" | "failed")[], unknown>, t.UndefinedC]>;
|
20
|
+
txRequestTransactionStates: t.UnionC<[t.Type<("rejected" | "initialized" | "delivered" | "signed" | "pendingSignature" | "eddsaPendingCommitment" | "eddsaPendingRShare" | "eddsaPendingGShare" | "readyToCombineShares" | "held" | "invalidSignature")[], ("rejected" | "initialized" | "delivered" | "signed" | "pendingSignature" | "eddsaPendingCommitment" | "eddsaPendingRShare" | "eddsaPendingGShare" | "readyToCombineShares" | "held" | "invalidSignature")[], unknown>, t.UndefinedC]>;
|
21
|
+
}>;
|
22
|
+
export type AddWalletWebhookRequestBody = t.TypeOf<typeof AddWalletWebhookRequestBodyC>;
|
23
|
+
//# sourceMappingURL=addWalletWebhookRequest.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"addWalletWebhookRequest.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/addWalletWebhookRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAO3B,eAAO,MAAM,2BAA2B;;;;;;;;;CASvC,CAAC;AACF,eAAO,MAAM,4BAA4B;;;;;;;;;EAEvC,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
@@ -0,0 +1,46 @@
|
|
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.AddWalletWebhookRequestBodyC = exports.AddWalletWebhookRequestBody = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const io_ts_types_1 = require("io-ts-types");
|
29
|
+
const optional_1 = require("../../utils/optional");
|
30
|
+
const transactionRequestState_1 = require("../transactionRequest/transactionRequestState");
|
31
|
+
const transactionState_1 = require("../transactionRequest/transactionState");
|
32
|
+
const webhookType_1 = require("./webhookType");
|
33
|
+
exports.AddWalletWebhookRequestBody = {
|
34
|
+
type: webhookType_1.WalletWebhookType,
|
35
|
+
url: io_ts_types_1.NonEmptyString,
|
36
|
+
label: (0, optional_1.Optional)(t.string),
|
37
|
+
numConfirmations: t.union([t.number, io_ts_types_1.NumberFromString, t.undefined]),
|
38
|
+
allToken: (0, optional_1.Optional)(t.boolean),
|
39
|
+
listenToFailureStates: (0, optional_1.Optional)(t.boolean),
|
40
|
+
txRequestStates: (0, optional_1.Optional)(t.array(transactionRequestState_1.TransactionRequestState)),
|
41
|
+
txRequestTransactionStates: (0, optional_1.Optional)(t.array(transactionState_1.TransactionState)),
|
42
|
+
};
|
43
|
+
exports.AddWalletWebhookRequestBodyC = t.type({
|
44
|
+
...exports.AddWalletWebhookRequestBody,
|
45
|
+
});
|
46
|
+
//# sourceMappingURL=addWalletWebhookRequest.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"addWalletWebhookRequest.js","sourceRoot":"","sources":["../../../../src/schema/webhook/addWalletWebhookRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA+D;AAC/D,mDAAgD;AAChD,2FAAwF;AACxF,6EAA0E;AAC1E,+CAAkD;AAErC,QAAA,2BAA2B,GAAG;IACzC,IAAI,EAAE,+BAAiB;IACvB,GAAG,EAAE,4BAAc;IACnB,KAAK,EAAE,IAAA,mBAAQ,EAAC,CAAC,CAAC,MAAM,CAAC;IACzB,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,8BAAgB,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC;IACpE,QAAQ,EAAE,IAAA,mBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC;IAC7B,qBAAqB,EAAE,IAAA,mBAAQ,EAAC,CAAC,CAAC,OAAO,CAAC;IAC1C,eAAe,EAAE,IAAA,mBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,iDAAuB,CAAC,CAAC;IAC3D,0BAA0B,EAAE,IAAA,mBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,mCAAgB,CAAC,CAAC;CAChE,CAAC;AACW,QAAA,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IACjD,GAAG,mCAA2B;CAC/B,CAAC,CAAC"}
|
@@ -0,0 +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"}
|
@@ -0,0 +1,21 @@
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./addWalletWebhookRequest"), exports);
|
18
|
+
__exportStar(require("./webhook"), exports);
|
19
|
+
__exportStar(require("./webhookState"), exports);
|
20
|
+
__exportStar(require("./webhookType"), exports);
|
21
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +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"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export declare const Webhook: t.IntersectionC<[t.TypeC<{
|
3
|
+
id: t.StringC;
|
4
|
+
created: import("io-ts-types").DateFromISOStringC;
|
5
|
+
coin: t.StringC;
|
6
|
+
url: t.StringC;
|
7
|
+
version: t.NumberC;
|
8
|
+
state: t.KeyofC<typeof import("./webhookState").WebhookStateEnum>;
|
9
|
+
successiveFailedAttempts: t.NumberC;
|
10
|
+
listenToFailureStates: t.BooleanC;
|
11
|
+
}>, t.PartialC<{
|
12
|
+
label: t.StringC;
|
13
|
+
walletId: t.StringC;
|
14
|
+
userId: t.StringC;
|
15
|
+
type: t.KeyofC<typeof import("./webhookType").WebhookTypeEnum>;
|
16
|
+
numConfirmations: t.NumberC;
|
17
|
+
lastAttempt: import("io-ts-types").DateFromISOStringC;
|
18
|
+
failingSince: import("io-ts-types").DateFromISOStringC;
|
19
|
+
allToken: t.BooleanC;
|
20
|
+
txRequestStates: t.ArrayC<t.KeyofC<{
|
21
|
+
pendingApproval: number;
|
22
|
+
canceled: number;
|
23
|
+
rejected: number;
|
24
|
+
initialized: number;
|
25
|
+
pendingDelivery: number;
|
26
|
+
delivered: number;
|
27
|
+
pendingUserSignature: number;
|
28
|
+
pendingUserCommitment: number;
|
29
|
+
pendingUserRShare: number;
|
30
|
+
pendingUserGShare: number;
|
31
|
+
readyToSend: number;
|
32
|
+
signed: number;
|
33
|
+
failed: number;
|
34
|
+
}>>;
|
35
|
+
txRequestTransactionStates: t.ArrayC<t.KeyofC<{
|
36
|
+
initialized: number;
|
37
|
+
pendingSignature: number;
|
38
|
+
eddsaPendingCommitment: number;
|
39
|
+
eddsaPendingRShare: number;
|
40
|
+
eddsaPendingGShare: number;
|
41
|
+
readyToCombineShares: number;
|
42
|
+
signed: number;
|
43
|
+
held: number;
|
44
|
+
delivered: number;
|
45
|
+
invalidSignature: number;
|
46
|
+
rejected: number;
|
47
|
+
}>>;
|
48
|
+
}>]>;
|
49
|
+
//# sourceMappingURL=webhook.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/webhook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAO3B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuBlB,CAAC"}
|
@@ -0,0 +1,57 @@
|
|
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.Webhook = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const io_ts_types_1 = require("io-ts-types");
|
29
|
+
const transactionRequestState_1 = require("../transactionRequest/transactionRequestState");
|
30
|
+
const transactionState_1 = require("../transactionRequest/transactionState");
|
31
|
+
const webhookState_1 = require("./webhookState");
|
32
|
+
const webhookType_1 = require("./webhookType");
|
33
|
+
exports.Webhook = t.intersection([
|
34
|
+
t.type({
|
35
|
+
id: t.string,
|
36
|
+
created: io_ts_types_1.DateFromISOString,
|
37
|
+
coin: t.string,
|
38
|
+
url: t.string,
|
39
|
+
version: t.number,
|
40
|
+
state: webhookState_1.WebhookState,
|
41
|
+
successiveFailedAttempts: t.number,
|
42
|
+
listenToFailureStates: t.boolean,
|
43
|
+
}),
|
44
|
+
t.partial({
|
45
|
+
label: t.string,
|
46
|
+
walletId: t.string,
|
47
|
+
userId: t.string,
|
48
|
+
type: webhookType_1.WebhookType,
|
49
|
+
numConfirmations: t.number,
|
50
|
+
lastAttempt: io_ts_types_1.DateFromISOString,
|
51
|
+
failingSince: io_ts_types_1.DateFromISOString,
|
52
|
+
allToken: t.boolean,
|
53
|
+
txRequestStates: t.array(transactionRequestState_1.TransactionRequestState),
|
54
|
+
txRequestTransactionStates: t.array(transactionState_1.TransactionState),
|
55
|
+
}),
|
56
|
+
]);
|
57
|
+
//# sourceMappingURL=webhook.js.map
|
@@ -0,0 +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;AAE/B,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,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,8 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export declare enum WebhookStateEnum {
|
3
|
+
'active' = "active",
|
4
|
+
'suspended' = "suspended"
|
5
|
+
}
|
6
|
+
export declare const WebhookState: t.KeyofC<typeof WebhookStateEnum>;
|
7
|
+
export type WebhookState = t.TypeOf<typeof WebhookState>;
|
8
|
+
//# sourceMappingURL=webhookState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"webhookState.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,oBAAY,gBAAgB;IAC1B,QAAQ,WAAW;IACnB,WAAW,cAAc;CAC1B;AAED,eAAO,MAAM,YAAY,mCAA4C,CAAC;AACtE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
@@ -0,0 +1,34 @@
|
|
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.WebhookState = exports.WebhookStateEnum = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
var WebhookStateEnum;
|
29
|
+
(function (WebhookStateEnum) {
|
30
|
+
WebhookStateEnum["active"] = "active";
|
31
|
+
WebhookStateEnum["suspended"] = "suspended";
|
32
|
+
})(WebhookStateEnum || (exports.WebhookStateEnum = WebhookStateEnum = {}));
|
33
|
+
exports.WebhookState = t.keyof(WebhookStateEnum, 'WebhookState');
|
34
|
+
//# sourceMappingURL=webhookState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"webhookState.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookState.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,qCAAmB,CAAA;IACnB,2CAAyB,CAAA;AAC3B,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAEY,QAAA,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC"}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export declare enum WebhookTypeEnum {
|
3
|
+
'txRequest' = "txRequest",
|
4
|
+
'txRequestTransaction' = "txRequestTransaction",
|
5
|
+
'transfer' = "transfer",
|
6
|
+
'transaction' = "transaction",
|
7
|
+
'transactionRemoved' = "transactionRemoved",
|
8
|
+
'transactionExpire' = "transactionExpire",
|
9
|
+
'pendingapproval' = "pendingapproval",
|
10
|
+
'block' = "block",
|
11
|
+
'admin' = "admin",
|
12
|
+
'address_confirmation' = "address_confirmation",
|
13
|
+
'lowFee' = "lowFee",
|
14
|
+
'wallet_confirmation' = "wallet_confirmation"
|
15
|
+
}
|
16
|
+
export declare const WebhookType: t.KeyofC<typeof WebhookTypeEnum>;
|
17
|
+
export type WebhookType = t.TypeOf<typeof WebhookType>;
|
18
|
+
export declare enum WalletWebhookTypeEnum {
|
19
|
+
'txRequest' = "txRequest",
|
20
|
+
'txRequestTransaction' = "txRequestTransaction",
|
21
|
+
'transfer' = "transfer",
|
22
|
+
'transaction' = "transaction",
|
23
|
+
'transactionRemoved' = "transactionRemoved",
|
24
|
+
'transactionExpire' = "transactionExpire",
|
25
|
+
'pendingapproval' = "pendingapproval",
|
26
|
+
'block' = "block",
|
27
|
+
'admin' = "admin",
|
28
|
+
'address_confirmation' = "address_confirmation",
|
29
|
+
'lowFee' = "lowFee"
|
30
|
+
}
|
31
|
+
export declare const WalletWebhookType: t.KeyofC<typeof WalletWebhookTypeEnum>;
|
32
|
+
export type WalletWebhookType = t.TypeOf<typeof WalletWebhookType>;
|
33
|
+
//# sourceMappingURL=webhookType.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"webhookType.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,oBAAY,eAAe;IAEzB,WAAW,cAAc;IAEzB,sBAAsB,yBAAyB;IAC/C,UAAU,aAAa;IACvB,aAAa,gBAAgB;IAC7B,oBAAoB,uBAAuB;IAC3C,mBAAmB,sBAAsB;IACzC,iBAAiB,oBAAoB;IACrC,OAAO,UAAU;IACjB,OAAO,UAAU;IACjB,sBAAsB,yBAAyB;IAC/C,QAAQ,WAAW;IAGnB,qBAAqB,wBAAwB;CAC9C;AAED,eAAO,MAAM,WAAW,kCAA0C,CAAC;AACnE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;AAEvD,oBAAY,qBAAqB;IAC/B,WAAW,cAAc;IACzB,sBAAsB,yBAAyB;IAC/C,UAAU,aAAa;IACvB,aAAa,gBAAgB;IAC7B,oBAAoB,uBAAuB;IAC3C,mBAAmB,sBAAsB;IACzC,iBAAiB,oBAAoB;IACrC,OAAO,UAAU;IACjB,OAAO,UAAU;IACjB,sBAAsB,yBAAyB;IAC/C,QAAQ,WAAW;CACpB;AAED,eAAO,MAAM,iBAAiB,wCAAsD,CAAC;AACrF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,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.WalletWebhookType = exports.WalletWebhookTypeEnum = exports.WebhookType = exports.WebhookTypeEnum = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
var WebhookTypeEnum;
|
29
|
+
(function (WebhookTypeEnum) {
|
30
|
+
WebhookTypeEnum["txRequest"] = "txRequest";
|
31
|
+
WebhookTypeEnum["txRequestTransaction"] = "txRequestTransaction";
|
32
|
+
WebhookTypeEnum["transfer"] = "transfer";
|
33
|
+
WebhookTypeEnum["transaction"] = "transaction";
|
34
|
+
WebhookTypeEnum["transactionRemoved"] = "transactionRemoved";
|
35
|
+
WebhookTypeEnum["transactionExpire"] = "transactionExpire";
|
36
|
+
WebhookTypeEnum["pendingapproval"] = "pendingapproval";
|
37
|
+
WebhookTypeEnum["block"] = "block";
|
38
|
+
WebhookTypeEnum["admin"] = "admin";
|
39
|
+
WebhookTypeEnum["address_confirmation"] = "address_confirmation";
|
40
|
+
WebhookTypeEnum["lowFee"] = "lowFee";
|
41
|
+
WebhookTypeEnum["wallet_confirmation"] = "wallet_confirmation";
|
42
|
+
})(WebhookTypeEnum || (exports.WebhookTypeEnum = WebhookTypeEnum = {}));
|
43
|
+
exports.WebhookType = t.keyof(WebhookTypeEnum, 'WebhookType');
|
44
|
+
var WalletWebhookTypeEnum;
|
45
|
+
(function (WalletWebhookTypeEnum) {
|
46
|
+
WalletWebhookTypeEnum["txRequest"] = "txRequest";
|
47
|
+
WalletWebhookTypeEnum["txRequestTransaction"] = "txRequestTransaction";
|
48
|
+
WalletWebhookTypeEnum["transfer"] = "transfer";
|
49
|
+
WalletWebhookTypeEnum["transaction"] = "transaction";
|
50
|
+
WalletWebhookTypeEnum["transactionRemoved"] = "transactionRemoved";
|
51
|
+
WalletWebhookTypeEnum["transactionExpire"] = "transactionExpire";
|
52
|
+
WalletWebhookTypeEnum["pendingapproval"] = "pendingapproval";
|
53
|
+
WalletWebhookTypeEnum["block"] = "block";
|
54
|
+
WalletWebhookTypeEnum["admin"] = "admin";
|
55
|
+
WalletWebhookTypeEnum["address_confirmation"] = "address_confirmation";
|
56
|
+
WalletWebhookTypeEnum["lowFee"] = "lowFee";
|
57
|
+
})(WalletWebhookTypeEnum || (exports.WalletWebhookTypeEnum = WalletWebhookTypeEnum = {}));
|
58
|
+
exports.WalletWebhookType = t.keyof(WalletWebhookTypeEnum, 'WalletWebhookType');
|
59
|
+
//# sourceMappingURL=webhookType.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"webhookType.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,eAiBX;AAjBD,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;AAC/C,CAAC,EAjBW,eAAe,+BAAf,eAAe,QAiB1B;AAEY,QAAA,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAGnE,IAAY,qBAYX;AAZD,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;AACrB,CAAC,EAZW,qBAAqB,qCAArB,qBAAqB,QAYhC;AAEY,QAAA,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,qBAAqB,EAAE,mBAAmB,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@bitgo/public-types",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.3.0",
|
4
4
|
"description": "Collection of types exposed externally as part of the BitGo public API",
|
5
5
|
"license": "UNLICENSED",
|
6
6
|
"author": "",
|
@@ -19,14 +19,16 @@
|
|
19
19
|
"test": "vitest --coverage --run --dir test"
|
20
20
|
},
|
21
21
|
"dependencies": {
|
22
|
-
"io-ts": "
|
22
|
+
"@api-ts/io-ts-http": "1.0.0",
|
23
|
+
"io-ts": "^2.2.20",
|
24
|
+
"io-ts-types": "0.5.16"
|
23
25
|
},
|
24
26
|
"devDependencies": {
|
25
|
-
"@types/node": "20.
|
26
|
-
"@vitest/coverage-v8": "
|
27
|
-
"vitest": "
|
28
|
-
"typescript": "
|
27
|
+
"@types/node": "20.11.2",
|
28
|
+
"@vitest/coverage-v8": "1.2.0",
|
29
|
+
"vitest": "1.2.0",
|
30
|
+
"typescript": "5.3",
|
29
31
|
"@semantic-release/git": "10.0.1",
|
30
|
-
"semantic-release": "
|
32
|
+
"semantic-release": "23.0.0"
|
31
33
|
}
|
32
34
|
}
|