@bitgo/public-types 2.28.0 → 2.30.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.
@@ -22,7 +22,7 @@ export declare const WebhookNotification: t.IntersectionC<[t.TypeC<{
22
22
  heightToConfirm: t.NumberC;
23
23
  payload: t.StringC;
24
24
  response: t.PartialC<{
25
- code: t.UnknownC;
25
+ code: t.UnionC<[t.NumberC, t.StringC]>;
26
26
  type: t.StringC;
27
27
  body: t.StringC;
28
28
  error: t.StringC;
@@ -57,7 +57,7 @@ exports.WebhookNotification = t.intersection([
57
57
  heightToConfirm: t.number,
58
58
  payload: t.string,
59
59
  response: t.partial({
60
- code: t.unknown,
60
+ code: t.union([t.number, t.string]),
61
61
  type: t.string,
62
62
  body: t.string,
63
63
  error: t.string,
@@ -1 +1 @@
1
- {"version":3,"file":"webhookNotification.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookNotification.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAgD;AAChD,+CAA4C;AAE/B,QAAA,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC;IAC9C,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACxB,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAChB,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IACpB,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IACtB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;CACpB,CAAC,CAAC;AAMU,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,CAAC,CAAC,IAAI,CAAC;QAKL,EAAE,EAAE,CAAC,CAAC,MAAM;KACb,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QAIR,IAAI,EAAE,yBAAW;QAIjB,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,GAAG,EAAE,CAAC,CAAC,MAAM;QACb,IAAI,EAAE,CAAC,CAAC,MAAM;QAKd,IAAI,EAAE,CAAC,CAAC,MAAM;QACd,SAAS,EAAE,CAAC,CAAC,MAAM;QAInB,QAAQ,EAAE,CAAC,CAAC,MAAM;QAKlB,KAAK,EAAE,gCAAwB;QAC/B,UAAU,EAAE,CAAC,CAAC,OAAO;QACrB,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,OAAO,EAAE,CAAC,CAAC,MAAM;QAIjB,SAAS,EAAE,+BAAiB;QAI5B,WAAW,EAAE,+BAAiB;QAI9B,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,iBAAiB,EAAE,CAAC,CAAC,OAAO;QAC5B,eAAe,EAAE,CAAC,CAAC,MAAM;QACzB,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC;YAClB,IAAI,EAAE,CAAC,CAAC,OAAO;YACf,IAAI,EAAE,CAAC,CAAC,MAAM;YACd,IAAI,EAAE,CAAC,CAAC,MAAM;YACd,KAAK,EAAE,CAAC,CAAC,MAAM;SAChB,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"webhookNotification.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookNotification.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAgD;AAChD,+CAA4C;AAE/B,QAAA,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC;IAC9C,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACxB,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAChB,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IACpB,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IACtB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;CACpB,CAAC,CAAC;AAMU,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,CAAC,CAAC,IAAI,CAAC;QAKL,EAAE,EAAE,CAAC,CAAC,MAAM;KACb,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QAIR,IAAI,EAAE,yBAAW;QAIjB,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,GAAG,EAAE,CAAC,CAAC,MAAM;QACb,IAAI,EAAE,CAAC,CAAC,MAAM;QAKd,IAAI,EAAE,CAAC,CAAC,MAAM;QACd,SAAS,EAAE,CAAC,CAAC,MAAM;QAInB,QAAQ,EAAE,CAAC,CAAC,MAAM;QAKlB,KAAK,EAAE,gCAAwB;QAC/B,UAAU,EAAE,CAAC,CAAC,OAAO;QACrB,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,OAAO,EAAE,CAAC,CAAC,MAAM;QAIjB,SAAS,EAAE,+BAAiB;QAI5B,WAAW,EAAE,+BAAiB;QAI9B,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,iBAAiB,EAAE,CAAC,CAAC,OAAO;QAC5B,eAAe,EAAE,CAAC,CAAC,MAAM;QACzB,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC;YAClB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;YACnC,IAAI,EAAE,CAAC,CAAC,MAAM;YACd,IAAI,EAAE,CAAC,CAAC,MAAM;YACd,KAAK,EAAE,CAAC,CAAC,MAAM;SAChB,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -11,6 +11,7 @@ export declare enum WebhookTypeEnum {
11
11
  "admin" = "admin",
12
12
  "address_confirmation" = "address_confirmation",
13
13
  "lowFee" = "lowFee",
14
+ "circuitBreaker" = "circuitBreaker",
14
15
  "wallet_confirmation" = "wallet_confirmation",
15
16
  "wireWithdrawal" = "wireWithdrawal",
16
17
  "bankAccount" = "bankAccount",
@@ -33,6 +34,7 @@ export declare enum WalletWebhookTypeEnum {
33
34
  "admin" = "admin",
34
35
  "address_confirmation" = "address_confirmation",
35
36
  "lowFee" = "lowFee",
37
+ "circuitBreaker" = "circuitBreaker",
36
38
  "wireWithdrawal" = "wireWithdrawal"
37
39
  }
38
40
  export declare const WalletWebhookType: t.KeyofC<typeof WalletWebhookTypeEnum>;
@@ -38,6 +38,7 @@ var WebhookTypeEnum;
38
38
  WebhookTypeEnum["admin"] = "admin";
39
39
  WebhookTypeEnum["address_confirmation"] = "address_confirmation";
40
40
  WebhookTypeEnum["lowFee"] = "lowFee";
41
+ WebhookTypeEnum["circuitBreaker"] = "circuitBreaker";
41
42
  WebhookTypeEnum["wallet_confirmation"] = "wallet_confirmation";
42
43
  WebhookTypeEnum["wireWithdrawal"] = "wireWithdrawal";
43
44
  WebhookTypeEnum["bankAccount"] = "bankAccount";
@@ -60,6 +61,7 @@ var WalletWebhookTypeEnum;
60
61
  WalletWebhookTypeEnum["admin"] = "admin";
61
62
  WalletWebhookTypeEnum["address_confirmation"] = "address_confirmation";
62
63
  WalletWebhookTypeEnum["lowFee"] = "lowFee";
64
+ WalletWebhookTypeEnum["circuitBreaker"] = "circuitBreaker";
63
65
  WalletWebhookTypeEnum["wireWithdrawal"] = "wireWithdrawal";
64
66
  })(WalletWebhookTypeEnum || (exports.WalletWebhookTypeEnum = WalletWebhookTypeEnum = {}));
65
67
  exports.WalletWebhookType = t.keyof(WalletWebhookTypeEnum, "WalletWebhookType");
@@ -1 +1 @@
1
- {"version":3,"file":"webhookType.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,eAyBX;AAzBD,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,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AA2C,CAAA;IAC3C,0DAAyC,CAAA;IACzC,sDAAqC,CAAA;IACrC,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,gEAA+C,CAAA;IAC/C,oCAAmB,CAAA;IACnB,oDAAmC,CAAA;IAGnC,8DAA6C,CAAA;IAE7C,oDAAmC,CAAA;IACnC,8CAA6B,CAAA;IAC7B,gDAA+B,CAAA;IAC/B,4DAA2C,CAAA;IAC3C,oDAAmC,CAAA;IAEnC,8CAA6B,CAAA;AAC/B,CAAC,EA1BW,eAAe,+BAAf,eAAe,QA0B1B;AAEY,QAAA,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAGnE,IAAY,qBAcX;AAdD,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;IACnB,0DAAmC,CAAA;IACnC,0DAAmC,CAAA;AACrC,CAAC,EAdW,qBAAqB,qCAArB,qBAAqB,QAchC;AAEY,QAAA,iBAAiB,GAAG,CAAC,CAAC,KAAK,CACtC,qBAAqB,EACrB,mBAAmB,CACpB,CAAC;AAGF,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACnC,wDAA6B,CAAA;IAC7B,wDAA6B,CAAA;AAC/B,CAAC,EAHW,yBAAyB,yCAAzB,yBAAyB,QAGpC;AACY,QAAA,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAC1C,yBAAyB,EACzB,uBAAuB,CACxB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "2.28.0",
3
+ "version": "2.30.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -67,7 +67,7 @@ export const WebhookNotification = t.intersection([
67
67
  heightToConfirm: t.number,
68
68
  payload: t.string,
69
69
  response: t.partial({
70
- code: t.unknown,
70
+ code: t.union([t.number, t.string]),
71
71
  type: t.string,
72
72
  body: t.string,
73
73
  error: t.string,
@@ -14,6 +14,7 @@ export enum WebhookTypeEnum {
14
14
  "admin" = "admin",
15
15
  "address_confirmation" = "address_confirmation",
16
16
  "lowFee" = "lowFee",
17
+ "circuitBreaker" = "circuitBreaker",
17
18
 
18
19
  // Specific to User Webhooks
19
20
  "wallet_confirmation" = "wallet_confirmation",
@@ -42,6 +43,7 @@ export enum WalletWebhookTypeEnum {
42
43
  "admin" = "admin",
43
44
  "address_confirmation" = "address_confirmation",
44
45
  "lowFee" = "lowFee",
46
+ "circuitBreaker" = "circuitBreaker",
45
47
  "wireWithdrawal" = "wireWithdrawal",
46
48
  }
47
49