auth/cell_item_audit_metadata.ts

Audit-log metadata schemas for cell_item_insert / _move / _delete.

IDs only (positions are opaque text, not user-derived; safe to log). Apps register these via extra_events: on create_audit_log_config.

view source

Declarations
#

3 declarations

CellItemDeleteAuditMetadata
#

auth/cell_item_audit_metadata.ts view source

ZodObject<{ parent_id: $ZodBranded<ZodUUID, "Uuid", "out">; position: ZodString; child_id: $ZodBranded<ZodUUID, "Uuid", "out">; }, $loose> import type {CellItemDeleteAuditMetadata} from '@fuzdev/fuz_app/auth/cell_item_audit_metadata.js';

Metadata envelope for cell_item_delete.

CellItemInsertAuditMetadata
#

auth/cell_item_audit_metadata.ts view source

ZodObject<{ parent_id: $ZodBranded<ZodUUID, "Uuid", "out">; position: ZodString; child_id: $ZodBranded<ZodUUID, "Uuid", "out">; }, $loose> import type {CellItemInsertAuditMetadata} from '@fuzdev/fuz_app/auth/cell_item_audit_metadata.js';

Metadata envelope for cell_item_insert.

CellItemMoveAuditMetadata
#

auth/cell_item_audit_metadata.ts view source

ZodObject<{ parent_id: $ZodBranded<ZodUUID, "Uuid", "out">; position_old: ZodString; position_new: ZodString; }, $loose> import type {CellItemMoveAuditMetadata} from '@fuzdev/fuz_app/auth/cell_item_audit_metadata.js';

Metadata envelope for cell_item_move. Carries both old and new position so the audit trail shows the reorder without a join back to the live row.

Imported by
#