Skip to content

Commit 7bc47b1

Browse files
docs(ee/audit): drop unused 'file' value from targetType enum
Pre-flight review of #1582 surfaced a stale 'file' value in the targetType enum on the response schema. No createAudit call site in the codebase writes target.type='file' (verified across every await createAudit() and createAuditAction() call site in packages/ excluding tests). The seven real target.type values are: user, org, api_key, account_join_request, invite, chat, scim_token. All seven are already in the enum after this change. actorType enum still includes 'api_key' alongside 'user'. This is pre-existing in the doc (not introduced by #1582) and may be aspirational/forward-looking — no current code path writes actor.type='api_key', but the Prisma schema stores actorType as a free-form String so the value is not blocked at the database layer. Reporting only; not changing in this PR to keep the diff scoped to the #1581 issue.
1 parent 762c6c5 commit 7bc47b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/docs/configuration/audit-logs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ curl --request GET "$SOURCEBOT_URL/api/ee/audit?since=2026-08-01T00:00:00Z&until
228228
},
229229
"targetType": {
230230
"type": "string",
231-
"enum": ["user", "org", "file", "api_key", "account_join_request", "invite", "chat", "scim_token"]
231+
"enum": ["user", "org", "api_key", "account_join_request", "invite", "chat", "scim_token"]
232232
},
233233
"sourcebotVersion": {
234234
"type": "string"

0 commit comments

Comments
 (0)