Skip to content

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

fix: remove unused secrety event type

adilsond4b94bb4040f
diff --git a/backend/src/services/webhook/webhook-types.ts b/backend/src/services/webhook/webhook-types.ts
index cc7387991e..587058d4e1 100644
--- a/backend/src/services/webhook/webhook-types.ts
+++ b/backend/src/services/webhook/webhook-types.ts
@@ -40,7 +40,6 @@ export enum WebhookType {
export enum WebhookEvents {
SecretModified = "secrets.modified",
- SecretReminderExpired = "secrets.reminder-expired",
SecretRotationFailed = "secrets.rotation-failed",
TestEvent = "test"
}
@@ -58,20 +57,6 @@ type TWebhookSecretModifiedEventPayload = {
};
};
-type TWebhookSecretReminderEventPayload = {
- type: WebhookEvents.SecretReminderExpired;
- payload: {
- projectName?: string;
- projectId: string;
- environment: string;
- secretPath?: string;
- type?: string | null;
- secretName: string;
- secretId: string;
- reminderNote?: string | null;
- };
-};
-
type TWebhookSecretRotationFailedEventPayload = {
type: WebhookEvents.SecretRotationFailed;
@@ -87,7 +72,4 @@ type TWebhookSecretRotationFailedEventPayload = {
};
};
-export type TWebhookPayloads =
- | TWebhookSecretModifiedEventPayload
- | TWebhookSecretReminderEventPayload
- | TWebhookSecretRotationFailedEventPayload;
+export type TWebhookPayloads = TWebhookSecretModifiedEventPayload | TWebhookSecretRotationFailedEventPayload;