Skip to content

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

schema generate

x0322050fe0a3e685d5
diff --git a/backend/src/db/schemas/pam-account-dependencies.ts b/backend/src/db/schemas/pam-account-dependencies.ts
index 4025818743..75a5f30e4a 100644
--- a/backend/src/db/schemas/pam-account-dependencies.ts
+++ b/backend/src/db/schemas/pam-account-dependencies.ts
@@ -5,6 +5,8 @@
import { z } from "zod";
+import { zodBuffer } from "@app/lib/zod";
+
import { TImmutableDBKeys } from "./models";
export const PamAccountDependenciesSchema = z.object({
@@ -18,11 +20,11 @@ export const PamAccountDependenciesSchema = z.object({
data: z.unknown(),
source: z.string(),
isEnabled: z.boolean().default(false).nullable().optional(),
+ createdAt: z.date(),
+ updatedAt: z.date(),
syncStatus: z.string().nullable().optional(),
lastSyncedAt: z.date().nullable().optional(),
- encryptedLastSyncMessage: z.any().nullable().optional(),
- createdAt: z.date(),
- updatedAt: z.date()
+ encryptedLastSyncMessage: zodBuffer.nullable().optional()
});
export type TPamAccountDependencies = z.infer<typeof PamAccountDependenciesSchema>;
diff --git a/backend/src/db/schemas/pam-resource-rotation-rules.ts b/backend/src/db/schemas/pam-resource-rotation-rules.ts
index eb1606adf9..480fa9f069 100644
--- a/backend/src/db/schemas/pam-resource-rotation-rules.ts
+++ b/backend/src/db/schemas/pam-resource-rotation-rules.ts
@@ -13,8 +13,8 @@ export const PamResourceRotationRulesSchema = z.object({
name: z.string().nullable().optional(),
namePattern: z.string(),
enabled: z.boolean().default(true),
- intervalSeconds: z.number().int().nullable().optional(),
- priority: z.number().int(),
+ intervalSeconds: z.number().nullable().optional(),
+ priority: z.number(),
createdAt: z.date(),
updatedAt: z.date()
});