From 9d3b881d40ebb1c1d06c8a8fed4ba166dc8b2018 Mon Sep 17 00:00:00 2001 From: devops-bot Date: Sat, 9 May 2026 19:22:30 +0000 Subject: [PATCH] Update protobuf definitions: 50a27971 By allanger Commit link: https://gitea.badhouseplants.net/softplayer/softplayer-proto/commit/50a27971572ea3540b61c0aa0478488ca8324139 Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/60 --- lib/src/accounts/v1/accounts_v1.pbgrpc.dart | 56 ++++++++++----------- 1 file changed, 26 insertions(+), 30 deletions(-) diff --git a/lib/src/accounts/v1/accounts_v1.pbgrpc.dart b/lib/src/accounts/v1/accounts_v1.pbgrpc.dart index 471530c..717726d 100644 --- a/lib/src/accounts/v1/accounts_v1.pbgrpc.dart +++ b/lib/src/accounts/v1/accounts_v1.pbgrpc.dart @@ -52,15 +52,6 @@ class AccountsNoAuthServiceClient extends $grpc.Client { return $createUnaryCall(_$signUp, request, options: options); } - /// RefreshToken doesn't use regular auth methods, it recieves the token in data, - /// checks whether a session with this token exists and create a new one if yes - $grpc.ResponseFuture<$1.Empty> refreshToken( - $0.RefreshTokenRequest request, { - $grpc.CallOptions? options, - }) { - return $createUnaryCall(_$refreshToken, request, options: options); - } - // method descriptors static final _$signIn = $grpc.ClientMethod<$0.SignInRequest, $1.Empty>( @@ -71,11 +62,6 @@ class AccountsNoAuthServiceClient extends $grpc.Client { '/accounts.v1.AccountsNoAuthService/SignUp', ($0.SignUpRequest value) => value.writeToBuffer(), $1.Empty.fromBuffer); - static final _$refreshToken = - $grpc.ClientMethod<$0.RefreshTokenRequest, $1.Empty>( - '/accounts.v1.AccountsNoAuthService/RefreshToken', - ($0.RefreshTokenRequest value) => value.writeToBuffer(), - $1.Empty.fromBuffer); } @$pb.GrpcServiceName('accounts.v1.AccountsNoAuthService') @@ -97,14 +83,6 @@ abstract class AccountsNoAuthServiceBase extends $grpc.Service { false, ($core.List<$core.int> value) => $0.SignUpRequest.fromBuffer(value), ($1.Empty value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.RefreshTokenRequest, $1.Empty>( - 'RefreshToken', - refreshToken_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.RefreshTokenRequest.fromBuffer(value), - ($1.Empty value) => value.writeToBuffer())); } $async.Future<$1.Empty> signIn_Pre( @@ -122,14 +100,6 @@ abstract class AccountsNoAuthServiceBase extends $grpc.Service { $async.Future<$1.Empty> signUp( $grpc.ServiceCall call, $0.SignUpRequest request); - - $async.Future<$1.Empty> refreshToken_Pre($grpc.ServiceCall $call, - $async.Future<$0.RefreshTokenRequest> $request) async { - return refreshToken($call, await $request); - } - - $async.Future<$1.Empty> refreshToken( - $grpc.ServiceCall call, $0.RefreshTokenRequest request); } /// * @@ -155,6 +125,13 @@ class AccountsAuthServiceClient extends $grpc.Client { return $createUnaryCall(_$isEmailVerified, request, options: options); } + $grpc.ResponseFuture<$1.Empty> refreshToken( + $1.Empty request, { + $grpc.CallOptions? options, + }) { + return $createUnaryCall(_$refreshToken, request, options: options); + } + // method descriptors static final _$isEmailVerified = @@ -162,6 +139,10 @@ class AccountsAuthServiceClient extends $grpc.Client { '/accounts.v1.AccountsAuthService/IsEmailVerified', ($0.IsEmailVerifiedRequest value) => value.writeToBuffer(), $0.IsEmailVerifiedResponse.fromBuffer); + static final _$refreshToken = $grpc.ClientMethod<$1.Empty, $1.Empty>( + '/accounts.v1.AccountsAuthService/RefreshToken', + ($1.Empty value) => value.writeToBuffer(), + $1.Empty.fromBuffer); } @$pb.GrpcServiceName('accounts.v1.AccountsAuthService') @@ -178,6 +159,13 @@ abstract class AccountsAuthServiceBase extends $grpc.Service { ($core.List<$core.int> value) => $0.IsEmailVerifiedRequest.fromBuffer(value), ($0.IsEmailVerifiedResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$1.Empty, $1.Empty>( + 'RefreshToken', + refreshToken_Pre, + false, + false, + ($core.List<$core.int> value) => $1.Empty.fromBuffer(value), + ($1.Empty value) => value.writeToBuffer())); } $async.Future<$0.IsEmailVerifiedResponse> isEmailVerified_Pre( @@ -188,4 +176,12 @@ abstract class AccountsAuthServiceBase extends $grpc.Service { $async.Future<$0.IsEmailVerifiedResponse> isEmailVerified( $grpc.ServiceCall call, $0.IsEmailVerifiedRequest request); + + $async.Future<$1.Empty> refreshToken_Pre( + $grpc.ServiceCall $call, $async.Future<$1.Empty> $request) async { + return refreshToken($call, await $request); + } + + $async.Future<$1.Empty> refreshToken( + $grpc.ServiceCall call, $1.Empty request); }