Supported-triggers version property when using terraform to configure an action

Problem Statement

What the Supported_triggers means for the actions module of Auth0 terraform provider

https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/action

 supported_triggers {
    id      = "post-login"
    version = "v3"
  }

Solution

Action triggers are functionalities related to actions that define when the action will be executed. For instance, a post-registration trigger would only be triggered when the user is signing up; and a post-login trigger will make the action executed every time the user logs in.
In other words, when defining action with the actions module, you use that snippet to define which trigger to use and specify when to run the scripts.

This doc explains actions.

Each trigger will have its respective version. If you create a trigger via the UI, by default, it will use the current version of the trigger.

To find the triggers’ latest version, you may call this API request

GET/api/v2/actions/triggers