Skip to content
3 changes: 3 additions & 0 deletions auth/grants.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,8 @@ type AgentGrant struct {
Admin bool `json:"admin,omitempty"`
// SimulationAdmin grants access to manage simulations and scenarios for evaluating agents.
SimulationAdmin bool `json:"simulationAdmin,omitempty"`
// SessionStoreAdmin grants access to a project's agent session store databases.
SessionStoreAdmin bool `json:"sessionStoreAdmin,omitempty"`
}

func (s *AgentGrant) Clone() *AgentGrant {
Expand All @@ -600,6 +602,7 @@ func (s *AgentGrant) MarshalLogObject(e zapcore.ObjectEncoder) error {

e.AddBool("Admin", s.Admin)
e.AddBool("SimulationAdmin", s.SimulationAdmin)
e.AddBool("SessionStoreAdmin", s.SessionStoreAdmin)
return nil
}

Expand Down
Loading
Loading