Git commit prior to merge

This commit is contained in:
riyadhafraa
2026-04-29 10:32:54 +00:00
parent ed52b845f1
commit 896f690ac0
9 changed files with 438 additions and 14 deletions
@@ -1018,6 +1018,15 @@ export type ListAuditLogsParams = {
* Exact action name to filter by (e.g. "group.force_delete").
*/
action?: string;
/**
* When true, restrict results to forced deletions only — i.e. rows
with action `group.force_delete`, `user.force_delete`,
`app.force_delete`, `service.force_delete`, or any
`group.delete`/`user.delete`/`app.delete` row whose metadata
contains `force: true`. Overrides the `action` filter when set.
*/
forcedOnly?: boolean;
/**
* Start date (inclusive, YYYY-MM-DD UTC).
*/
@@ -1042,6 +1051,13 @@ export type ExportAuditLogsCsvParams = {
* Exact action name to filter by (e.g. "group.force_delete").
*/
action?: string;
/**
* When true, restrict the export to forced deletions only.
See the list endpoint for the exact set of matching rows.
Overrides the `action` filter when set.
*/
forcedOnly?: boolean;
/**
* Start date (inclusive, YYYY-MM-DD UTC).
*/
+2 -1
View File
@@ -6265,7 +6265,8 @@ export function useListAuditLogs<
/**
* Streams the filtered audit log as a CSV download.
Honors the same `action`, `from`, and `to` filters as the list endpoint.
Honors the same `action`, `forcedOnly`, `from`, and `to` filters as the
list endpoint.
Columns: action, actor_username, target_type, target_id, created_at, metadata.
Capped at 50,000 rows per export to bound response size.