Skip to content

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

Secret reminder types

Daniel Hougaard3b39e38c899e
diff --git a/backend-pg/src/services/secret-reminder/secret-reminder-types.ts b/backend-pg/src/services/secret-reminder/secret-reminder-types.ts
new file mode 100644
index 0000000000..dd4abac64e
--- /dev/null
+++ b/backend-pg/src/services/secret-reminder/secret-reminder-types.ts
@@ -0,0 +1,25 @@
+import { TSecrets } from "@app/db/schemas";
+
+type TPartialSecret = Pick<TSecrets, "id" | "secretReminderRepeatDays" | "secretReminderNote">;
+
+type TPartialInputSecret = Pick<
+ TSecrets,
+ "type" | "secretReminderNote" | "secretReminderRepeatDays" | "id"
+>;
+
+export type TCreateSecretReminderDTO = {
+ oldSecret: TPartialSecret;
+ newSecret: TPartialSecret;
+ projectId: string;
+};
+
+export type TDeleteSecretReminderDTO = {
+ secretId: string;
+ repeatDays: number;
+};
+
+export type THandleReminderDTO = {
+ newSecret: TPartialInputSecret;
+ oldSecret: TPartialSecret;
+ projectId: string;
+};