@@ -172,7 +172,6 @@ type ClaimGrants struct {
172172 Agent * AgentGrant `json:"agent,omitempty"`
173173 Inference * InferenceGrant `json:"inference,omitempty"`
174174 Observability * ObservabilityGrant `json:"observability,omitempty"`
175- Simulation * SimulationGrant `json:"simulation,omitempty"`
176175 // Room configuration to use if this participant initiates the room
177176 RoomConfig * RoomConfiguration `json:"roomConfig,omitempty"`
178177 // Cloud-only, config preset to use
@@ -219,7 +218,6 @@ func (c *ClaimGrants) Clone() *ClaimGrants {
219218 clone .Agent = c .Agent .Clone ()
220219 clone .Inference = c .Inference .Clone ()
221220 clone .Observability = c .Observability .Clone ()
222- clone .Simulation = c .Simulation .Clone ()
223221 clone .Attributes = maps .Clone (c .Attributes )
224222 clone .RoomConfig = c .RoomConfig .Clone ()
225223 if len (c .KindDetails ) > 0 {
@@ -242,7 +240,6 @@ func (c *ClaimGrants) MarshalLogObject(e zapcore.ObjectEncoder) error {
242240 e .AddObject ("Agent" , c .Agent )
243241 e .AddObject ("Inference" , c .Inference )
244242 e .AddObject ("Observability" , c .Observability )
245- e .AddObject ("Simulation" , c .Simulation )
246243 e .AddObject ("RoomConfig" , logger .Proto ((* livekit .RoomConfiguration )(c .RoomConfig )))
247244 e .AddString ("RoomPreset" , c .RoomPreset )
248245 return nil
@@ -556,6 +553,8 @@ func (s *SIPGrant) MarshalLogObject(e zapcore.ObjectEncoder) error {
556553type AgentGrant struct {
557554 // Admin grants to create/update/delete Cloud Agents.
558555 Admin bool `json:"admin,omitempty"`
556+ // CreateSimulation grants access to create simulations to evaluate an agent.
557+ CreateSimulation bool `json:"createSimulation,omitempty"`
559558}
560559
561560func (s * AgentGrant ) Clone () * AgentGrant {
@@ -574,6 +573,7 @@ func (s *AgentGrant) MarshalLogObject(e zapcore.ObjectEncoder) error {
574573 }
575574
576575 e .AddBool ("Admin" , s .Admin )
576+ e .AddBool ("CreateSimulation" , s .CreateSimulation )
577577 return nil
578578}
579579
@@ -631,32 +631,6 @@ func (s *ObservabilityGrant) MarshalLogObject(e zapcore.ObjectEncoder) error {
631631
632632// ------------------------------------------------------------------
633633
634- type SimulationGrant struct {
635- // Dispatch grants access to dispatch simulated humans to evaluate an agent.
636- Dispatch bool `json:"dispatch,omitempty"`
637- }
638-
639- func (s * SimulationGrant ) Clone () * SimulationGrant {
640- if s == nil {
641- return nil
642- }
643-
644- clone := * s
645-
646- return & clone
647- }
648-
649- func (s * SimulationGrant ) MarshalLogObject (e zapcore.ObjectEncoder ) error {
650- if s == nil {
651- return nil
652- }
653-
654- e .AddBool ("Dispatch" , s .Dispatch )
655- return nil
656- }
657-
658- // ------------------------------------------------------------------
659-
660634func sourceToString (source livekit.TrackSource ) string {
661635 return strings .ToLower (source .String ())
662636}
0 commit comments