Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

chore(agent-vault): remove the comments on the API doc examples

Scott Wilsonb6cbf9bc19b9
diff --git a/backend/src/ee/routes/v1/agent-vault-routers/agent-vault-delegation-router.ts b/backend/src/ee/routes/v1/agent-vault-routers/agent-vault-delegation-router.ts
index 949871b339..290c6ab591 100644
--- a/backend/src/ee/routes/v1/agent-vault-routers/agent-vault-delegation-router.ts
+++ b/backend/src/ee/routes/v1/agent-vault-routers/agent-vault-delegation-router.ts
@@ -12,8 +12,6 @@ import { actorContext } from "./agent-vault-router-fns";
const MAX_DELEGATION_SUBJECTS = 100;
-// Without an example, the docs show all-members, the first value, next to users and groups, which only a selected
-// delegation names.
const DelegationScopeSchema = z
.nativeEnum(AgentVaultDelegationScope)
.describe(JSON.stringify({ description: AGENT_VAULT.DELEGATION.scope, example: AgentVaultDelegationScope.Selected }));
@@ -154,7 +152,6 @@ export const registerAgentVaultDelegationRouter = async (server: FastifyZodProvi
body: z
.object({
scope: DelegationScopeSchema,
- // Without examples, the docs show both lists empty, which a selected delegation can't be.
userIds: z
.string()
.uuid()
diff --git a/backend/src/ee/routes/v1/agent-vault-routers/agent-vault-session-router.ts b/backend/src/ee/routes/v1/agent-vault-routers/agent-vault-session-router.ts
index 5077ec58c0..b1d0421dbf 100644
--- a/backend/src/ee/routes/v1/agent-vault-routers/agent-vault-session-router.ts
+++ b/backend/src/ee/routes/v1/agent-vault-routers/agent-vault-session-router.ts
@@ -187,7 +187,6 @@ export const registerAgentVaultSessionRouter = async (server: FastifyZodProvider
message: "Name the user by userId or by userEmail, not both"
})
.optional()
- // Without an example, the docs' generated request sets both fields, which the refine rejects.
.describe(
JSON.stringify({
description: AGENT_VAULT.SESSION.onBehalfOf,