Skip to content

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

585 B
Raw Blame
import { z } from "zod";

import { BaseSecretSyncSchema } from "@app/components/secret-syncs/forms/schemas/base-secret-sync-schema";
import { SecretSync } from "@app/hooks/api/secretSyncs/enums";

export const DaytonaSyncDestinationSchema = BaseSecretSyncSchema().merge(
  z.object({
    destination: z.literal(SecretSync.Daytona),
    // Daytona has no destination fields, so nothing seeds this object. Without a default it stays
    // undefined and the destination step fails validation with no field to surface the error on.
    destinationConfig: z.object({}).default({})
  })
);