Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

chore: new group with project memberships type

Daniel Hougaard7846a8163638
diff --git a/frontend/src/hooks/api/groups/types.ts b/frontend/src/hooks/api/groups/types.ts
index 3db2357cd3..126ca56d49 100644
--- a/frontend/src/hooks/api/groups/types.ts
+++ b/frontend/src/hooks/api/groups/types.ts
@@ -4,7 +4,7 @@ import { TOrgRole } from "../roles/types";
export type TGroupOrgMembership = TGroup & {
customRole?: TOrgRole;
-}
+};
export type TGroup = {
id: string;
@@ -33,4 +33,31 @@ export type TGroupMembership = {
}[];
createdAt: string;
updatedAt: string;
-};
\ No newline at end of file
+};
+
+export type TGroupWithProjectMemberships = {
+ id: string;
+ name: string;
+ slug: string;
+ orgId: string;
+ projectMemberships: {
+ id: string;
+ project: {
+ id: string;
+ name: string;
+ slug: string;
+ };
+ roles: {
+ id: string;
+ role: string;
+ customRoleId: string | null;
+ customRoleName: string | null;
+ customRoleSlug: string | null;
+ temporaryRange: string | null;
+ temporaryMode: string | null;
+ temporaryAccessEndTime: string | null;
+ temporaryAccessStartTime: string | null;
+ isTemporary: boolean;
+ }[];
+ }[];
+};