Skip to content

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

857 B
Raw Blame
import {
  CreateOpenRouterApiKeyRotationSchema,
  OpenRouterApiKeyRotationGeneratedCredentialsSchema,
  OpenRouterApiKeyRotationSchema,
  UpdateOpenRouterApiKeyRotationSchema
} from "@app/ee/services/secret-rotation-v2/open-router-api-key";
import { SecretRotation } from "@app/ee/services/secret-rotation-v2/secret-rotation-v2-enums";

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

export const registerOpenRouterApiKeyRotationRouter = async (server: FastifyZodProvider) =>
  registerSecretRotationEndpoints({
    type: SecretRotation.OpenRouterApiKey,
    server,
    responseSchema: OpenRouterApiKeyRotationSchema,
    createSchema: CreateOpenRouterApiKeyRotationSchema,
    updateSchema: UpdateOpenRouterApiKeyRotationSchema,
    generatedCredentialsSchema: OpenRouterApiKeyRotationGeneratedCredentialsSchema
  });