@bitgo/public-types 7.2.1 → 7.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/webhook/organizationWebhooks.d.ts +2 -2
- package/dist/src/schema/webhook/webhookType.d.ts +3 -1
- package/dist/src/schema/webhook/webhookType.js +2 -0
- package/dist/src/schema/webhook/webhookType.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/webhook/webhookType.ts +6 -0
|
@@ -11,12 +11,12 @@ export declare const AddOrganizationWebhookRequestBodyC: t.TypeC<{
|
|
|
11
11
|
}>;
|
|
12
12
|
export type AddOrganizationWebhookRequestBody = t.TypeOf<typeof AddOrganizationWebhookRequestBodyC>;
|
|
13
13
|
export declare const ListOrganizationWebhooksRequestBody: {
|
|
14
|
-
type: t.UnionC<[t.Type<"transfer" | "txRequest" | "txRequestTransaction" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "idvStatus" | "accessToken" | "reversal" | "tradeOrder" | "whitelistApproved" | "whitelistRejected", "transfer" | "txRequest" | "txRequestTransaction" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "idvStatus" | "accessToken" | "reversal" | "tradeOrder" | "whitelistApproved" | "whitelistRejected", unknown>, t.UndefinedC]>;
|
|
14
|
+
type: t.UnionC<[t.Type<"transfer" | "txRequest" | "txRequestTransaction" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "idvStatus" | "accessToken" | "reversal" | "tradeOrder" | "whitelistApproved" | "whitelistRejected" | "depositResolved", "transfer" | "txRequest" | "txRequestTransaction" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "idvStatus" | "accessToken" | "reversal" | "tradeOrder" | "whitelistApproved" | "whitelistRejected" | "depositResolved", 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 ListOrganizationWebhooksRequestBodyC: t.TypeC<{
|
|
19
|
-
type: t.UnionC<[t.Type<"transfer" | "txRequest" | "txRequestTransaction" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "idvStatus" | "accessToken" | "reversal" | "tradeOrder" | "whitelistApproved" | "whitelistRejected", "transfer" | "txRequest" | "txRequestTransaction" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "idvStatus" | "accessToken" | "reversal" | "tradeOrder" | "whitelistApproved" | "whitelistRejected", unknown>, t.UndefinedC]>;
|
|
19
|
+
type: t.UnionC<[t.Type<"transfer" | "txRequest" | "txRequestTransaction" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "idvStatus" | "accessToken" | "reversal" | "tradeOrder" | "whitelistApproved" | "whitelistRejected" | "depositResolved", "transfer" | "txRequest" | "txRequestTransaction" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "idvStatus" | "accessToken" | "reversal" | "tradeOrder" | "whitelistApproved" | "whitelistRejected" | "depositResolved", 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
|
}>;
|
|
@@ -39,6 +39,7 @@ export declare enum WebhookTypeEnum {
|
|
|
39
39
|
"pendingDecryption" = "pendingDecryption",
|
|
40
40
|
"whitelistApproved" = "whitelistApproved",
|
|
41
41
|
"whitelistRejected" = "whitelistRejected",
|
|
42
|
+
"depositResolved" = "depositResolved",
|
|
42
43
|
"allocationRequest" = "allocationRequest",
|
|
43
44
|
"allocationAccepted" = "allocationAccepted",
|
|
44
45
|
"allocationSettlementFailed" = "allocationSettlementFailed"
|
|
@@ -98,7 +99,8 @@ export declare enum OrganizationWebhookTypeEnum {
|
|
|
98
99
|
"reversal" = "reversal",
|
|
99
100
|
"tradeOrder" = "tradeOrder",
|
|
100
101
|
"whitelistApproved" = "whitelistApproved",
|
|
101
|
-
"whitelistRejected" = "whitelistRejected"
|
|
102
|
+
"whitelistRejected" = "whitelistRejected",
|
|
103
|
+
"depositResolved" = "depositResolved"
|
|
102
104
|
}
|
|
103
105
|
export declare const OrganizationWebhookType: t.KeyofC<typeof OrganizationWebhookTypeEnum>;
|
|
104
106
|
export type OrganizationWebhookType = t.TypeOf<typeof OrganizationWebhookType>;
|
|
@@ -66,6 +66,7 @@ var WebhookTypeEnum;
|
|
|
66
66
|
WebhookTypeEnum["pendingDecryption"] = "pendingDecryption";
|
|
67
67
|
WebhookTypeEnum["whitelistApproved"] = "whitelistApproved";
|
|
68
68
|
WebhookTypeEnum["whitelistRejected"] = "whitelistRejected";
|
|
69
|
+
WebhookTypeEnum["depositResolved"] = "depositResolved";
|
|
69
70
|
WebhookTypeEnum["allocationRequest"] = "allocationRequest";
|
|
70
71
|
WebhookTypeEnum["allocationAccepted"] = "allocationAccepted";
|
|
71
72
|
WebhookTypeEnum["allocationSettlementFailed"] = "allocationSettlementFailed";
|
|
@@ -126,6 +127,7 @@ var OrganizationWebhookTypeEnum;
|
|
|
126
127
|
OrganizationWebhookTypeEnum["tradeOrder"] = "tradeOrder";
|
|
127
128
|
OrganizationWebhookTypeEnum["whitelistApproved"] = "whitelistApproved";
|
|
128
129
|
OrganizationWebhookTypeEnum["whitelistRejected"] = "whitelistRejected";
|
|
130
|
+
OrganizationWebhookTypeEnum["depositResolved"] = "depositResolved";
|
|
129
131
|
})(OrganizationWebhookTypeEnum || (exports.OrganizationWebhookTypeEnum = OrganizationWebhookTypeEnum = {}));
|
|
130
132
|
exports.OrganizationWebhookType = t.keyof(OrganizationWebhookTypeEnum, "OrganizationWebhookType");
|
|
131
133
|
//# 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,eAsFX;AAtFD,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;IACnB,oDAAmC,CAAA;IAEnC,gEAA+C,CAAA;IAG/C,8DAA6C,CAAA;IAE7C,8CAA6B,CAAA;IAC7B,gDAA+B,CAAA;IAC/B,4DAA2C,CAAA;IAC3C,oDAAmC,CAAA;IACnC,0CAAyB,CAAA;IAEzB,8CAA6B,CAAA;IAC7B,oDAAmC,CAAA;IACnC,oDAAmC,CAAA;IACnC,oDAAmC,CAAA;IACnC,0CAAyB,CAAA;IAEzB,8DAA6C,CAAA;IAG7C,wCAAuB,CAAA;IAGvB,0CAAyB,CAAA;IAGzB,4EAA2D,CAAA;IAG3D,sCAAqB,CAAA;IAGrB,4CAA2B,CAAA;IAG3B,kDAAiC,CAAA;IAGjC,sDAAqC,CAAA;IAGrC,oDAAmC,CAAA;IAGnC,0DAAyC,CAAA;IAGzC,8EAA6D,CAAA;IAG7D,kFAAiE,CAAA;IAGjE,0DAAyC,CAAA;IAGzC,0DAAyC,CAAA;IAGzC,0DAAyC,CAAA;IAGzC,sDAAqC,CAAA;IAGrC,0DAAyC,CAAA;IAEzC,4DAA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A;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;IAGzC,kEAAqC,CAAA;AACvC,CAAC,EAtBW,2BAA2B,2CAA3B,2BAA2B,QAsBtC;AACY,QAAA,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC5C,2BAA2B,EAC3B,yBAAyB,CAC1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -77,6 +77,9 @@ export enum WebhookTypeEnum {
|
|
|
77
77
|
/** Travel Rule whitelist entry rejected. */
|
|
78
78
|
"whitelistRejected" = "whitelistRejected",
|
|
79
79
|
|
|
80
|
+
/** Resolved deposit notification (deposit.resolved). */
|
|
81
|
+
"depositResolved" = "depositResolved",
|
|
82
|
+
|
|
80
83
|
/** Canton DvP allocation request received (wallet-scoped). */
|
|
81
84
|
"allocationRequest" = "allocationRequest",
|
|
82
85
|
/** Canton DvP allocation accepted (wallet-scoped). */
|
|
@@ -173,6 +176,9 @@ export enum OrganizationWebhookTypeEnum {
|
|
|
173
176
|
|
|
174
177
|
/** Travel Rule whitelist entry rejected. */
|
|
175
178
|
"whitelistRejected" = "whitelistRejected",
|
|
179
|
+
|
|
180
|
+
/** Resolved deposit notification (deposit.resolved). */
|
|
181
|
+
"depositResolved" = "depositResolved",
|
|
176
182
|
}
|
|
177
183
|
export const OrganizationWebhookType = t.keyof(
|
|
178
184
|
OrganizationWebhookTypeEnum,
|