@bitgo/public-types 6.50.0 → 6.52.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/webhook/enterpriseWebhooks.d.ts +2 -2
- package/dist/src/schema/webhook/webhookType.d.ts +5 -1
- 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/webhook/webhookType.ts +10 -0
|
@@ -11,12 +11,12 @@ export declare const AddEnterpriseWebhookRequestBodyC: t.TypeC<{
|
|
|
11
11
|
}>;
|
|
12
12
|
export type AddEnterpriseWebhookRequestBody = t.TypeOf<typeof AddEnterpriseWebhookRequestBodyC>;
|
|
13
13
|
export declare const ListEnterpriseWebhooksRequestBody: {
|
|
14
|
-
type: t.UnionC<[t.Type<"bankAccount" | "accessToken" | "policyBalanceChange" | "reversal", "bankAccount" | "accessToken" | "policyBalanceChange" | "reversal", unknown>, t.UndefinedC]>;
|
|
14
|
+
type: t.UnionC<[t.Type<"bankAccount" | "accessToken" | "policyBalanceChange" | "reversal" | "mintOrder", "bankAccount" | "accessToken" | "policyBalanceChange" | "reversal" | "mintOrder", unknown>, t.UndefinedC]>;
|
|
15
15
|
limit: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
16
16
|
prevId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
17
17
|
};
|
|
18
18
|
export declare const ListEnterpriseWebhooksRequestBodyC: t.TypeC<{
|
|
19
|
-
type: t.UnionC<[t.Type<"bankAccount" | "accessToken" | "policyBalanceChange" | "reversal", "bankAccount" | "accessToken" | "policyBalanceChange" | "reversal", unknown>, t.UndefinedC]>;
|
|
19
|
+
type: t.UnionC<[t.Type<"bankAccount" | "accessToken" | "policyBalanceChange" | "reversal" | "mintOrder", "bankAccount" | "accessToken" | "policyBalanceChange" | "reversal" | "mintOrder", unknown>, t.UndefinedC]>;
|
|
20
20
|
limit: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
21
21
|
prevId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
22
22
|
}>;
|
|
@@ -26,6 +26,7 @@ export declare enum WebhookTypeEnum {
|
|
|
26
26
|
"kycResult" = "kycResult",
|
|
27
27
|
"policyBalanceChange" = "policyBalanceChange",
|
|
28
28
|
"reversal" = "reversal",
|
|
29
|
+
"mintOrder" = "mintOrder",
|
|
29
30
|
"transaction_finality_on_l1" = "transaction_finality_on_l1",
|
|
30
31
|
"stuckTx" = "stuckTx",
|
|
31
32
|
"tradeOrder" = "tradeOrder",
|
|
@@ -33,6 +34,7 @@ export declare enum WebhookTypeEnum {
|
|
|
33
34
|
"twoStepTransfer" = "twoStepTransfer",
|
|
34
35
|
"twoStepDeposit" = "twoStepDeposit",
|
|
35
36
|
"twoStepWithdrawal" = "twoStepWithdrawal",
|
|
37
|
+
"endInvestorOnboardingInvite" = "endInvestorOnboardingInvite",
|
|
36
38
|
"pendingDecryption" = "pendingDecryption",
|
|
37
39
|
"whitelistApproved" = "whitelistApproved",
|
|
38
40
|
"whitelistRejected" = "whitelistRejected"
|
|
@@ -60,6 +62,7 @@ export declare enum WalletWebhookTypeEnum {
|
|
|
60
62
|
"twoStepTransfer" = "twoStepTransfer",
|
|
61
63
|
"twoStepDeposit" = "twoStepDeposit",
|
|
62
64
|
"twoStepWithdrawal" = "twoStepWithdrawal",
|
|
65
|
+
"endInvestorOnboardingInvite" = "endInvestorOnboardingInvite",
|
|
63
66
|
"pendingDecryption" = "pendingDecryption"
|
|
64
67
|
}
|
|
65
68
|
export declare const WalletWebhookType: t.KeyofC<typeof WalletWebhookTypeEnum>;
|
|
@@ -68,7 +71,8 @@ export declare enum EnterpriseWebhookTypeEnum {
|
|
|
68
71
|
"bankAccount" = "bankAccount",
|
|
69
72
|
"accessToken" = "accessToken",
|
|
70
73
|
"policyBalanceChange" = "policyBalanceChange",
|
|
71
|
-
"reversal" = "reversal"
|
|
74
|
+
"reversal" = "reversal",
|
|
75
|
+
"mintOrder" = "mintOrder"
|
|
72
76
|
}
|
|
73
77
|
export declare const EnterpriseWebhookType: t.KeyofC<typeof EnterpriseWebhookTypeEnum>;
|
|
74
78
|
export type EnterpriseWebhookType = t.TypeOf<typeof EnterpriseWebhookType>;
|
|
@@ -53,6 +53,7 @@ var WebhookTypeEnum;
|
|
|
53
53
|
WebhookTypeEnum["kycResult"] = "kycResult";
|
|
54
54
|
WebhookTypeEnum["policyBalanceChange"] = "policyBalanceChange";
|
|
55
55
|
WebhookTypeEnum["reversal"] = "reversal";
|
|
56
|
+
WebhookTypeEnum["mintOrder"] = "mintOrder";
|
|
56
57
|
WebhookTypeEnum["transaction_finality_on_l1"] = "transaction_finality_on_l1";
|
|
57
58
|
WebhookTypeEnum["stuckTx"] = "stuckTx";
|
|
58
59
|
WebhookTypeEnum["tradeOrder"] = "tradeOrder";
|
|
@@ -60,6 +61,7 @@ var WebhookTypeEnum;
|
|
|
60
61
|
WebhookTypeEnum["twoStepTransfer"] = "twoStepTransfer";
|
|
61
62
|
WebhookTypeEnum["twoStepDeposit"] = "twoStepDeposit";
|
|
62
63
|
WebhookTypeEnum["twoStepWithdrawal"] = "twoStepWithdrawal";
|
|
64
|
+
WebhookTypeEnum["endInvestorOnboardingInvite"] = "endInvestorOnboardingInvite";
|
|
63
65
|
WebhookTypeEnum["pendingDecryption"] = "pendingDecryption";
|
|
64
66
|
WebhookTypeEnum["whitelistApproved"] = "whitelistApproved";
|
|
65
67
|
WebhookTypeEnum["whitelistRejected"] = "whitelistRejected";
|
|
@@ -87,6 +89,7 @@ var WalletWebhookTypeEnum;
|
|
|
87
89
|
WalletWebhookTypeEnum["twoStepTransfer"] = "twoStepTransfer";
|
|
88
90
|
WalletWebhookTypeEnum["twoStepDeposit"] = "twoStepDeposit";
|
|
89
91
|
WalletWebhookTypeEnum["twoStepWithdrawal"] = "twoStepWithdrawal";
|
|
92
|
+
WalletWebhookTypeEnum["endInvestorOnboardingInvite"] = "endInvestorOnboardingInvite";
|
|
90
93
|
WalletWebhookTypeEnum["pendingDecryption"] = "pendingDecryption";
|
|
91
94
|
})(WalletWebhookTypeEnum || (exports.WalletWebhookTypeEnum = WalletWebhookTypeEnum = {}));
|
|
92
95
|
exports.WalletWebhookType = t.keyof(WalletWebhookTypeEnum, "WalletWebhookType");
|
|
@@ -96,6 +99,7 @@ var EnterpriseWebhookTypeEnum;
|
|
|
96
99
|
EnterpriseWebhookTypeEnum["accessToken"] = "accessToken";
|
|
97
100
|
EnterpriseWebhookTypeEnum["policyBalanceChange"] = "policyBalanceChange";
|
|
98
101
|
EnterpriseWebhookTypeEnum["reversal"] = "reversal";
|
|
102
|
+
EnterpriseWebhookTypeEnum["mintOrder"] = "mintOrder";
|
|
99
103
|
})(EnterpriseWebhookTypeEnum || (exports.EnterpriseWebhookTypeEnum = EnterpriseWebhookTypeEnum = {}));
|
|
100
104
|
exports.EnterpriseWebhookType = t.keyof(EnterpriseWebhookTypeEnum, "EnterpriseWebhookType");
|
|
101
105
|
var OrganizationWebhookTypeEnum;
|
|
@@ -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":["../../../../src/schema/webhook/webhookType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,eAyEX;AAzED,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,g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D,gEAAyC,CAAA;AAC3C,CAAC,EAnCW,qBAAqB,qCAArB,qBAAqB,QAmChC;AAEY,QAAA,iBAAiB,GAAG,CAAC,CAAC,KAAK,CACtC,qBAAqB,EACrB,mBAAmB,CACpB,CAAC;AAGF,IAAY,yBAMX;AAND,WAAY,yBAAyB;IACnC,wDAA6B,CAAA;IAC7B,wDAA6B,CAAA;IAC7B,wEAA6C,CAAA;IAC7C,kDAAuB,CAAA;IACvB,oDAAyB,CAAA;AAC3B,CAAC,EANW,yBAAyB,yCAAzB,yBAAyB,QAMpC;AACY,QAAA,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAC1C,yBAAyB,EACzB,uBAAuB,CACxB,CAAC;AAGF,IAAY,2BAmBX;AAnBD,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;IAG3B,sEAAyC,CAAA;IAGzC,sEAAyC,CAAA;AAC3C,CAAC,EAnBW,2BAA2B,2CAA3B,2BAA2B,QAmBtC;AACY,QAAA,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC5C,2BAA2B,EAC3B,yBAAyB,CAC1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -38,6 +38,9 @@ export enum WebhookTypeEnum {
|
|
|
38
38
|
// Webhook for reversal events (ACH reversals, fiat transaction reversals)
|
|
39
39
|
"reversal" = "reversal",
|
|
40
40
|
|
|
41
|
+
// Webhook for stablecoin mint order lifecycle events (enterprise-scoped)
|
|
42
|
+
"mintOrder" = "mintOrder",
|
|
43
|
+
|
|
41
44
|
// Webhook for l2 transaction finality on l1
|
|
42
45
|
"transaction_finality_on_l1" = "transaction_finality_on_l1",
|
|
43
46
|
|
|
@@ -59,6 +62,9 @@ export enum WebhookTypeEnum {
|
|
|
59
62
|
/** Canton two-step withdrawal offer flows (expiring/expired withdrawal offers). */
|
|
60
63
|
"twoStepWithdrawal" = "twoStepWithdrawal",
|
|
61
64
|
|
|
65
|
+
/** Canton end-investor-onboarding invite received (wallet-scoped). */
|
|
66
|
+
"endInvestorOnboardingInvite" = "endInvestorOnboardingInvite",
|
|
67
|
+
|
|
62
68
|
/** ERC-7984 confidential transfer pending decryption (wallet-scoped). */
|
|
63
69
|
"pendingDecryption" = "pendingDecryption",
|
|
64
70
|
|
|
@@ -102,6 +108,9 @@ export enum WalletWebhookTypeEnum {
|
|
|
102
108
|
/** Canton two-step withdrawal offer flows. */
|
|
103
109
|
"twoStepWithdrawal" = "twoStepWithdrawal",
|
|
104
110
|
|
|
111
|
+
/** Canton end-investor-onboarding invite received. */
|
|
112
|
+
"endInvestorOnboardingInvite" = "endInvestorOnboardingInvite",
|
|
113
|
+
|
|
105
114
|
/** ERC-7984 confidential transfer pending decryption. */
|
|
106
115
|
"pendingDecryption" = "pendingDecryption",
|
|
107
116
|
}
|
|
@@ -117,6 +126,7 @@ export enum EnterpriseWebhookTypeEnum {
|
|
|
117
126
|
"accessToken" = "accessToken",
|
|
118
127
|
"policyBalanceChange" = "policyBalanceChange",
|
|
119
128
|
"reversal" = "reversal",
|
|
129
|
+
"mintOrder" = "mintOrder",
|
|
120
130
|
}
|
|
121
131
|
export const EnterpriseWebhookType = t.keyof(
|
|
122
132
|
EnterpriseWebhookTypeEnum,
|