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
Schemas
Daniel Hougaard2a3f136b68f6
diff --git a/backend/src/db/schemas/identity-access-tokens.ts b/backend/src/db/schemas/identity-access-tokens.tsindex 62f74f4aa0..d36291ab9c 100644--- a/backend/src/db/schemas/identity-access-tokens.ts+++ b/backend/src/db/schemas/identity-access-tokens.ts@@ -8,7 +8,7 @@ import { z } from "zod";import { TImmutableDBKeys } from "./models";export const IdentityAccessTokensSchema = z.object({- id: z.string().uuid(),+ id: z.string(),accessTokenTTL: z.coerce.number().default(2592000),accessTokenMaxTTL: z.coerce.number().default(2592000),accessTokenNumUses: z.coerce.number().default(0),diff --git a/backend/src/db/schemas/organizations.ts b/backend/src/db/schemas/organizations.tsindex e0f70d1c03..539217c005 100644--- a/backend/src/db/schemas/organizations.ts+++ b/backend/src/db/schemas/organizations.ts@@ -13,7 +13,7 @@ export const OrganizationsSchema = z.object({customerId: z.string().nullable().optional(),slug: z.string(),createdAt: z.date(),- updatedAt: z.date()+ updatedAt: z.date(),});export type TOrganizations = z.infer<typeof OrganizationsSchema>;diff --git a/backend/src/db/schemas/secret-approval-requests-secrets.ts b/backend/src/db/schemas/secret-approval-requests-secrets.tsindex 2fe6c66920..db98bda17f 100644--- a/backend/src/db/schemas/secret-approval-requests-secrets.ts+++ b/backend/src/db/schemas/secret-approval-requests-secrets.ts@@ -10,7 +10,7 @@ import { TImmutableDBKeys } from "./models";export const SecretApprovalRequestsSecretsSchema = z.object({id: z.string().uuid(),version: z.number().default(1).nullable().optional(),- secretBlindIndex: z.string(),+ secretBlindIndex: z.string().nullable().optional(),secretKeyCiphertext: z.string(),secretKeyIV: z.string(),secretKeyTag: z.string(),diff --git a/backend/src/db/schemas/user-encryption-keys.ts b/backend/src/db/schemas/user-encryption-keys.tsindex 41a7ae57dd..938b93aafd 100644--- a/backend/src/db/schemas/user-encryption-keys.ts+++ b/backend/src/db/schemas/user-encryption-keys.ts@@ -12,9 +12,9 @@ export const UserEncryptionKeysSchema = z.object({clientPublicKey: z.string().nullable().optional(),serverPrivateKey: z.string().nullable().optional(),encryptionVersion: z.number().default(2).nullable().optional(),- protectedKey: z.string().nullable(),- protectedKeyIV: z.string().nullable(),- protectedKeyTag: z.string().nullable(),+ protectedKey: z.string().nullable().optional(),+ protectedKeyIV: z.string().nullable().optional(),+ protectedKeyTag: z.string().nullable().optional(),publicKey: z.string(),encryptedPrivateKey: z.string(),iv: z.string(),