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(pam): use z.infer type for settingsOverrides, remove nullable
bernie-g0b5ace80cfa0
diff --git a/backend/src/ee/services/pam-account-template/pam-account-template-schemas.ts b/backend/src/ee/services/pam-account-template/pam-account-template-schemas.tsindex db9a9a6740..6a7e38ff2b 100644--- a/backend/src/ee/services/pam-account-template/pam-account-template-schemas.ts+++ b/backend/src/ee/services/pam-account-template/pam-account-template-schemas.ts@@ -32,4 +32,5 @@ export const PamTemplateSettingsSchema = z.object({});export type TPamTemplateSettings = z.infer<typeof PamTemplateSettingsSchema>;+export type TPamAccountSettingsOverrides = z.infer<typeof PamAccountSettingsOverridesSchema>;export type TPamPasswordConstraints = z.infer<typeof PamPasswordConstraintsSchema>;diff --git a/backend/src/ee/services/pam-account/pam-account-types.ts b/backend/src/ee/services/pam-account/pam-account-types.tsindex 3586e73064..a36aa80ee4 100644--- a/backend/src/ee/services/pam-account/pam-account-types.ts+++ b/backend/src/ee/services/pam-account/pam-account-types.ts@@ -1,4 +1,5 @@import { PamAccountType } from "../pam/pam-enums";+import { TPamAccountSettingsOverrides } from "../pam-account-template/pam-account-template-schemas";export type TCreatePamAccountDTO = {projectId: string;@@ -12,7 +13,7 @@ export type TCreatePamAccountDTO = {gatewayId?: string;gatewayPoolId?: string;recordingConnectionId?: string;- settingsOverrides?: { recordingS3Config?: { bucket: string; region: string; keyPrefix?: string } } | null;+ settingsOverrides?: TPamAccountSettingsOverrides;};export type TUpdatePamAccountDTO = {@@ -28,7 +29,7 @@ export type TUpdatePamAccountDTO = {gatewayId?: string | null;gatewayPoolId?: string | null;recordingConnectionId?: string | null;- settingsOverrides?: { recordingS3Config?: { bucket: string; region: string; keyPrefix?: string } } | null;+ settingsOverrides?: TPamAccountSettingsOverrides;};export type TDeletePamAccountDTO = {