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
// 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 { zodBuffer } from "@app/lib/zod";
import { TImmutableDBKeys } from "./models";
export const PamSessionEventChunksSchema = z.object({
id: z.string().uuid(),
sessionId: z.string().uuid(),
chunkIndex: z.number(),
startElapsedMs: z.coerce.number(),
endElapsedMs: z.coerce.number(),
storageBackend: z.string(),
encryptedEventsBlob: zodBuffer.nullable().optional(),
externalChunkObjectKey: z.string().nullable().optional(),
chunkSizeBytes: z.coerce.number().nullable().optional(),
externalKeyframeObjectKey: z.string().nullable().optional(),
keyframeSizeBytes: z.coerce.number().nullable().optional(),
ciphertextSha256: zodBuffer,
ciphertextBytes: z.coerce.number(),
iv: zodBuffer,
createdAt: z.date(),
updatedAt: z.date()
});
export type TPamSessionEventChunks = z.infer<typeof PamSessionEventChunksSchema>;
export type TPamSessionEventChunksInsert = Omit<z.input<typeof PamSessionEventChunksSchema>, TImmutableDBKeys>;
export type TPamSessionEventChunksUpdate = Partial<Omit<z.input<typeof PamSessionEventChunksSchema>, TImmutableDBKeys>>;