@bitgo/public-types 5.20.0 → 5.21.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.
@@ -4,14 +4,13 @@ export declare const LightningOnchainRecipient: t.TypeC<{
4
4
  address: t.StringC;
5
5
  }>;
6
6
  export type LightningOnchainRecipient = t.TypeOf<typeof LightningOnchainRecipient>;
7
- export declare const LightningOnchainRequest: t.IntersectionC<[t.TypeC<{
7
+ export declare const LightningOnchainRequest: t.TypeC<{
8
8
  recipients: t.ArrayC<t.TypeC<{
9
9
  amountSat: import("io-ts-types").BigIntFromStringC;
10
10
  address: t.StringC;
11
11
  }>>;
12
- }>, t.PartialC<{
13
12
  satsPerVbyte: import("io-ts-types").BigIntFromStringC;
14
- }>]>;
13
+ }>;
15
14
  export type LightningOnchainRequest = t.TypeOf<typeof LightningOnchainRequest>;
16
15
  export declare const LightningPaymentRequest: t.IntersectionC<[t.TypeC<{
17
16
  invoice: t.StringC;
@@ -30,14 +30,10 @@ exports.LightningOnchainRecipient = t.type({
30
30
  amountSat: io_ts_types_1.BigIntFromString,
31
31
  address: t.string,
32
32
  });
33
- exports.LightningOnchainRequest = t.intersection([
34
- t.type({
35
- recipients: t.array(exports.LightningOnchainRecipient),
36
- }),
37
- t.partial({
38
- satsPerVbyte: io_ts_types_1.BigIntFromString,
39
- }),
40
- ]);
33
+ exports.LightningOnchainRequest = t.type({
34
+ recipients: t.array(exports.LightningOnchainRecipient),
35
+ satsPerVbyte: io_ts_types_1.BigIntFromString,
36
+ });
41
37
  exports.LightningPaymentRequest = t.intersection([
42
38
  t.type({
43
39
  invoice: t.string,
@@ -1 +1 @@
1
- {"version":3,"file":"payment.js","sourceRoot":"","sources":["../../../../src/schema/lightning/payment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA+C;AAElC,QAAA,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9C,SAAS,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E,CAAC,CAAC,MAAM;KAClB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,8BAAgB;QAC5B,YAAY,EAAE,8BAAgB;QAC9B,aAAa,EAAE,CAAC,CAAC,MAAM;KACxB,CAAC;CACH,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,CAAC,CAAC,IAAI,CAAC;IACnD,aAAa,EAAE,+BAAuB;IACtC,SAAS,EAAE,CAAC,CAAC,MAAM;CACpB,CAAC,CAAC"}
@@ -2505,14 +2505,13 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
2505
2505
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
2506
2506
  }>]>, t.TypeC<{
2507
2507
  intentType: t.LiteralC<"payment">;
2508
- onchainRequest: t.IntersectionC<[t.TypeC<{
2508
+ onchainRequest: t.TypeC<{
2509
2509
  recipients: t.ArrayC<t.TypeC<{
2510
2510
  amountSat: import("io-ts-types").BigIntFromStringC;
2511
2511
  address: t.StringC;
2512
2512
  }>>;
2513
- }>, t.PartialC<{
2514
2513
  satsPerVbyte: import("io-ts-types").BigIntFromStringC;
2515
- }>]>;
2514
+ }>;
2516
2515
  }>]>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2517
2516
  intentType: t.KeyofC<{
2518
2517
  payment: t.LiteralC<"payment">;
@@ -96,13 +96,12 @@ export declare const LightningPaymentIntent: t.UnionC<[t.IntersectionC<[t.Inters
96
96
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
97
97
  }>]>, t.TypeC<{
98
98
  intentType: t.LiteralC<"payment">;
99
- onchainRequest: t.IntersectionC<[t.TypeC<{
99
+ onchainRequest: t.TypeC<{
100
100
  recipients: t.ArrayC<t.TypeC<{
101
101
  amountSat: import("io-ts-types").BigIntFromStringC;
102
102
  address: t.StringC;
103
103
  }>>;
104
- }>, t.PartialC<{
105
104
  satsPerVbyte: import("io-ts-types").BigIntFromStringC;
106
- }>]>;
105
+ }>;
107
106
  }>]>]>;
108
107
  export type LightningPaymentIntent = t.TypeOf<typeof LightningPaymentIntent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "5.20.0",
3
+ "version": "5.21.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -9,14 +9,10 @@ export type LightningOnchainRecipient = t.TypeOf<
9
9
  typeof LightningOnchainRecipient
10
10
  >;
11
11
 
12
- export const LightningOnchainRequest = t.intersection([
13
- t.type({
14
- recipients: t.array(LightningOnchainRecipient),
15
- }),
16
- t.partial({
17
- satsPerVbyte: BigIntFromString,
18
- }),
19
- ]);
12
+ export const LightningOnchainRequest = t.type({
13
+ recipients: t.array(LightningOnchainRecipient),
14
+ satsPerVbyte: BigIntFromString,
15
+ });
20
16
  export type LightningOnchainRequest = t.TypeOf<typeof LightningOnchainRequest>;
21
17
 
22
18
  export const LightningPaymentRequest = t.intersection([