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 typo
x032205c747bc479e36
diff --git a/backend/src/ee/routes/v1/pam-account-routers/index.ts b/backend/src/ee/routes/v1/pam-account-routers/index.tsindex 9c7cf161d6..3ed608f85c 100644--- a/backend/src/ee/routes/v1/pam-account-routers/index.ts+++ b/backend/src/ee/routes/v1/pam-account-routers/index.ts@@ -25,11 +25,11 @@ import {UpdateSSHAccountSchema} from "@app/ee/services/pam-resource/ssh/ssh-resource-schemas";-import { registerPamResourceEndpoints } from "./pam-account-endpoints";+import { registerPamAccountEndpoints } from "./pam-account-endpoints";export const PAM_ACCOUNT_REGISTER_ROUTER_MAP: Record<PamResource, (server: FastifyZodProvider) => Promise<void>> = {[PamResource.Postgres]: async (server: FastifyZodProvider) => {- registerPamResourceEndpoints({+ registerPamAccountEndpoints({server,resourceType: PamResource.Postgres,accountResponseSchema: SanitizedPostgresAccountWithResourceSchema,@@ -38,7 +38,7 @@ export const PAM_ACCOUNT_REGISTER_ROUTER_MAP: Record<PamResource, (server: Fasti});},[PamResource.MySQL]: async (server: FastifyZodProvider) => {- registerPamResourceEndpoints({+ registerPamAccountEndpoints({server,resourceType: PamResource.MySQL,accountResponseSchema: SanitizedMySQLAccountWithResourceSchema,@@ -47,7 +47,7 @@ export const PAM_ACCOUNT_REGISTER_ROUTER_MAP: Record<PamResource, (server: Fasti});},[PamResource.SSH]: async (server: FastifyZodProvider) => {- registerPamResourceEndpoints({+ registerPamAccountEndpoints({server,resourceType: PamResource.SSH,accountResponseSchema: SanitizedSSHAccountWithResourceSchema,@@ -56,7 +56,7 @@ export const PAM_ACCOUNT_REGISTER_ROUTER_MAP: Record<PamResource, (server: Fasti});},[PamResource.Kubernetes]: async (server: FastifyZodProvider) => {- registerPamResourceEndpoints({+ registerPamAccountEndpoints({server,resourceType: PamResource.Kubernetes,accountResponseSchema: SanitizedKubernetesAccountWithResourceSchema,@@ -65,7 +65,7 @@ export const PAM_ACCOUNT_REGISTER_ROUTER_MAP: Record<PamResource, (server: Fasti});},[PamResource.AwsIam]: async (server: FastifyZodProvider) => {- registerPamResourceEndpoints({+ registerPamAccountEndpoints({server,resourceType: PamResource.AwsIam,accountResponseSchema: SanitizedAwsIamAccountWithResourceSchema,diff --git a/backend/src/ee/routes/v1/pam-account-routers/pam-account-endpoints.ts b/backend/src/ee/routes/v1/pam-account-routers/pam-account-endpoints.tsindex 4043c3cc83..07a817c618 100644--- a/backend/src/ee/routes/v1/pam-account-routers/pam-account-endpoints.ts+++ b/backend/src/ee/routes/v1/pam-account-routers/pam-account-endpoints.ts@@ -7,7 +7,7 @@ import { writeLimit } from "@app/server/config/rateLimiter";import { verifyAuth } from "@app/server/plugins/auth/verify-auth";import { AuthMode } from "@app/services/auth/auth-type";-export const registerPamResourceEndpoints = <C extends TPamAccount>({+export const registerPamAccountEndpoints = <C extends TPamAccount>({server,resourceType,createAccountSchema,