@@ -41,7 +41,7 @@ public class EventActions extends JsonBaseModel {
4141 private Set <String > deletedArtifactIds ;
4242 private @ Nullable String transferToAgent ;
4343 private @ Nullable Boolean escalate ;
44- private ConcurrentMap <String , ConcurrentMap <String , Object >> requestedAuthConfigs ;
44+ private ConcurrentMap <String , Map <String , Object >> requestedAuthConfigs ;
4545 private ConcurrentMap <String , ToolConfirmation > requestedToolConfirmations ;
4646 private boolean endOfAgent ;
4747 private @ Nullable EventCompaction compaction ;
@@ -139,13 +139,17 @@ public void setEscalate(@Nullable Boolean escalate) {
139139 }
140140
141141 @ JsonProperty ("requestedAuthConfigs" )
142- public ConcurrentMap <String , ConcurrentMap <String , Object >> requestedAuthConfigs () {
142+ public Map <String , Map <String , Object >> requestedAuthConfigs () {
143143 return requestedAuthConfigs ;
144144 }
145145
146146 public void setRequestedAuthConfigs (
147- ConcurrentMap <String , ConcurrentMap <String , Object >> requestedAuthConfigs ) {
148- this .requestedAuthConfigs = requestedAuthConfigs ;
147+ Map <String , ? extends Map <String , Object >> requestedAuthConfigs ) {
148+ if (requestedAuthConfigs == null ) {
149+ this .requestedAuthConfigs = new ConcurrentHashMap <>();
150+ } else {
151+ this .requestedAuthConfigs = new ConcurrentHashMap <>(requestedAuthConfigs );
152+ }
149153 }
150154
151155 @ JsonProperty ("requestedToolConfirmations" )
@@ -248,7 +252,7 @@ public static class Builder {
248252 private Set <String > deletedArtifactIds ;
249253 private @ Nullable String transferToAgent ;
250254 private @ Nullable Boolean escalate ;
251- private ConcurrentMap <String , ConcurrentMap <String , Object >> requestedAuthConfigs ;
255+ private ConcurrentMap <String , Map <String , Object >> requestedAuthConfigs ;
252256 private ConcurrentMap <String , ToolConfirmation > requestedToolConfirmations ;
253257 private boolean endOfAgent = false ;
254258 private @ Nullable EventCompaction compaction ;
@@ -328,8 +332,12 @@ public Builder escalate(boolean escalate) {
328332 @ CanIgnoreReturnValue
329333 @ JsonProperty ("requestedAuthConfigs" )
330334 public Builder requestedAuthConfigs (
331- ConcurrentMap <String , ConcurrentMap <String , Object >> value ) {
332- this .requestedAuthConfigs = value ;
335+ @ Nullable Map <String , ? extends Map <String , Object >> value ) {
336+ if (value == null ) {
337+ this .requestedAuthConfigs = new ConcurrentHashMap <>();
338+ } else {
339+ this .requestedAuthConfigs = new ConcurrentHashMap <>(value );
340+ }
333341 return this ;
334342 }
335343
0 commit comments