Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Fix ts type linter
Fang-Pen Lin1818edcbcf76
diff --git a/backend/src/ee/services/pam-account/pam-account-service.ts b/backend/src/ee/services/pam-account/pam-account-service.tsindex fcb02099b6..eee621b4fc 100644--- a/backend/src/ee/services/pam-account/pam-account-service.ts+++ b/backend/src/ee/services/pam-account/pam-account-service.ts@@ -27,7 +27,8 @@ import { getFullPamFolderPath } from "../pam-folder/pam-folder-fns";import { TPamResourceDALFactory } from "../pam-resource/pam-resource-dal";import { PamResource } from "../pam-resource/pam-resource-enums";import { TPamAccountCredentials } from "../pam-resource/pam-resource-types";-import { TSqlResourceConnectionDetails } from "../pam-resource/shared/sql/sql-resource-types";+import { TSqlAccountCredentials, TSqlResourceConnectionDetails } from "../pam-resource/shared/sql/sql-resource-types";+import { TSSHAccountCredentials } from "../pam-resource/ssh/ssh-resource-types";import { TPamSessionDALFactory } from "../pam-session/pam-session-dal";import { PamSessionStatus } from "../pam-session/pam-session-enums";import { OrgPermissionGatewayActions, OrgPermissionSubjects } from "../permission/org-permission";@@ -606,7 +607,7 @@ export const pamAccountServiceFactory = ({});metadata = {- username: credentials.username,+ username: (credentials as TSqlAccountCredentials).username,database: connectionCredentials.database,accountName: account.name,accountPath: folderPath@@ -622,18 +623,16 @@ export const pamAccountServiceFactory = ({});metadata = {- username: credentials.username+ username: (credentials as TSSHAccountCredentials).username};}break;case PamResource.Kubernetes:- {- metadata = {- resourceName: resource.name,- accountName: account.name,- accountPath- };- }+ metadata = {+ resourceName: resource.name,+ accountName: account.name,+ accountPath+ };break;default:break;diff --git a/backend/src/ee/services/pam-session/pam-session-types.ts b/backend/src/ee/services/pam-session/pam-session-types.tsindex 893f930e51..8f202b6723 100644--- a/backend/src/ee/services/pam-session/pam-session-types.ts+++ b/backend/src/ee/services/pam-session/pam-session-types.ts@@ -1,13 +1,19 @@import { z } from "zod";-import { PamSessionCommandLogSchema, SanitizedSessionSchema, TerminalEventSchema } from "./pam-session-schemas";+import {+ HttpEventSchema,+ PamSessionCommandLogSchema,+ SanitizedSessionSchema,+ TerminalEventSchema+} from "./pam-session-schemas";export type TPamSessionCommandLog = z.infer<typeof PamSessionCommandLogSchema>;export type TTerminalEvent = z.infer<typeof TerminalEventSchema>;+export type THttpEvent = z.infer<typeof HttpEventSchema>;export type TPamSanitizedSession = z.infer<typeof SanitizedSessionSchema>;// DTOsexport type TUpdateSessionLogsDTO = {sessionId: string;- logs: (TPamSessionCommandLog | TTerminalEvent)[];+ logs: (TPamSessionCommandLog | TTerminalEvent | THttpEvent)[];};