Skip to content

ContactLensRedactionConfiguration

Source code in docs_src/capo_connect/types/contact_lens_redaction_configuration.py
class ContactLensRedactionConfiguration(TypedDict, closed=True):
    behavior: NotRequired["capo_connect.types.string.String"]
    """<p>Specifies whether redaction is enabled for sensitive data, such as personal information, in the conversational analytics output. Valid values:</p> <ul> <li> <p> <code>Enable</code> – Redaction is applied according to the other values in this object.</p> </li> <li> <p> <code>Disable</code> – Redaction is not applied, and all other values in this object are ignored.</p> </li> </ul>"""
    policy: NotRequired["capo_connect.types.string.String"]
    """<p>The redaction policy that determines which versions of the transcript are stored. Valid values:</p> <ul> <li> <p> <code>None</code> – No redaction is applied.</p> </li> <li> <p> <code>RedactedOnly</code> – Only the redacted transcript is stored.</p> </li> <li> <p> <code>RedactedAndOriginal</code> – Both the redacted and the original transcript are stored.</p> </li> </ul>"""
    entities: NotRequired[
        "capo_connect.types.contact_lens_redaction_entities_list.ContactLensRedactionEntitiesList"
    ]
    """<p>The entity types to redact from the transcript (for example, <code>NAME</code>, <code>EMAIL</code>, <code>ADDRESS</code>).</p>"""
    mask_mode: NotRequired["capo_connect.types.string.String"]
    """<p>How sensitive information is masked in the transcript. Valid values:</p> <ul> <li> <p> <code>PII</code> – All redacted entities are replaced with the <code>[PII]</code> string.</p> </li> <li> <p> <code>EntityType</code> – All redacted entities are replaced with the label of the entity. For example, when the <code>EMAIL</code> entity is configured for redaction, emails in the transcript are replaced with the <code>[EMAIL]</code> string.</p> </li> </ul>"""

behavior instance-attribute

behavior: NotRequired[String]

Specifies whether redaction is enabled for sensitive data, such as personal information, in the conversational analytics output. Valid values:

  • Enable – Redaction is applied according to the other values in this object.

  • Disable – Redaction is not applied, and all other values in this object are ignored.

entities instance-attribute

entities: NotRequired[ContactLensRedactionEntitiesList]

The entity types to redact from the transcript (for example, NAME, EMAIL, ADDRESS).

mask_mode instance-attribute

mask_mode: NotRequired[String]

How sensitive information is masked in the transcript. Valid values:

  • PII – All redacted entities are replaced with the [PII] string.

  • EntityType – All redacted entities are replaced with the label of the entity. For example, when the EMAIL entity is configured for redaction, emails in the transcript are replaced with the [EMAIL] string.

policy instance-attribute

policy: NotRequired[String]

The redaction policy that determines which versions of the transcript are stored. Valid values:

  • None – No redaction is applied.

  • RedactedOnly – Only the redacted transcript is stored.

  • RedactedAndOriginal – Both the redacted and the original transcript are stored.