mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 09:26:47 +00:00
fix: service token creation
This commit is contained in:
@@ -94,7 +94,7 @@ export const registerServiceTokenRouter = async (server: FastifyZodProvider) =>
|
|||||||
iv: z.string().trim(),
|
iv: z.string().trim(),
|
||||||
tag: z.string().trim(),
|
tag: z.string().trim(),
|
||||||
expiresIn: z.number().nullable(),
|
expiresIn: z.number().nullable(),
|
||||||
permissions: z.enum(["read", "write"]).array()
|
permissions: z.enum(["read", "write", "readValue"]).array()
|
||||||
}),
|
}),
|
||||||
response: {
|
response: {
|
||||||
200: z.object({
|
200: z.object({
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export type TCreateServiceTokenDTO = {
|
|||||||
iv: string;
|
iv: string;
|
||||||
tag: string;
|
tag: string;
|
||||||
expiresIn?: number | null;
|
expiresIn?: number | null;
|
||||||
permissions: ("read" | "write")[];
|
permissions: ("read" | "write" | "readValue")[];
|
||||||
} & TProjectPermission;
|
} & TProjectPermission;
|
||||||
|
|
||||||
export type TGetServiceTokenInfoDTO = Omit<TProjectPermission, "projectId">;
|
export type TGetServiceTokenInfoDTO = Omit<TProjectPermission, "projectId">;
|
||||||
|
|||||||
Reference in New Issue
Block a user