Skip to content

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

Feat: New types for imported folders

Daniel Hougaard88e609cb661a
diff --git a/frontend/src/hooks/api/secretFolders/types.ts b/frontend/src/hooks/api/secretFolders/types.ts
index eac2023895..e676fcc8eb 100644
--- a/frontend/src/hooks/api/secretFolders/types.ts
+++ b/frontend/src/hooks/api/secretFolders/types.ts
@@ -3,6 +3,24 @@ export type TSecretFolder = {
name: string;
};
+export type TImportedSecretFolder = {
+ id: string;
+ folderId: string;
+ importEnv: {
+ id: string;
+ name: string;
+ slug: string;
+ };
+ importPath: string;
+
+ // ... It got more fields, but we won't need them.
+};
+
+export type TFetchProjectFoldersResponse = {
+ folders: TSecretFolder[];
+ importedFolders: TImportedSecretFolder[];
+};
+
export type TGetProjectFoldersDTO = {
projectId: string;
environment: string;