feat: added support for getting imported secrets in v3 getSecret api

This commit is contained in:
Akhil Mohan
2023-09-26 12:25:23 +05:30
parent a255af6ad8
commit 4c1324baa9
5 changed files with 79 additions and 9 deletions
+10 -2
View File
@@ -244,7 +244,11 @@ export const GetSecretByNameRawV3 = z.object({
workspaceId: z.string().trim(),
environment: z.string().trim(),
secretPath: z.string().trim().default("/"),
type: z.enum([SECRET_SHARED, SECRET_PERSONAL]).optional()
type: z.enum([SECRET_SHARED, SECRET_PERSONAL]).optional(),
include_imports: z
.enum(["true", "false"])
.default("true")
.transform((value) => value === "true")
})
});
@@ -305,7 +309,11 @@ export const GetSecretByNameV3 = z.object({
workspaceId: z.string().trim(),
environment: z.string().trim(),
secretPath: z.string().trim().default("/"),
type: z.enum([SECRET_SHARED, SECRET_PERSONAL]).optional()
type: z.enum([SECRET_SHARED, SECRET_PERSONAL]).optional(),
include_imports: z
.enum(["true", "false"])
.default("true")
.transform((value) => value === "true")
}),
params: z.object({
secretName: z.string().trim()