From 1ac8ddbd929a989210a7c6c7b53f5399227bf472 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard <62331820+DanielHougaard@users.noreply.github.com> Date: Fri, 15 Mar 2024 17:23:41 +0100 Subject: [PATCH] Fix: Rebase errors --- backend/src/lib/api-docs/constants.ts | 3 ++- backend/src/server/routes/v2/project-router.ts | 2 +- backend/src/server/routes/v3/secret-router.ts | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/src/lib/api-docs/constants.ts b/backend/src/lib/api-docs/constants.ts index 6f5cc2296..2e42f3388 100644 --- a/backend/src/lib/api-docs/constants.ts +++ b/backend/src/lib/api-docs/constants.ts @@ -84,7 +84,7 @@ export const ORGANIZATIONS = { export const PROJECTS = { CREATE: { - organizationId: "The ID of the organization to create the project in.", + organizationSlug: "The slug of the organization to create the project in.", projectName: "The name of the project to create.", slug: "An optional slug for the project." }, @@ -197,6 +197,7 @@ export const FOLDERS = { export const RAW_SECRETS = { LIST: { workspaceId: "The ID of the project to list secrets from.", + workspaceSlug: "The slug of the project to list secrets from. This parameter is only usable by machine identities.", environment: "The slug of the environment to list secrets from.", secretPath: "The secret path to list secrets from.", includeImports: "Weather to include imported secrets or not." diff --git a/backend/src/server/routes/v2/project-router.ts b/backend/src/server/routes/v2/project-router.ts index e86762486..7ae5b3508 100644 --- a/backend/src/server/routes/v2/project-router.ts +++ b/backend/src/server/routes/v2/project-router.ts @@ -151,7 +151,7 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => { }) .optional() .describe(PROJECTS.CREATE.slug), - organizationId: z.string().trim().describe(PROJECTS.CREATE.organizationId) + organizationSlug: z.string().trim().describe(PROJECTS.CREATE.organizationSlug) }), response: { 200: z.object({ diff --git a/backend/src/server/routes/v3/secret-router.ts b/backend/src/server/routes/v3/secret-router.ts index d9613846e..1e224aa3b 100644 --- a/backend/src/server/routes/v3/secret-router.ts +++ b/backend/src/server/routes/v3/secret-router.ts @@ -36,6 +36,7 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => { ], querystring: z.object({ workspaceId: z.string().trim().optional().describe(RAW_SECRETS.LIST.workspaceId), + workspaceSlug: z.string().trim().optional().describe(RAW_SECRETS.LIST.workspaceSlug), environment: z.string().trim().optional().describe(RAW_SECRETS.LIST.environment), secretPath: z.string().trim().default("/").transform(removeTrailingSlash).describe(RAW_SECRETS.LIST.secretPath), include_imports: z