Skip to content

Add support for file_event EventAction enum type browser-paste #111

@csanders-git

Description

@csanders-git

With some of the more recent changes the preventative controls add a number of new enum types that need to be reflected in file_events's enums. Effectively this means adding the following (in the case of browser-paste):

incydr.enums.file_events.EventAction.BROWSER_PASTE = "browser-paste"

For those that want to bypass this in the short term, the Enum class validation is perticularly effective. The easiest method to bypass this is to pass an acceptable enum value and then modify it before the query is searched. Something like the following is a hacky solution to the problem.

query = EventQuery(start_date, end_date).equals('event.action', ['file-shared'])
query.groups[1].filters[0].value = "browser-paste"
event_details = client.file_events.v2.search(query)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions