@bitgo/public-types 5.86.0 → 5.88.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"}
@@ -62,5 +62,6 @@ export declare const CantonTransferAcceptIntent: t.IntersectionC<[t.Intersection
62
62
  txRequestId: t.StringC;
63
63
  }>, t.PartialC<{
64
64
  token: t.StringC;
65
+ expiry: t.NumberC;
65
66
  }>]>;
66
67
  export type CantonTransferAcceptIntent = t.TypeOf<typeof CantonTransferAcceptIntent>;
@@ -35,6 +35,7 @@ exports.CantonTransferAcceptIntent = t.intersection([
35
35
  }),
36
36
  t.partial({
37
37
  token: t.string,
38
+ expiry: t.number,
38
39
  }),
39
40
  ]);
40
41
  //# sourceMappingURL=cantonTransferAcceptIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cantonTransferAcceptIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonTransferAcceptIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAa9B,QAAA,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,cAAc;QACtC,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,KAAK,EAAE,CAAC,CAAC,MAAM;KAChB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"cantonTransferAcceptIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonTransferAcceptIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAc9B,QAAA,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,cAAc;QACtC,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,KAAK,EAAE,CAAC,CAAC,MAAM;QACf,MAAM,EAAE,CAAC,CAAC,MAAM;KACjB,CAAC;CACH,CAAC,CAAC"}
@@ -62,5 +62,6 @@ export declare const CantonTransferRejectIntent: t.IntersectionC<[t.Intersection
62
62
  txRequestId: t.StringC;
63
63
  }>, t.PartialC<{
64
64
  token: t.StringC;
65
+ expiry: t.NumberC;
65
66
  }>]>;
66
67
  export type CantonTransferRejectIntent = t.TypeOf<typeof CantonTransferRejectIntent>;
@@ -35,6 +35,7 @@ exports.CantonTransferRejectIntent = t.intersection([
35
35
  }),
36
36
  t.partial({
37
37
  token: t.string,
38
+ expiry: t.number,
38
39
  }),
39
40
  ]);
40
41
  //# sourceMappingURL=cantonTransferRejectIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cantonTransferRejectIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonTransferRejectIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAa9B,QAAA,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,cAAc;QACtC,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,KAAK,EAAE,CAAC,CAAC,MAAM;KAChB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"cantonTransferRejectIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonTransferRejectIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAc9B,QAAA,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,cAAc;QACtC,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,KAAK,EAAE,CAAC,CAAC,MAAM;QACf,MAAM,EAAE,CAAC,CAAC,MAAM;KACjB,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">;
@@ -1334,6 +1336,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
1334
1336
  txRequestId: t.StringC;
1335
1337
  }>, t.PartialC<{
1336
1338
  token: t.StringC;
1339
+ expiry: t.NumberC;
1337
1340
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
1338
1341
  intentType: t.KeyofC<{
1339
1342
  payment: t.LiteralC<"payment">;
@@ -1528,6 +1531,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
1528
1531
  txRequestId: t.StringC;
1529
1532
  }>, t.PartialC<{
1530
1533
  token: t.StringC;
1534
+ expiry: t.NumberC;
1531
1535
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
1532
1536
  intentType: t.KeyofC<{
1533
1537
  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">;
@@ -1432,6 +1434,7 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
1432
1434
  txRequestId: t.StringC;
1433
1435
  }>, t.PartialC<{
1434
1436
  token: t.StringC;
1437
+ expiry: t.NumberC;
1435
1438
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
1436
1439
  intentType: t.KeyofC<{
1437
1440
  payment: t.LiteralC<"payment">;
@@ -1626,6 +1629,7 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
1626
1629
  txRequestId: t.StringC;
1627
1630
  }>, t.PartialC<{
1628
1631
  token: t.StringC;
1632
+ expiry: t.NumberC;
1629
1633
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
1630
1634
  intentType: t.KeyofC<{
1631
1635
  payment: t.LiteralC<"payment">;
@@ -11443,6 +11447,8 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
11443
11447
  isTestTransaction: t.BooleanC;
11444
11448
  }>]>]>, t.PartialC<{
11445
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]>;
11446
11452
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
11447
11453
  intentType: t.KeyofC<{
11448
11454
  payment: t.LiteralC<"payment">;
@@ -11506,6 +11512,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
11506
11512
  txRequestId: t.StringC;
11507
11513
  }>, t.PartialC<{
11508
11514
  token: t.StringC;
11515
+ expiry: t.NumberC;
11509
11516
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
11510
11517
  intentType: t.KeyofC<{
11511
11518
  payment: t.LiteralC<"payment">;
@@ -11700,6 +11707,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
11700
11707
  txRequestId: t.StringC;
11701
11708
  }>, t.PartialC<{
11702
11709
  token: t.StringC;
11710
+ expiry: t.NumberC;
11703
11711
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
11704
11712
  intentType: t.KeyofC<{
11705
11713
  payment: t.LiteralC<"payment">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "5.86.0",
3
+ "version": "5.88.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>;
@@ -12,6 +12,7 @@ import { intentTypes } from "./intentType";
12
12
  * @param {String} intentType - The type of intent (always set to transferAccept)
13
13
  * @param {string} txRequestId - The acknowledgement txRequestId
14
14
  * @param {String} [token] - The optional token
15
+ * @param {number} [expiry] - The optional expiry timestamp
15
16
  */
16
17
  export const CantonTransferAcceptIntent = t.intersection([
17
18
  BaseIntent,
@@ -21,6 +22,7 @@ export const CantonTransferAcceptIntent = t.intersection([
21
22
  }),
22
23
  t.partial({
23
24
  token: t.string,
25
+ expiry: t.number,
24
26
  }),
25
27
  ]);
26
28
 
@@ -12,6 +12,7 @@ import { intentTypes } from "./intentType";
12
12
  * @param {String} intentType - The type of intent (always set to transferReject)
13
13
  * @param {string} txRequestId - The acknowledgement txRequestId
14
14
  * @param {String} [token] - The optional token
15
+ * @param {number} [expiry] - The optional expiry timestamp
15
16
  */
16
17
  export const CantonTransferRejectIntent = t.intersection([
17
18
  BaseIntent,
@@ -21,6 +22,7 @@ export const CantonTransferRejectIntent = t.intersection([
21
22
  }),
22
23
  t.partial({
23
24
  token: t.string,
25
+ expiry: t.number,
24
26
  }),
25
27
  ]);
26
28