mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 22:27:48 +00:00
Update secrets.ts
This commit is contained in:
@@ -10,7 +10,6 @@ import { AuthData } from "../interfaces/middleware";
|
|||||||
import { ActorType } from "../ee/models";
|
import { ActorType } from "../ee/models";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { SECRET_PERSONAL, SECRET_SHARED } from "../variables";
|
import { SECRET_PERSONAL, SECRET_SHARED } from "../variables";
|
||||||
import { isValidCron } from "cron-validator";
|
|
||||||
/**
|
/**
|
||||||
* Validate authenticated clients for secrets with id [secretId] based
|
* Validate authenticated clients for secrets with id [secretId] based
|
||||||
* on any known permissions.
|
* on any known permissions.
|
||||||
@@ -363,12 +362,7 @@ export const UpdateSecretByNameV3 = z.object({
|
|||||||
secretCommentIV: z.string().trim().optional(),
|
secretCommentIV: z.string().trim().optional(),
|
||||||
secretCommentTag: z.string().trim().optional(),
|
secretCommentTag: z.string().trim().optional(),
|
||||||
|
|
||||||
secretReminderCron: z
|
secretReminderRepeatDays: z.number().min(1).max(365).optional().nullable(),
|
||||||
.string()
|
|
||||||
.trim()
|
|
||||||
.optional()
|
|
||||||
.nullable()
|
|
||||||
.refine((val) => val === null || val === undefined || (val && isValidCron(val))),
|
|
||||||
secretReminderNote: z.string().trim().nullable().optional(),
|
secretReminderNote: z.string().trim().nullable().optional(),
|
||||||
|
|
||||||
tags: z.string().array().optional(),
|
tags: z.string().array().optional(),
|
||||||
|
|||||||
Reference in New Issue
Block a user