Skip to content

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

fix: use SecretSharingAccessType enum for accessType per Greptile review

Devin AI8bbaba4a5362
diff --git a/backend/src/services/telemetry/telemetry-types.ts b/backend/src/services/telemetry/telemetry-types.ts
index f421d0a913..2e3b8d5ede 100644
--- a/backend/src/services/telemetry/telemetry-types.ts
+++ b/backend/src/services/telemetry/telemetry-types.ts
@@ -11,7 +11,7 @@ import {
UnknownUserActor,
UserActor
} from "@app/ee/services/audit-log/audit-log-types";
-import { EnforcementLevel } from "@app/lib/types";
+import { EnforcementLevel, SecretSharingAccessType } from "@app/lib/types";
import { WebhookType } from "@app/services/webhook/webhook-types";
export enum PostHogEventTypes {
@@ -408,7 +408,7 @@ export type TSecretSharedEvent = {
event: PostHogEventTypes.SecretShared;
properties: {
organizationId: string;
- accessType: string;
+ accessType: SecretSharingAccessType;
expiresAt: string;
hasPassword: boolean;
};
@@ -419,7 +419,7 @@ export type TSharedSecretViewedEvent = {
properties: {
organizationId?: string;
sharedSecretId: string;
- accessType: string;
+ accessType: SecretSharingAccessType;
};
};