diff --git a/internal/auth0/actions.go b/internal/auth0/actions.go index 750cc601e..df83b57a1 100644 --- a/internal/auth0/actions.go +++ b/internal/auth0/actions.go @@ -27,3 +27,7 @@ type ActionBindingAPI interface { List(triggerID management.TriggerID, opts ...management.RequestOption) (c *management.ActionBindingList, err error) Update(triggerID management.TriggerID, v []*management.ActionBinding) (list *management.ActionBindingList, err error) } + +type ActionExecutionAPI interface { + Read(id string) (*management.ActionExecution, error) +} diff --git a/internal/auth0/auth0.go b/internal/auth0/auth0.go index 12c427e92..19135dd29 100644 --- a/internal/auth0/auth0.go +++ b/internal/auth0/auth0.go @@ -8,32 +8,34 @@ import ( // API mimics `management.Management`s general interface, except it refers to // the interfaces instead of the concrete structs. type API struct { - Action ActionAPI - ActionVersion ActionVersionAPI - ActionBinding ActionBindingAPI - Client ClientAPI - Connection ConnectionAPI - Log LogAPI - Rule RuleAPI - ResourceServer ResourceServerAPI - Role RoleAPI - CustomDomain CustomDomainAPI - User UserAPI + Action ActionAPI + ActionVersion ActionVersionAPI + ActionExecution ActionExecutionAPI + ActionBinding ActionBindingAPI + Client ClientAPI + Connection ConnectionAPI + Log LogAPI + Rule RuleAPI + ResourceServer ResourceServerAPI + Role RoleAPI + CustomDomain CustomDomainAPI + User UserAPI } func NewAPI(m *management.Management) *API { return &API{ - Action: m.Action, - ActionVersion: m.ActionVersion, - ActionBinding: m.ActionBinding, - Client: m.Client, - Connection: m.Connection, - Log: m.Log, - ResourceServer: m.ResourceServer, - Rule: m.Rule, - Role: m.Role, - CustomDomain: m.CustomDomain, - User: m.User, + Action: m.Action, + ActionVersion: m.ActionVersion, + ActionExecution: m.ActionExecution, + ActionBinding: m.ActionBinding, + Client: m.Client, + Connection: m.Connection, + Log: m.Log, + ResourceServer: m.ResourceServer, + Rule: m.Rule, + Role: m.Role, + CustomDomain: m.CustomDomain, + User: m.User, } }