type GenPassword = string & Brand.Brand<"GenPassword">
const GenPassword = Brand.nominal<GenPassword>()
type UserSecret = string & Brand.Brand<"UserSecret">
const UserSecret = Brand.nominal<UserSecret>()
const Secret = S.union(
S.string.pipe(S.fromBrand(GenPassword)),
S.string.pipe(S.fromBrand(UserSecret))
)
type GenPassword = string & Brand.Brand<"GenPassword">
const GenPassword = Brand.nominal<GenPassword>()
type UserSecret = string & Brand.Brand<"UserSecret">
const UserSecret = Brand.nominal<UserSecret>()
const Secret = S.union(
S.string.pipe(S.fromBrand(GenPassword)),
S.string.pipe(S.fromBrand(UserSecret))
)