@@ -26,20 +26,26 @@ internal class ContinueWithAuthCommand(ContinueWithAuthParameters @params)
26
26
: Command < ContinueWithAuthParameters > ( @params , "network.continueWithAuth" ) ;
27
27
28
28
[ JsonPolymorphic( TypeDiscriminatorPropertyName = "action" ) ]
29
- [ JsonDerivedType ( typeof ( Credentials ) , "provideCredentials" ) ]
30
- [ JsonDerivedType ( typeof ( Default ) , "default" ) ]
31
- [ JsonDerivedType ( typeof ( Cancel ) , "cancel" ) ]
32
- internal abstract record ContinueWithAuthParameters( Request Request ) : CommandParameters
33
- {
34
- internal record Credentials ( Request Request , [ property: JsonPropertyName ( "credentials" ) ] AuthCredentials AuthCredentials ) : ContinueWithAuthParameters ( Request ) ;
29
+ [ JsonDerivedType ( typeof ( ContinueWithAuthCredentials ) , "provideCredentials" ) ]
30
+ [ JsonDerivedType ( typeof ( ContinueWithAuthDefaultCredentials ) , "default" ) ]
31
+ [ JsonDerivedType ( typeof ( ContinueWithAuthCancelCredentials ) , "cancel" ) ]
32
+ internal abstract record ContinueWithAuthParameters( Request Request ) : CommandParameters ;
35
33
36
- internal record Default ( Request Request ) : ContinueWithAuthParameters ( Request ) ;
34
+ internal record ContinueWithAuthCredentials ( Request Request , AuthCredentials Credentials ) : ContinueWithAuthParameters ( Request ) ;
37
35
38
- internal record Cancel ( Request Request ) : ContinueWithAuthParameters ( Request ) ;
39
- }
36
+ internal abstract record ContinueWithAuthNoCredentials( Request Request ) : ContinueWithAuthParameters ( Request ) ;
37
+
38
+ internal record ContinueWithAuthDefaultCredentials( Request Request ) : ContinueWithAuthNoCredentials ( Request ) ;
39
+
40
+ internal record ContinueWithAuthCancelCredentials( Request Request ) : ContinueWithAuthNoCredentials ( Request ) ;
40
41
41
42
public record ContinueWithAuthOptions : CommandOptions ;
42
43
43
- public record ContinueWithDefaultAuthOptions : CommandOptions ;
44
+ public record ContinueWithAuthCredentialsOptions : ContinueWithAuthOptions ;
45
+
46
+ public record ContinueWithAuthNoCredentialsOptions : ContinueWithAuthOptions ;
47
+
48
+ public record ContinueWithAuthDefaultCredentialsOptions : ContinueWithAuthNoCredentialsOptions ;
49
+
50
+ public record ContinueWithAuthCancelCredentialsOptions : ContinueWithAuthNoCredentialsOptions ;
44
51
45
- public record ContinueWithCancelledAuthOptions : CommandOptions ;
0 commit comments