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: outdated migration schemas
varonix081a7650b1ae8
diff --git a/backend/src/db/schemas/certificate-requests.ts b/backend/src/db/schemas/certificate-requests.tsindex c9a80c4f43..697e1508ed 100644--- a/backend/src/db/schemas/certificate-requests.ts+++ b/backend/src/db/schemas/certificate-requests.ts@@ -40,8 +40,8 @@ export const CertificateRequestsSchema = z.object({state: z.string().nullable().optional(),locality: z.string().nullable().optional(),encryptedPrivateKey: zodBuffer.nullable().optional(),- applicationId: z.string().uuid().nullable().optional(),- pendingMessage: z.string().nullable().optional()+ pendingMessage: z.string().nullable().optional(),+ applicationId: z.string().uuid().nullable().optional()});export type TCertificateRequests = z.infer<typeof CertificateRequestsSchema>;diff --git a/backend/src/db/schemas/organizations.ts b/backend/src/db/schemas/organizations.tsindex 33fc6eff09..76ad1aa180 100644--- a/backend/src/db/schemas/organizations.ts+++ b/backend/src/db/schemas/organizations.ts@@ -43,8 +43,7 @@ export const OrganizationsSchema = z.object({rootOrgId: z.string().uuid().nullable().optional(),blockDuplicateSecretSyncDestinations: z.boolean().default(false),secretShareBrandConfig: z.unknown().nullable().optional(),- defaultCertManagerProjectId: z.string().nullable().optional(),- allowCrossProjectSecretSharing: z.boolean().default(false)+ defaultCertManagerProjectId: z.string().nullable().optional()});export type TOrganizations = z.infer<typeof OrganizationsSchema>;diff --git a/backend/src/db/schemas/pam-sessions.ts b/backend/src/db/schemas/pam-sessions.tsindex 30a52501fb..03657bdc0f 100644--- a/backend/src/db/schemas/pam-sessions.ts+++ b/backend/src/db/schemas/pam-sessions.ts@@ -36,7 +36,6 @@ export const PamSessionsSchema = z.object({reason: z.string().nullable().optional(),encryptedSessionKey: zodBuffer.nullable().optional(),gatewayUploadTokenHash: zodBuffer.nullable().optional(),- selectedResourceId: z.string().uuid().nullable().optional(),gatewayId: z.string().uuid().nullable().optional()});diff --git a/backend/src/db/schemas/project-folder-grants.ts b/backend/src/db/schemas/project-folder-grants.tsdeleted file mode 100644index 141072ad6e..0000000000--- a/backend/src/db/schemas/project-folder-grants.ts+++ /dev/null@@ -1,21 +0,0 @@-// Code generated by automation script, DO NOT EDIT.-// Automated by pulling database and generating zod schema-// To update. Just run npm run generate:schema-// Written by akhilmhdh.--import { z } from "zod";--import { TImmutableDBKeys } from "./models";--export const ProjectFolderGrantsSchema = z.object({- id: z.string().uuid(),- sourceProjectId: z.string(),- sourceFolderId: z.string().uuid(),- targetProjectId: z.string(),- createdAt: z.date(),- updatedAt: z.date()-});--export type TProjectFolderGrants = z.infer<typeof ProjectFolderGrantsSchema>;-export type TProjectFolderGrantsInsert = Omit<z.input<typeof ProjectFolderGrantsSchema>, TImmutableDBKeys>;-export type TProjectFolderGrantsUpdate = Partial<Omit<z.input<typeof ProjectFolderGrantsSchema>, TImmutableDBKeys>>;