Repository navigation
docs(den-api): describe remaining summary-only operations (dashboards, policies, SSO, analytics, credentials, tool policy) - #4702
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
11242a7 to
31720cf
Compare
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Warden review summary — ClearNative findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (35509 ms), confidentiality-review (60938 ms), desktop-den-sync-review (55970 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (31720cf347c996fb4b2c162618dcf610e7cd5bb9). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
What changed
Adds
descriptionto the 24 summary-only operations that are not tagged Workflows / Codemode Runs / Apps (a sibling PR owns those). Each description was written after reading the handler and states behaviour the summary does not make obvious: who may call it, side effects, replace-vs-partial semantics, and non-obvious error codes.GET /v1/me/dashboards)routes/org/dashboards.tsroutes/org/desktop-policies.ts/enable,/disable,/test/{intentId}/cancel)routes/org/sso.tsDELETE …/my-credential,POST …/member-credentials/{id}/block)routes/org/llm-providers.tsDELETE /v1/mcp-connections/{connectionId})routes/org/mcp-connections.tsroutes/org/models-analytics.tsFollows the "Add a
descriptionwhen the summary does not make the behaviour obvious" convention indocs/api-style.md.Warnings before -> after (
pnpm api:lint)0 errors before and after.
.spectral-baseline.jsonratcheted down to 232. The remaining 18operation-descriptionfindings are exactly Workflows (11), Apps (5) and Codemode Runs (2), owned by the sibling PR.Metadata-only proof
git diff --stat origin/feat/api-quality-spectral..HEADlists only:ee/apps/den-api/src/routes/org/— every added line is adescription:insidedescribeRoute()(verified with a diff filter: no other +/- lines)packages/docs/openapi.json(regenerated snapshot)packages/sdk/src/gen/sdk.gen.ts(regenerated JSDoc only;pnpm sdk:checkpasses).spectral-baseline.jsonNo handlers, validators, guards, or request/response schemas were touched.
MCP catalog note: Desktop Policies, LLM Providers and Capability Sources are in
SAFE_INCLUDED_TAGS(src/mcp/policy.ts), sosearch_capabilitiestool text changes for 9 operations (4 desktop-policy CRUD, 2 LLM provider credential ops, 2 tool-policy ops — theAuthentication-tagged DELETE is excluded). The tool set does not change. Inference, Dashboards and SSO are not in the safe list.Verification
Docs-only change (OpenAPI metadata); no runtime proof needed beyond the contract gate above.
Merge note
Like every follow-up in this series, this PR regenerates
openapi.json,.spectral-baseline.jsonand the SDK, so it will conflict with sibling PRs at merge time. Resolution is mechanical: merge the base, then re-runpnpm api:snapshot && pnpm api:lint --update-baseline && pnpm sdk:generate && pnpm sdk:check.Noticed but not touched (out of scope)
DELETE /v1/desktop-policies/{id}andPATCH /v1/desktop-policies/{id}can answer400 default_policy_required; the DELETE does not document any 400.POST /v1/sso/enabledocuments only 204 and 409, but the handler also produces 401/403/404 (viaensureSsoManager) and a plan-entitlement failure (checkEntitlement(..., "sso")).PATCH /v1/inference/analytics/settings,GET …/activity,GET …/consumptiondocument only 200; handlers also answer 401/403 (models_analytics_unavailable) and, for consumption,400 narrow_date_range.GET …/settingsdocuments no 4xx at all (it is guarded byorgMemberRoute).DELETE /v1/mcp-connections/{connectionId}documents200withemptyResponsebut returns{ ok: true }— one of theow-200-has-contentfindings.DELETE /v1/mcp-connections/{connectionId}is taggedAuthenticationwhile its sibling tool-policy routes areCapability Sources; the file comment explains the intent (keep mutations off the agent surface), so probably fine, just noting.desktopPolicyListResponseSchema/desktopPolicyResponseSchemaarez.object({}).passthrough()— the response shape is undocumented in the spec.