Skip to content
Prompty

RedactionMetadata

Metadata describing whether and how a payload was sanitized.

---
title: RedactionMetadata
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class RedactionMetadata {
        +boolean sanitized
        +RedactedField[] fields
        +string policy
    }
    class RedactedField {
        +string path
        +string mode
        +string reason
    }
    RedactionMetadata *-- RedactedField
sanitized: true
policy: default-v1
Name Type Description
sanitized boolean Whether the payload has been sanitized for persistence or external display
fields RedactedField[] Field-level redaction details
policy string Host policy or sanitizer version that produced this metadata

The following types are composed within RedactionMetadata: