Skip to content

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

845 B
Raw Blame
import {
  CreateDbtServiceTokenRotationSchema,
  DbtServiceTokenRotationGeneratedCredentialsSchema,
  DbtServiceTokenRotationSchema,
  UpdateDbtServiceTokenRotationSchema
} from "@app/ee/services/secret-rotation-v2/dbt-service-token";
import { SecretRotation } from "@app/ee/services/secret-rotation-v2/secret-rotation-v2-enums";

import { registerSecretRotationEndpoints } from "./secret-rotation-v2-endpoints";

export const registerDbtServiceTokenRotationRouter = async (server: FastifyZodProvider) =>
  registerSecretRotationEndpoints({
    type: SecretRotation.DbtServiceToken,
    server,
    responseSchema: DbtServiceTokenRotationSchema,
    createSchema: CreateDbtServiceTokenRotationSchema,
    updateSchema: UpdateDbtServiceTokenRotationSchema,
    generatedCredentialsSchema: DbtServiceTokenRotationGeneratedCredentialsSchema
  });