feat(shipping-notice): 落地 XFA 拆分、版面签名、统一进度与处理域履约
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
3a9fbac2fc
commit
d2b3d74def
571 files changed
+78064
-24681
No files matched your search
@@ -44,14 +44,25 @@ export type ShippingAuditDiffRow = {
|
||||
after: unknown;
|
||||
};
|
||||
|
||||
export type ShippingAuditXfaSnapshotRef = {
|
||||
purpose: string;
|
||||
snapshot_ref: string;
|
||||
plaintext_sha256?: string | null;
|
||||
};
|
||||
|
||||
export type ShippingAuditEventDetail = ShippingAuditEventSummary & {
|
||||
before_snapshot?: Record<string, unknown> | null;
|
||||
after_snapshot?: Record<string, unknown> | null;
|
||||
before_hash?: string | null;
|
||||
after_hash?: string | null;
|
||||
diff?: ShippingAuditDiffRow[];
|
||||
diff_json?: Record<string, unknown> | null;
|
||||
metadata?: Record<string, unknown>;
|
||||
evidence_refs?: Array<Record<string, unknown>>;
|
||||
artifact_refs?: Array<Record<string, unknown>>;
|
||||
context_refs?: Record<string, unknown>;
|
||||
has_xfa_full_snapshots?: boolean;
|
||||
xfa_snapshot_refs?: ShippingAuditXfaSnapshotRef[];
|
||||
};
|
||||
|
||||
export type ShippingAuditFilters = {
|
||||
@@ -129,6 +140,22 @@ export function getShippingAuditEvent(eventId: number) {
|
||||
);
|
||||
}
|
||||
|
||||
export type ShippingAuditXfaSnapshotDetail = {
|
||||
summary: Record<string, unknown>;
|
||||
payload: Record<string, unknown> | null;
|
||||
sensitive_redacted: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
* 按需读取 XFA 加密完整快照;后端按 audit_sensitive_read 裁剪并再写访问审计。
|
||||
*/
|
||||
export function getShippingXfaAuditSnapshot(snapshotRef: string) {
|
||||
return requestJson<ShippingAuditXfaSnapshotDetail>(
|
||||
`/api/admin/shipping-notice/audit-snapshots/${encodeURIComponent(snapshotRef)}`,
|
||||
auth(),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 按 Workflow / Item / Run / PDF / Case / Task 关联键追溯全链。
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user