mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 05:19:49 +00:00
14 lines
591 B
TypeScript
14 lines
591 B
TypeScript
import { z } from "zod";
|
|
|
|
import { MsSqlCredentialsRotationSchema } from "@app/components/secret-rotations-v2/forms/schemas/mssql-credentials-rotation-schema";
|
|
import { PostgresCredentialsRotationSchema } from "@app/components/secret-rotations-v2/forms/schemas/postgres-credentials-rotation-schema";
|
|
|
|
const SecretRotationUnionSchema = z.discriminatedUnion("type", [
|
|
PostgresCredentialsRotationSchema,
|
|
MsSqlCredentialsRotationSchema
|
|
]);
|
|
|
|
export const SecretRotationV2FormSchema = SecretRotationUnionSchema;
|
|
|
|
export type TSecretRotationV2Form = z.infer<typeof SecretRotationV2FormSchema>;
|