@bitgo/public-types 6.11.0 → 6.13.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/transactionRequest/intents/intent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxStakeIntent.js +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +2 -0
- package/dist/src/schema/webhook/webhookType.d.ts +6 -2
- package/dist/src/schema/webhook/webhookType.js +4 -0
- package/dist/src/schema/webhook/webhookType.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/polyxStakeIntent.ts +1 -0
- package/src/schema/webhook/webhookType.ts +12 -0
|
@@ -5746,6 +5746,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
5746
5746
|
intentType: t.LiteralC<"stake">;
|
|
5747
5747
|
}>, t.PartialC<{
|
|
5748
5748
|
addToStake: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
5749
|
+
validators: t.ArrayC<t.StringC>;
|
|
5749
5750
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
5750
5751
|
intentType: t.KeyofC<{
|
|
5751
5752
|
payment: t.LiteralC<"payment">;
|
|
@@ -106,5 +106,6 @@ export declare const PolyxStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
|
106
106
|
intentType: t.LiteralC<"stake">;
|
|
107
107
|
}>, t.PartialC<{
|
|
108
108
|
addToStake: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
109
|
+
validators: t.ArrayC<t.StringC>;
|
|
109
110
|
}>]>;
|
|
110
111
|
export type PolyxStakeIntent = t.TypeOf<typeof PolyxStakeIntent>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polyxStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/polyxStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,0CAAiD;AAKpC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,KAAK;KAC9B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,uBAAe;
|
|
1
|
+
{"version":3,"file":"polyxStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/polyxStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,0CAAiD;AAKpC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,KAAK;KAC9B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,uBAAe;QAC3B,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;KAC9B,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -5844,6 +5844,7 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
5844
5844
|
intentType: t.LiteralC<"stake">;
|
|
5845
5845
|
}>, t.PartialC<{
|
|
5846
5846
|
addToStake: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
5847
|
+
validators: t.ArrayC<t.StringC>;
|
|
5847
5848
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
5848
5849
|
intentType: t.KeyofC<{
|
|
5849
5850
|
payment: t.LiteralC<"payment">;
|
|
@@ -18365,6 +18366,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
18365
18366
|
intentType: t.LiteralC<"stake">;
|
|
18366
18367
|
}>, t.PartialC<{
|
|
18367
18368
|
addToStake: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
18369
|
+
validators: t.ArrayC<t.StringC>;
|
|
18368
18370
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
18369
18371
|
intentType: t.KeyofC<{
|
|
18370
18372
|
payment: t.LiteralC<"payment">;
|
|
@@ -30,7 +30,9 @@ export declare enum WebhookTypeEnum {
|
|
|
30
30
|
"stuckTx" = "stuckTx",
|
|
31
31
|
"tradeOrder" = "tradeOrder",
|
|
32
32
|
"unspentExpiry" = "unspentExpiry",
|
|
33
|
-
"twoStepTransfer" = "twoStepTransfer"
|
|
33
|
+
"twoStepTransfer" = "twoStepTransfer",
|
|
34
|
+
"twoStepDeposit" = "twoStepDeposit",
|
|
35
|
+
"twoStepWithdrawal" = "twoStepWithdrawal"
|
|
34
36
|
}
|
|
35
37
|
export declare const WebhookType: t.KeyofC<typeof WebhookTypeEnum>;
|
|
36
38
|
export type WebhookType = t.TypeOf<typeof WebhookType>;
|
|
@@ -52,7 +54,9 @@ export declare enum WalletWebhookTypeEnum {
|
|
|
52
54
|
"fundsDeposited" = "fundsDeposited",
|
|
53
55
|
"stuckTx" = "stuckTx",
|
|
54
56
|
"unspentExpiry" = "unspentExpiry",
|
|
55
|
-
"twoStepTransfer" = "twoStepTransfer"
|
|
57
|
+
"twoStepTransfer" = "twoStepTransfer",
|
|
58
|
+
"twoStepDeposit" = "twoStepDeposit",
|
|
59
|
+
"twoStepWithdrawal" = "twoStepWithdrawal"
|
|
56
60
|
}
|
|
57
61
|
export declare const WalletWebhookType: t.KeyofC<typeof WalletWebhookTypeEnum>;
|
|
58
62
|
export type WalletWebhookType = t.TypeOf<typeof WalletWebhookType>;
|
|
@@ -58,6 +58,8 @@ var WebhookTypeEnum;
|
|
|
58
58
|
WebhookTypeEnum["tradeOrder"] = "tradeOrder";
|
|
59
59
|
WebhookTypeEnum["unspentExpiry"] = "unspentExpiry";
|
|
60
60
|
WebhookTypeEnum["twoStepTransfer"] = "twoStepTransfer";
|
|
61
|
+
WebhookTypeEnum["twoStepDeposit"] = "twoStepDeposit";
|
|
62
|
+
WebhookTypeEnum["twoStepWithdrawal"] = "twoStepWithdrawal";
|
|
61
63
|
})(WebhookTypeEnum || (exports.WebhookTypeEnum = WebhookTypeEnum = {}));
|
|
62
64
|
exports.WebhookType = t.keyof(WebhookTypeEnum, "WebhookType");
|
|
63
65
|
var WalletWebhookTypeEnum;
|
|
@@ -80,6 +82,8 @@ var WalletWebhookTypeEnum;
|
|
|
80
82
|
WalletWebhookTypeEnum["stuckTx"] = "stuckTx";
|
|
81
83
|
WalletWebhookTypeEnum["unspentExpiry"] = "unspentExpiry";
|
|
82
84
|
WalletWebhookTypeEnum["twoStepTransfer"] = "twoStepTransfer";
|
|
85
|
+
WalletWebhookTypeEnum["twoStepDeposit"] = "twoStepDeposit";
|
|
86
|
+
WalletWebhookTypeEnum["twoStepWithdrawal"] = "twoStepWithdrawal";
|
|
83
87
|
})(WalletWebhookTypeEnum || (exports.WalletWebhookTypeEnum = WalletWebhookTypeEnum = {}));
|
|
84
88
|
exports.WalletWebhookType = t.keyof(WalletWebhookTypeEnum, "WalletWebhookType");
|
|
85
89
|
var EnterpriseWebhookTypeEnum;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookType.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,
|
|
1
|
+
{"version":3,"file":"webhookType.js","sourceRoot":"","sources":["../../../../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AmC,CAAA;IACnC,sEAA+C,CAAA;IAC/C,kFAA2D,CAAA;IAC3D,0DAAmC,CAAA;IACnC,4CAAqB,CAAA;IAGrB,wDAAiC,CAAA;IAGjC,4DAAqC,CAAA;IAGrC,0DAAmC,CAAA;IAGnC,gEAAyC,CAAA;AAC3C,CAAC,EA7BW,qBAAqB,qCAArB,qBAAqB,QA6BhC;AAEY,QAAA,iBAAiB,GAAG,CAAC,CAAC,KAAK,CACtC,qBAAqB,EACrB,mBAAmB,CACpB,CAAC;AAGF,IAAY,yBAKX;AALD,WAAY,yBAAyB;IACnC,wDAA6B,CAAA;IAC7B,wDAA6B,CAAA;IAC7B,wEAA6C,CAAA;IAC7C,kDAAuB,CAAA;AACzB,CAAC,EALW,yBAAyB,yCAAzB,yBAAyB,QAKpC;AACY,QAAA,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAC1C,yBAAyB,EACzB,uBAAuB,CACxB,CAAC;AAGF,IAAY,2BAaX;AAbD,WAAY,2BAA2B;IACrC,oDAAuB,CAAA;IACvB,sDAAyB,CAAA;IACzB,kEAAqC,CAAA;IACrC,4EAA+C,CAAA;IAC/C,0DAA6B,CAAA;IAC7B,gEAAmC,CAAA;IACnC,sDAAyB,CAAA;IACzB,4DAA+B,CAAA;IAC/B,wEAA2C,CAAA;IAC3C,0DAA6B,CAAA;IAC7B,oDAAuB,CAAA;IACvB,wDAA2B,CAAA;AAC7B,CAAC,EAbW,2BAA2B,2CAA3B,2BAA2B,QAatC;AACY,QAAA,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC5C,2BAA2B,EAC3B,yBAAyB,CAC1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -52,6 +52,12 @@ export enum WebhookTypeEnum {
|
|
|
52
52
|
|
|
53
53
|
/** Canton two-step transfer flows (deposit/withdrawal offers, etc.). */
|
|
54
54
|
"twoStepTransfer" = "twoStepTransfer",
|
|
55
|
+
|
|
56
|
+
/** Canton two-step deposit offer flows (expiring/expired deposit offers). */
|
|
57
|
+
"twoStepDeposit" = "twoStepDeposit",
|
|
58
|
+
|
|
59
|
+
/** Canton two-step withdrawal offer flows (expiring/expired withdrawal offers). */
|
|
60
|
+
"twoStepWithdrawal" = "twoStepWithdrawal",
|
|
55
61
|
}
|
|
56
62
|
|
|
57
63
|
export const WebhookType = t.keyof(WebhookTypeEnum, "WebhookType");
|
|
@@ -80,6 +86,12 @@ export enum WalletWebhookTypeEnum {
|
|
|
80
86
|
|
|
81
87
|
/** Canton two-step transfer flows. */
|
|
82
88
|
"twoStepTransfer" = "twoStepTransfer",
|
|
89
|
+
|
|
90
|
+
/** Canton two-step deposit offer flows. */
|
|
91
|
+
"twoStepDeposit" = "twoStepDeposit",
|
|
92
|
+
|
|
93
|
+
/** Canton two-step withdrawal offer flows. */
|
|
94
|
+
"twoStepWithdrawal" = "twoStepWithdrawal",
|
|
83
95
|
}
|
|
84
96
|
|
|
85
97
|
export const WalletWebhookType = t.keyof(
|