Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
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.tsindex 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: FastifyZodProvibody: 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.tsindex 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: FastifyZodProvidermessage: "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,