Giao diện
Audit & Quyền riêng tư
Trang sinh tự động
Phần nghiệp vụ viết tay; API, dữ liệu, quyền, đường dẫn và file nguồn do bộ sinh điền từ source tại ad83b0aea.
Làm gì
Mọi mutation từ Web Admin để lại một dòng audit chỉ-ghi-thêm với dữ liệu cá nhân đã che. Quyền riêng tư gồm yêu cầu xuất và xoá dữ liệu, legal hold và chính sách lưu trữ.
Quy mô
| Domain API | audit, privacy |
| Query / Mutation | 6 / 8 |
| Nguồn dữ liệu | — |
| Bảng | 0 |
| Luật phân quyền | 1 |
| Đường dẫn Web Admin | 0 |
Thao tác (mutation)
| Mutation | Domain | Mô tả |
|---|---|---|
grantConsent | privacy | |
privacyExportDownload | privacy | Signed link to the caller's own, unexpired export package (audited). |
releaseLegalHold | privacy | |
requestPrivacyDeletion | privacy | |
requestPrivacyExport | privacy | |
reviewPrivacyRequest | privacy | |
setLegalHold | privacy | |
withdrawConsent | privacy |
Phép đọc (query)
| Query | Domain | Mô tả |
|---|---|---|
auditActionOptions | audit | The actions of the audit registry and of the stored log, for the action filter. Requires audit.read. |
auditEvent | audit | One audit event; not_found when there is none. Requires audit.read. |
auditEventFullChange | audit | Full before / after of an audit event flagged metadata.hasDetail. Null when the event has none (or is unknown). Requires audit.read. |
auditEvents | audit | The audit log, newest first, pages of at most 100 rows. Requires audit.read (DEC-CV3-33). |
myConsents | privacy | The caller's consents (published purposes and own history). |
privacyRequests | privacy | Own requests (subject) or the review queue (privacy reviewer, GAP-59). |
Quyền
| Mã | Quyền | Ứng dụng | Vai trò | Phạm vi | Trạng thái |
|---|---|---|---|---|---|
Z-01 | audit.read | WEB_ADMIN | super_admin | ALL | PROPOSED |
Danh sách đầy đủ và cách đọc các cờ: Ma trận quyền.
File nguồn
Backend:
code/apps/api/supabase/functions/graphql/domains/audit/code/apps/api/supabase/functions/graphql/domains/privacy/
Tài nguyên quyền không có luật nào
Bản đồ module khai các tài nguyên privacy nhưng ma trận quyền không có luật nào cho chúng. Hoặc tên tài nguyên trong bản đồ sai, hoặc quyền chưa được định nghĩa.