@bitgo/public-types 3.2.0 → 3.4.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 +6 -3
- package/dist/src/schema/webhook/webhookType.js +3 -0
- package/dist/src/schema/webhook/webhookType.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/webhook/webhookType.ts +5 -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", "bankAccount" | "accessToken", unknown>, t.UndefinedC]>;
|
14
|
+
type: t.UnionC<[t.Type<"bankAccount" | "accessToken" | "policyBalanceChange", "bankAccount" | "accessToken" | "policyBalanceChange", 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", "bankAccount" | "accessToken", unknown>, t.UndefinedC]>;
|
19
|
+
type: t.UnionC<[t.Type<"bankAccount" | "accessToken" | "policyBalanceChange", "bankAccount" | "accessToken" | "policyBalanceChange", 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
|
}>;
|
@@ -18,7 +18,8 @@ export declare enum WebhookTypeEnum {
|
|
18
18
|
"enterpriseKycState" = "enterpriseKycState",
|
19
19
|
"identityStatus" = "identityStatus",
|
20
20
|
"accessToken" = "accessToken",
|
21
|
-
"policyBalanceChange" = "policyBalanceChange"
|
21
|
+
"policyBalanceChange" = "policyBalanceChange",
|
22
|
+
"transaction_finality_on_l1" = "transaction_finality_on_l1"
|
22
23
|
}
|
23
24
|
export declare const WebhookType: t.KeyofC<typeof WebhookTypeEnum>;
|
24
25
|
export type WebhookType = t.TypeOf<typeof WebhookType>;
|
@@ -34,13 +35,15 @@ export declare enum WalletWebhookTypeEnum {
|
|
34
35
|
"admin" = "admin",
|
35
36
|
"address_confirmation" = "address_confirmation",
|
36
37
|
"lowFee" = "lowFee",
|
37
|
-
"circuitBreaker" = "circuitBreaker"
|
38
|
+
"circuitBreaker" = "circuitBreaker",
|
39
|
+
"transaction_finality_on_l1" = "transaction_finality_on_l1"
|
38
40
|
}
|
39
41
|
export declare const WalletWebhookType: t.KeyofC<typeof WalletWebhookTypeEnum>;
|
40
42
|
export type WalletWebhookType = t.TypeOf<typeof WalletWebhookType>;
|
41
43
|
export declare enum EnterpriseWebhookTypeEnum {
|
42
44
|
"bankAccount" = "bankAccount",
|
43
|
-
"accessToken" = "accessToken"
|
45
|
+
"accessToken" = "accessToken",
|
46
|
+
"policyBalanceChange" = "policyBalanceChange"
|
44
47
|
}
|
45
48
|
export declare const EnterpriseWebhookType: t.KeyofC<typeof EnterpriseWebhookTypeEnum>;
|
46
49
|
export type EnterpriseWebhookType = t.TypeOf<typeof EnterpriseWebhookType>;
|
@@ -46,6 +46,7 @@ var WebhookTypeEnum;
|
|
46
46
|
WebhookTypeEnum["identityStatus"] = "identityStatus";
|
47
47
|
WebhookTypeEnum["accessToken"] = "accessToken";
|
48
48
|
WebhookTypeEnum["policyBalanceChange"] = "policyBalanceChange";
|
49
|
+
WebhookTypeEnum["transaction_finality_on_l1"] = "transaction_finality_on_l1";
|
49
50
|
})(WebhookTypeEnum || (exports.WebhookTypeEnum = WebhookTypeEnum = {}));
|
50
51
|
exports.WebhookType = t.keyof(WebhookTypeEnum, "WebhookType");
|
51
52
|
var WalletWebhookTypeEnum;
|
@@ -62,12 +63,14 @@ var WalletWebhookTypeEnum;
|
|
62
63
|
WalletWebhookTypeEnum["address_confirmation"] = "address_confirmation";
|
63
64
|
WalletWebhookTypeEnum["lowFee"] = "lowFee";
|
64
65
|
WalletWebhookTypeEnum["circuitBreaker"] = "circuitBreaker";
|
66
|
+
WalletWebhookTypeEnum["transaction_finality_on_l1"] = "transaction_finality_on_l1";
|
65
67
|
})(WalletWebhookTypeEnum || (exports.WalletWebhookTypeEnum = WalletWebhookTypeEnum = {}));
|
66
68
|
exports.WalletWebhookType = t.keyof(WalletWebhookTypeEnum, "WalletWebhookType");
|
67
69
|
var EnterpriseWebhookTypeEnum;
|
68
70
|
(function (EnterpriseWebhookTypeEnum) {
|
69
71
|
EnterpriseWebhookTypeEnum["bankAccount"] = "bankAccount";
|
70
72
|
EnterpriseWebhookTypeEnum["accessToken"] = "accessToken";
|
73
|
+
EnterpriseWebhookTypeEnum["policyBalanceChange"] = "policyBalanceChange";
|
71
74
|
})(EnterpriseWebhookTypeEnum || (exports.EnterpriseWebhookTypeEnum = EnterpriseWebhookTypeEnum = {}));
|
72
75
|
exports.EnterpriseWebhookType = t.keyof(EnterpriseWebhookTypeEnum, "EnterpriseWebhookType");
|
73
76
|
//# sourceMappingURL=webhookType.js.map
|
@@ -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,eA8BX;AA9BD,WAAY,eAAe;IAEzB,0CAAyB,CAAA;IAE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ED
@@ -27,6 +27,9 @@ export enum WebhookTypeEnum {
|
|
27
27
|
"accessToken" = "accessToken",
|
28
28
|
|
29
29
|
"policyBalanceChange" = "policyBalanceChange",
|
30
|
+
|
31
|
+
// Webhook for l2 transaction finality on l1
|
32
|
+
"transaction_finality_on_l1" = "transaction_finality_on_l1",
|
30
33
|
}
|
31
34
|
|
32
35
|
export const WebhookType = t.keyof(WebhookTypeEnum, "WebhookType");
|
@@ -45,6 +48,7 @@ export enum WalletWebhookTypeEnum {
|
|
45
48
|
"address_confirmation" = "address_confirmation",
|
46
49
|
"lowFee" = "lowFee",
|
47
50
|
"circuitBreaker" = "circuitBreaker",
|
51
|
+
"transaction_finality_on_l1" = "transaction_finality_on_l1",
|
48
52
|
}
|
49
53
|
|
50
54
|
export const WalletWebhookType = t.keyof(
|
@@ -56,6 +60,7 @@ export type WalletWebhookType = t.TypeOf<typeof WalletWebhookType>;
|
|
56
60
|
export enum EnterpriseWebhookTypeEnum {
|
57
61
|
"bankAccount" = "bankAccount",
|
58
62
|
"accessToken" = "accessToken",
|
63
|
+
"policyBalanceChange" = "policyBalanceChange",
|
59
64
|
}
|
60
65
|
export const EnterpriseWebhookType = t.keyof(
|
61
66
|
EnterpriseWebhookTypeEnum,
|