feat: implement sensitive operation audit retention (TASK-WP6-04)
Dada P0-A isolated Windows CI / validate-and-package (push) Failing after 59s
Dada P0-A isolated Windows CI / validate-and-package (push) Failing after 59s
This commit is contained in:
Vendored
+52
@@ -0,0 +1,52 @@
|
||||
export const wp604OperationMatrix = [
|
||||
{ operation_type: "user_status_change", target_type: "user_account" },
|
||||
{ operation_type: "credit_adjustment", target_type: "user_credit_account" },
|
||||
{ operation_type: "invite_create", target_type: "invite" },
|
||||
{ operation_type: "model_configuration_replace", target_type: "model_config_set" },
|
||||
{ operation_type: "sticker_release_publish", target_type: "sticker_release" },
|
||||
{ operation_type: "preview_grant_create", target_type: "preview_grant" },
|
||||
{ operation_type: "service_hard_limit_update", target_type: "external_service_limit" },
|
||||
{ operation_type: "gateway_balance_recovery", target_type: "gateway_balance_state" },
|
||||
{ operation_type: "asset_cleanup_requested", target_type: "asset_cleanup_request" },
|
||||
{ operation_type: "asset_cleanup_validated", target_type: "asset_cleanup_request" },
|
||||
{ operation_type: "asset_cleanup_scheduled", target_type: "asset_cleanup_request" },
|
||||
{ operation_type: "asset_cleanup_reference_denied", target_type: "asset_cleanup_request" },
|
||||
{ operation_type: "asset_cleanup_physical_completed", target_type: "asset_cleanup" },
|
||||
{ operation_type: "asset_cleanup_physical_failed", target_type: "asset_cleanup" },
|
||||
{ operation_type: "secure_config_apply", target_type: "secure_config_revision" },
|
||||
] as const;
|
||||
|
||||
export const wp604AuditApiFixture = {
|
||||
generated_at: "2026-08-04T09:30:00.000Z",
|
||||
items: [
|
||||
{
|
||||
actor_ref: "00000000-0000-4000-8000-000000000604",
|
||||
actor_type: "super_admin",
|
||||
after_summary: "{\"status\":\"suspended\"}",
|
||||
before_summary: "{\"status\":\"active\"}",
|
||||
expires_at: "2027-01-31T09:30:00.000Z",
|
||||
log_id: "00000000-0000-4000-8000-000000000641",
|
||||
occurred_at: "2026-08-04T09:30:00.000Z",
|
||||
operation_type: "user_status_change",
|
||||
result: "succeeded",
|
||||
target_ref: "00000000-0000-4000-8000-000000000642",
|
||||
target_type: "user_account",
|
||||
},
|
||||
],
|
||||
next_cursor: "audit_cursor_page_2",
|
||||
} as const;
|
||||
|
||||
export const wp604PrivateAuditApiFixture = {
|
||||
generated_at: "2026-08-04T09:30:00.000Z",
|
||||
items: [
|
||||
{
|
||||
actor_ref: "00000000-0000-4000-8000-000000000604",
|
||||
content_type: "prompt",
|
||||
expires_at: "2027-01-31T09:29:00.000Z",
|
||||
log_id: "00000000-0000-4000-8000-000000000643",
|
||||
occurred_at: "2026-08-04T09:29:00.000Z",
|
||||
target_ref: "00000000-0000-4000-8000-000000000644",
|
||||
},
|
||||
],
|
||||
next_cursor: null,
|
||||
} as const;
|
||||
Reference in New Issue
Block a user