@bitgo/public-types 2.23.0 → 2.24.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,3 +4,4 @@ export * from "./webhook";
4
4
  export * from "./mpcv2";
5
5
  export * from "./keyGen";
6
6
  export * from "./wallet";
7
+ export * from "./tss";
@@ -20,4 +20,5 @@ __exportStar(require("./webhook"), exports);
20
20
  __exportStar(require("./mpcv2"), exports);
21
21
  __exportStar(require("./keyGen"), exports);
22
22
  __exportStar(require("./wallet"), exports);
23
+ __exportStar(require("./tss"), exports);
23
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,uDAAqC;AACrC,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,uDAAqC;AACrC,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,wCAAsB"}
@@ -3,17 +3,21 @@ export declare const TssWalletCreationSettings: t.PartialC<{
3
3
  multiSigTypeVersion: t.KeyofC<typeof import("../wallet").MultisigTypeVersionEnum>;
4
4
  }>;
5
5
  export type TssWalletCreationSettings = t.TypeOf<typeof TssWalletCreationSettings>;
6
- export declare const TssCoinSetting: t.TypeC<{
6
+ export declare const TssCoinSetting: t.IntersectionC<[t.TypeC<{
7
7
  walletCreationSettings: t.PartialC<{
8
8
  multiSigTypeVersion: t.KeyofC<typeof import("../wallet").MultisigTypeVersionEnum>;
9
9
  }>;
10
- }>;
10
+ }>, t.PartialC<{
11
+ canMigrateToMPCv2: t.BooleanC;
12
+ }>]>;
11
13
  export type TssCoinSetting = t.TypeOf<typeof TssCoinSetting>;
12
14
  export declare const TssSettings: t.TypeC<{
13
- coinSettings: t.RecordC<t.StringC, t.TypeC<{
15
+ coinSettings: t.RecordC<t.StringC, t.IntersectionC<[t.TypeC<{
14
16
  walletCreationSettings: t.PartialC<{
15
17
  multiSigTypeVersion: t.KeyofC<typeof import("../wallet").MultisigTypeVersionEnum>;
16
18
  }>;
17
- }>>;
19
+ }>, t.PartialC<{
20
+ canMigrateToMPCv2: t.BooleanC;
21
+ }>]>>;
18
22
  }>;
19
23
  export type TssSettings = t.TypeOf<typeof TssSettings>;
@@ -29,9 +29,12 @@ const wallet_1 = require("../wallet");
29
29
  exports.TssWalletCreationSettings = t.partial({
30
30
  multiSigTypeVersion: wallet_1.MultisigTypeVersion,
31
31
  });
32
- exports.TssCoinSetting = t.type({
33
- walletCreationSettings: exports.TssWalletCreationSettings,
34
- });
32
+ exports.TssCoinSetting = t.intersection([
33
+ t.type({ walletCreationSettings: exports.TssWalletCreationSettings }),
34
+ t.partial({
35
+ canMigrateToMPCv2: t.boolean,
36
+ }),
37
+ ]);
35
38
  exports.TssSettings = t.type({
36
39
  coinSettings: t.record(t.string, exports.TssCoinSetting),
37
40
  });
@@ -1 +1 @@
1
- {"version":3,"file":"tssSettings.js","sourceRoot":"","sources":["../../../../src/schema/tss/tssSettings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,sCAAgD;AAEnC,QAAA,yBAAyB,GAAG,CAAC,CAAC,OAAO,CAAC;IACjD,mBAAmB,EAAE,4BAAmB;CACzC,CAAC,CAAC;AAMU,QAAA,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC;IACnC,sBAAsB,EAAE,iCAAyB;CAClD,CAAC,CAAC;AAIU,QAAA,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC;IAChC,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,sBAAc,CAAC;CACjD,CAAC,CAAC"}
1
+ {"version":3,"file":"tssSettings.js","sourceRoot":"","sources":["../../../../src/schema/tss/tssSettings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,sCAAgD;AAEnC,QAAA,yBAAyB,GAAG,CAAC,CAAC,OAAO,CAAC;IACjD,mBAAmB,EAAE,4BAAmB;CACzC,CAAC,CAAC;AAMU,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,CAAC,CAAC,IAAI,CAAC,EAAE,sBAAsB,EAAE,iCAAyB,EAAE,CAAC;IAC7D,CAAC,CAAC,OAAO,CAAC;QACR,iBAAiB,EAAE,CAAC,CAAC,OAAO;KAC7B,CAAC;CACH,CAAC,CAAC;AAIU,QAAA,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC;IAChC,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,sBAAc,CAAC;CACjD,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "2.23.0",
3
+ "version": "2.24.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -4,3 +4,4 @@ export * from "./webhook";
4
4
  export * from "./mpcv2";
5
5
  export * from "./keyGen";
6
6
  export * from "./wallet";
7
+ export * from "./tss";
@@ -9,9 +9,12 @@ export type TssWalletCreationSettings = t.TypeOf<
9
9
  typeof TssWalletCreationSettings
10
10
  >;
11
11
 
12
- export const TssCoinSetting = t.type({
13
- walletCreationSettings: TssWalletCreationSettings,
14
- });
12
+ export const TssCoinSetting = t.intersection([
13
+ t.type({ walletCreationSettings: TssWalletCreationSettings }),
14
+ t.partial({
15
+ canMigrateToMPCv2: t.boolean,
16
+ }),
17
+ ]);
15
18
 
16
19
  export type TssCoinSetting = t.TypeOf<typeof TssCoinSetting>;
17
20