@bitgo/public-types 5.87.0 → 5.89.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.
@@ -81,5 +81,7 @@ export declare const CantonPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.In
81
81
  isTestTransaction: t.BooleanC;
82
82
  }>]>]>, t.PartialC<{
83
83
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
84
+ }>, t.TypeC<{
85
+ unspents: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
84
86
  }>]>;
85
87
  export type CantonPaymentIntent = t.TypeOf<typeof CantonPaymentIntent>;
@@ -32,5 +32,8 @@ exports.CantonPaymentIntent = t.intersection([
32
32
  t.partial({
33
33
  memo: utils_1.optionalString,
34
34
  }),
35
+ t.type({
36
+ unspents: utils_1.optionalStringArray,
37
+ }),
35
38
  ]);
36
39
  //# sourceMappingURL=cantonPaymentIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cantonPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,0CAAgD;AAKnC,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,6BAAa;IACb,CAAC,CAAC,OAAO,CAAC;QACR,IAAI,EAAE,sBAAc;KACrB,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;KACrB,CAAC;IACF,CAAC,CAAC,IAAI,CAAC;QACL,QAAQ,EAAE,2BAAmB;KAC9B,CAAC;CACH,CAAC,CAAC"}
@@ -1271,6 +1271,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
1271
1271
  isTestTransaction: t.BooleanC;
1272
1272
  }>]>]>, t.PartialC<{
1273
1273
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
1274
+ }>, t.TypeC<{
1275
+ unspents: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
1274
1276
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
1275
1277
  intentType: t.KeyofC<{
1276
1278
  payment: t.LiteralC<"payment">;
@@ -1369,6 +1369,8 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
1369
1369
  isTestTransaction: t.BooleanC;
1370
1370
  }>]>]>, t.PartialC<{
1371
1371
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
1372
+ }>, t.TypeC<{
1373
+ unspents: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
1372
1374
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
1373
1375
  intentType: t.KeyofC<{
1374
1376
  payment: t.LiteralC<"payment">;
@@ -11445,6 +11447,8 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
11445
11447
  isTestTransaction: t.BooleanC;
11446
11448
  }>]>]>, t.PartialC<{
11447
11449
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
11450
+ }>, t.TypeC<{
11451
+ unspents: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
11448
11452
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
11449
11453
  intentType: t.KeyofC<{
11450
11454
  payment: t.LiteralC<"payment">;
@@ -27,7 +27,8 @@ export declare enum WebhookTypeEnum {
27
27
  "reversal" = "reversal",
28
28
  "transaction_finality_on_l1" = "transaction_finality_on_l1",
29
29
  "stuckTx" = "stuckTx",
30
- "tradeOrder" = "tradeOrder"
30
+ "tradeOrder" = "tradeOrder",
31
+ "unspentExpiry" = "unspentExpiry"
31
32
  }
32
33
  export declare const WebhookType: t.KeyofC<typeof WebhookTypeEnum>;
33
34
  export type WebhookType = t.TypeOf<typeof WebhookType>;
@@ -47,7 +48,8 @@ export declare enum WalletWebhookTypeEnum {
47
48
  "lowFeeAddressBalance" = "lowFeeAddressBalance",
48
49
  "transaction_finality_on_l1" = "transaction_finality_on_l1",
49
50
  "fundsDeposited" = "fundsDeposited",
50
- "stuckTx" = "stuckTx"
51
+ "stuckTx" = "stuckTx",
52
+ "unspentExpiry" = "unspentExpiry"
51
53
  }
52
54
  export declare const WalletWebhookType: t.KeyofC<typeof WalletWebhookTypeEnum>;
53
55
  export type WalletWebhookType = t.TypeOf<typeof WalletWebhookType>;
@@ -55,6 +55,7 @@ var WebhookTypeEnum;
55
55
  WebhookTypeEnum["transaction_finality_on_l1"] = "transaction_finality_on_l1";
56
56
  WebhookTypeEnum["stuckTx"] = "stuckTx";
57
57
  WebhookTypeEnum["tradeOrder"] = "tradeOrder";
58
+ WebhookTypeEnum["unspentExpiry"] = "unspentExpiry";
58
59
  })(WebhookTypeEnum || (exports.WebhookTypeEnum = WebhookTypeEnum = {}));
59
60
  exports.WebhookType = t.keyof(WebhookTypeEnum, "WebhookType");
60
61
  var WalletWebhookTypeEnum;
@@ -75,6 +76,7 @@ var WalletWebhookTypeEnum;
75
76
  WalletWebhookTypeEnum["transaction_finality_on_l1"] = "transaction_finality_on_l1";
76
77
  WalletWebhookTypeEnum["fundsDeposited"] = "fundsDeposited";
77
78
  WalletWebhookTypeEnum["stuckTx"] = "stuckTx";
79
+ WalletWebhookTypeEnum["unspentExpiry"] = "unspentExpiry";
78
80
  })(WalletWebhookTypeEnum || (exports.WalletWebhookTypeEnum = WalletWebhookTypeEnum = {}));
79
81
  exports.WalletWebhookType = t.keyof(WalletWebhookTypeEnum, "WalletWebhookType");
80
82
  var EnterpriseWebhookTypeEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"webhookType.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,eA6CX;AA7CD,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;IAEnC,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;AAC7B,CAAC,EA7CW,eAAe,+BAAf,eAAe,QA6C1B;AAEY,QAAA,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAGnE,IAAY,qBAiBX;AAjBD,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,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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,2BAYX;AAZD,WAAY,2BAA2B;IACrC,oDAAuB,CAAA;IACvB,sDAAyB,CAAA;IACzB,kEAAqC,CAAA;IACrC,4EAA+C,CAAA;IAC/C,0DAA6B,CAAA;IAC7B,gEAAmC,CAAA;IACnC,4DAA+B,CAAA;IAC/B,wEAA2C,CAAA;IAC3C,0DAA6B,CAAA;IAC7B,oDAAuB,CAAA;IACvB,wDAA2B,CAAA;AAC7B,CAAC,EAZW,2BAA2B,2CAA3B,2BAA2B,QAYtC;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": "5.87.0",
3
+ "version": "5.89.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -1,6 +1,6 @@
1
1
  import * as t from "io-ts";
2
2
  import { PaymentIntent } from "./paymentIntent";
3
- import { optionalString } from "../../../utils";
3
+ import { optionalString, optionalStringArray } from "../../../utils";
4
4
 
5
5
  /**
6
6
  * @title CANTON Payment Intent
@@ -10,6 +10,9 @@ export const CantonPaymentIntent = t.intersection([
10
10
  t.partial({
11
11
  memo: optionalString,
12
12
  }),
13
+ t.type({
14
+ unspents: optionalStringArray,
15
+ }),
13
16
  ]);
14
17
 
15
18
  export type CantonPaymentIntent = t.TypeOf<typeof CantonPaymentIntent>;
@@ -45,6 +45,9 @@ export enum WebhookTypeEnum {
45
45
 
46
46
  // Webhook for trade order events
47
47
  "tradeOrder" = "tradeOrder",
48
+
49
+ /** Unspents approaching expiry (wallet-scoped). */
50
+ "unspentExpiry" = "unspentExpiry",
48
51
  }
49
52
 
50
53
  export const WebhookType = t.keyof(WebhookTypeEnum, "WebhookType");
@@ -67,6 +70,9 @@ export enum WalletWebhookTypeEnum {
67
70
  "transaction_finality_on_l1" = "transaction_finality_on_l1",
68
71
  "fundsDeposited" = "fundsDeposited",
69
72
  "stuckTx" = "stuckTx",
73
+
74
+ /** Unspents approaching expiry. */
75
+ "unspentExpiry" = "unspentExpiry",
70
76
  }
71
77
 
72
78
  export const WalletWebhookType = t.keyof(