Skip to content

Commit

Permalink
[flows] adding sensitive attr to Screen, allowing to hide specific …
Browse files Browse the repository at this point in the history
…fields from the response summary
  • Loading branch information
david-lev committed Sep 19, 2024
1 parent bacdef4 commit b8c066e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pywa/types/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,7 @@ class Screen:
the back button while on this screen (Read more at `developers.facebook.com <https://developers.facebook.com/docs/whatsapp/flows/reference/flowjson#additional-information-on-refresh-on-back>`_).
layout: Associated screen UI Layout that is shown to the user (Read more at `developers.facebook.com <https://developers.facebook.com/docs/whatsapp/flows/reference/flowjson#layout>`_).
success: To indicate whether terminating on that screen results in a successful flow completion.
sensitive: This array contains the names of the fields in the screen that contain sensitive data, and should be hidden in the response summary displayed to the user. (added in v5.1)
"""

id: str
Expand All @@ -1058,6 +1059,7 @@ class Screen:
success: bool | None = None
refresh_on_back: bool | None = None
layout: Layout
sensitive: Iterable[str] | None = None

def __post_init__(self):
if not self.data or isinstance(self.data, dict):
Expand Down

0 comments on commit b8c066e

Please sign in to comment.