App Connection Credential Rotation Schemas (credential-rotation/app-connection-credential-rotation-schemas.ts)

infisical · backend/src/services/app-connection/credential-rotation/app-connection-credential-rotation-schemas.ts · typescript · MIT
auth, security, fw:zod, tag:validation

Zod validation schemas for configuring app connection credential rotation intervals and UTC times. Reuse for API request validation.

// Source: https://github.com/Infisical/infisical | License: MIT | Copyright 2022 Infisical Inc
// Provided via justclaw.it.com; keep this notice with the code.
import { z } from "zod";

export const AppConnectionCredentialRotationRotateAtUtcSchema = z.object({
  hours: z.number().int().min(0).max(23).describe("The hour (0-23) at which to rotate (UTC timezone)."),
  minutes: z.number().int().min(0).max(59).describe("The minute (0-59) at which to rotate (UTC timezone).")
});

export const CreateAppConnectionCredentialRotationSchema = z.object({
  rotationInterval: z.number().int().min(1).max(365).describe("The interval in days between credential rotations."),
  rotateAtUtc: AppConnectionCredentialRotationRotateAtUtcSchema
});

export const UpdateAppConnectionCredentialRotationSchema = z.obj

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key