Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Remove the “UNKNOWN” status from PrincipalStatus

天舟dfbf4054b0fe
diff --git a/frontend/src/types/common.ts b/frontend/src/types/common.ts
index d70bd7704d..a081ac1a69 100644
--- a/frontend/src/types/common.ts
+++ b/frontend/src/types/common.ts
@@ -116,7 +116,7 @@ export const unknown = (
id: UNKNOWN_ID,
createdTs: 0,
updatedTs: 0,
- status: "UNKNOWN",
+ status: "ACTIVE",
type: "END_USER",
name: "<<Unknown principal>>",
email: "",
@@ -354,7 +354,7 @@ export const empty = (
id: EMPTY_ID,
createdTs: 0,
updatedTs: 0,
- status: "UNKNOWN",
+ status: "ACTIVE",
type: "END_USER",
name: "",
email: "",
diff --git a/frontend/src/types/principal.ts b/frontend/src/types/principal.ts
index 7bd8765a87..13b249c37f 100644
--- a/frontend/src/types/principal.ts
+++ b/frontend/src/types/principal.ts
@@ -5,7 +5,7 @@ import { PrincipalId } from "./id";
import { RoleType } from "./member";
// we may support application/bot identity.
-export type PrincipalStatus = "UNKNOWN" | "INVITED" | "ACTIVE";
+export type PrincipalStatus = "INVITED" | "ACTIVE";
export type PrincipalType = "END_USER" | "BOT";