@bitgo/public-types 6.10.0 → 6.12.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.
@@ -90,6 +90,7 @@ export declare const CantonPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.In
90
90
  }>]>]>, t.PartialC<{
91
91
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
92
92
  isConsolidate: t.BooleanC;
93
+ numberOfSplits: t.NumberC;
93
94
  }>, t.TypeC<{
94
95
  unspents: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
95
96
  }>]>;
@@ -32,6 +32,7 @@ exports.CantonPaymentIntent = t.intersection([
32
32
  t.partial({
33
33
  memo: utils_1.optionalString,
34
34
  isConsolidate: t.boolean,
35
+ numberOfSplits: t.number,
35
36
  }),
36
37
  t.type({
37
38
  unspents: utils_1.optionalStringArray,
@@ -1 +1 @@
1
- {"version":3,"file":"cantonPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,0CAAqE;AAKxD,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,6BAAa;IACb,CAAC,CAAC,OAAO,CAAC;QACR,IAAI,EAAE,sBAAc;QACpB,aAAa,EAAE,CAAC,CAAC,OAAO;KACzB,CAAC;IACF,CAAC,CAAC,IAAI,CAAC;QACL,QAAQ,EAAE,2BAAmB;KAC9B,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"cantonPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,0CAAqE;AAKxD,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,6BAAa;IACb,CAAC,CAAC,OAAO,CAAC;QACR,IAAI,EAAE,sBAAc;QACpB,aAAa,EAAE,CAAC,CAAC,OAAO;QACxB,cAAc,EAAE,CAAC,CAAC,MAAM;KACzB,CAAC;IACF,CAAC,CAAC,IAAI,CAAC;QACL,QAAQ,EAAE,2BAAmB;KAC9B,CAAC;CACH,CAAC,CAAC"}
@@ -1479,6 +1479,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
1479
1479
  }>]>]>, t.PartialC<{
1480
1480
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
1481
1481
  isConsolidate: t.BooleanC;
1482
+ numberOfSplits: t.NumberC;
1482
1483
  }>, t.TypeC<{
1483
1484
  unspents: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
1484
1485
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
@@ -1577,6 +1577,7 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
1577
1577
  }>]>]>, t.PartialC<{
1578
1578
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
1579
1579
  isConsolidate: t.BooleanC;
1580
+ numberOfSplits: t.NumberC;
1580
1581
  }>, t.TypeC<{
1581
1582
  unspents: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
1582
1583
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
@@ -14097,6 +14098,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
14097
14098
  }>]>]>, t.PartialC<{
14098
14099
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
14099
14100
  isConsolidate: t.BooleanC;
14101
+ numberOfSplits: t.NumberC;
14100
14102
  }>, t.TypeC<{
14101
14103
  unspents: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
14102
14104
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
@@ -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,eAoDX;AApDD,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,4EAA2D,CAAA;IAG3D,sCAAqB,CAAA;IAGrB,4CAA2B,CAAA;IAG3B,kDAAiC,CAAA;IAGjC,sDAAqC,CAAA;AACvC,CAAC,EApDW,eAAe,+BAAf,eAAe,QAoD1B;AAEY,QAAA,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,e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IACrC,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,sEAA+C,CAAA;IAC/C,0CAAmB,CAAA;IACnB,0DAAmC,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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "6.10.0",
3
+ "version": "6.12.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -10,6 +10,7 @@ export const CantonPaymentIntent = t.intersection([
10
10
  t.partial({
11
11
  memo: optionalString,
12
12
  isConsolidate: t.boolean,
13
+ numberOfSplits: t.number,
13
14
  }),
14
15
  t.type({
15
16
  unspents: optionalStringArray,
@@ -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(