mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
[PM-10107] evaluate the override password type policy (#10277)
This commit is contained in:
5
libs/tools/generator/core/src/data/generator-types.ts
Normal file
5
libs/tools/generator/core/src/data/generator-types.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
/** Types of passwords that may be configured by the password generator */
|
||||
export const PasswordTypes = Object.freeze(["password", "passphrase"] as const);
|
||||
|
||||
/** Types of generators that may be configured by the password generator */
|
||||
export const GeneratorTypes = Object.freeze([...PasswordTypes, "username"] as const);
|
||||
@@ -17,3 +17,4 @@ export * from "./forwarders";
|
||||
export * from "./integrations";
|
||||
export * from "./policies";
|
||||
export * from "./username-digits";
|
||||
export * from "./generator-types";
|
||||
|
||||
@@ -1,2 +1,7 @@
|
||||
import { GeneratorTypes, PasswordTypes } from "../data/generator-types";
|
||||
|
||||
/** The kind of credential being generated. */
|
||||
export type GeneratorType = "password" | "passphrase" | "username";
|
||||
export type GeneratorType = (typeof GeneratorTypes)[number];
|
||||
|
||||
/** The kinds of passwords that can be generated. */
|
||||
export type PasswordType = (typeof PasswordTypes)[number];
|
||||
|
||||
Reference in New Issue
Block a user