@bitgo/public-types
Advanced tools
Comparing version 2.33.0 to 2.33.1
import * as t from "io-ts"; | ||
export declare const AuthBroadcastMessage: t.IntersectionC<[t.TypeC<{ | ||
payload: t.TypeC<{ | ||
message: t.StringC; | ||
signature: t.StringC; | ||
message: import("io-ts-types").NonEmptyStringC; | ||
signature: import("io-ts-types").NonEmptyStringC; | ||
}>; | ||
from: t.UnionC<[t.UnionC<[t.LiteralC<0>, t.LiteralC<1>, t.LiteralC<2>]>, t.Type<0 | 2 | 1, string, unknown>]>; | ||
}>, t.PartialC<{ | ||
signatureR: t.StringC; | ||
signatureR: t.TypeC<{ | ||
message: import("io-ts-types").NonEmptyStringC; | ||
signature: import("io-ts-types").NonEmptyStringC; | ||
}>; | ||
}>]>; | ||
export type AuthBroadcastMessage = t.TypeOf<typeof AuthBroadcastMessage>; |
@@ -28,6 +28,7 @@ "use strict"; | ||
const t = __importStar(require("io-ts")); | ||
const io_ts_types_1 = require("io-ts-types"); | ||
const common_1 = require("../../common"); | ||
const AuthMessage = t.type({ | ||
message: t.string, | ||
signature: t.string, | ||
message: io_ts_types_1.NonEmptyString, | ||
signature: io_ts_types_1.NonEmptyString, | ||
}); | ||
@@ -40,5 +41,5 @@ exports.AuthBroadcastMessage = t.intersection([ | ||
t.partial({ | ||
signatureR: t.string, | ||
signatureR: AuthMessage, | ||
}), | ||
]); | ||
//# sourceMappingURL=broadcast.js.map |
{ | ||
"name": "@bitgo/public-types", | ||
"version": "2.33.0", | ||
"version": "2.33.1", | ||
"description": "Collection of types exposed externally as part of the BitGo public API", | ||
@@ -5,0 +5,0 @@ "license": "UNLICENSED", |
import * as t from "io-ts"; | ||
import { NonEmptyString } from "io-ts-types"; | ||
@@ -6,4 +7,4 @@ import { MPCv2PartyFromStringOrNumber } from "../../common"; | ||
const AuthMessage = t.type({ | ||
message: t.string, | ||
signature: t.string, | ||
message: NonEmptyString, | ||
signature: NonEmptyString, | ||
}); | ||
@@ -19,3 +20,3 @@ | ||
t.partial({ | ||
signatureR: t.string, | ||
signatureR: AuthMessage, | ||
}), | ||
@@ -22,0 +23,0 @@ ]); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
326773
6251