Update protobuf definitions: 7d11a972
By allanger
Commit link: 7d11a972f3
Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/76
This commit is contained in:
@@ -95,14 +95,6 @@ class TokensServiceClient extends $grpc.Client {
|
||||
options: options);
|
||||
}
|
||||
|
||||
/// Recieve a JWT access token
|
||||
$grpc.ResponseFuture<$1.Empty> authenticateWithToken(
|
||||
$0.AuthenticateWithTokenRequest request, {
|
||||
$grpc.CallOptions? options,
|
||||
}) {
|
||||
return $createUnaryCall(_$authenticateWithToken, request, options: options);
|
||||
}
|
||||
|
||||
// method descriptors
|
||||
|
||||
static final _$createToken =
|
||||
@@ -140,11 +132,6 @@ class TokensServiceClient extends $grpc.Client {
|
||||
'/tokens.v1.TokensService/ListPermissions',
|
||||
($1.Empty value) => value.writeToBuffer(),
|
||||
$0.ListPermissionsResponse.fromBuffer);
|
||||
static final _$authenticateWithToken =
|
||||
$grpc.ClientMethod<$0.AuthenticateWithTokenRequest, $1.Empty>(
|
||||
'/tokens.v1.TokensService/AuthenticateWithToken',
|
||||
($0.AuthenticateWithTokenRequest value) => value.writeToBuffer(),
|
||||
$1.Empty.fromBuffer);
|
||||
}
|
||||
|
||||
@$pb.GrpcServiceName('tokens.v1.TokensService')
|
||||
@@ -208,14 +195,6 @@ abstract class TokensServiceBase extends $grpc.Service {
|
||||
true,
|
||||
($core.List<$core.int> value) => $1.Empty.fromBuffer(value),
|
||||
($0.ListPermissionsResponse value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.AuthenticateWithTokenRequest, $1.Empty>(
|
||||
'AuthenticateWithToken',
|
||||
authenticateWithToken_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) =>
|
||||
$0.AuthenticateWithTokenRequest.fromBuffer(value),
|
||||
($1.Empty value) => value.writeToBuffer()));
|
||||
}
|
||||
|
||||
$async.Future<$0.CreateTokenResponse> createToken_Pre($grpc.ServiceCall $call,
|
||||
@@ -274,6 +253,53 @@ abstract class TokensServiceBase extends $grpc.Service {
|
||||
|
||||
$async.Stream<$0.ListPermissionsResponse> listPermissions(
|
||||
$grpc.ServiceCall call, $1.Empty request);
|
||||
}
|
||||
|
||||
/// An endpoint to authenticate with a token should be here
|
||||
@$pb.GrpcServiceName('tokens.v1.PublicTokensService')
|
||||
class PublicTokensServiceClient extends $grpc.Client {
|
||||
/// The hostname for this service.
|
||||
static const $core.String defaultHost = '';
|
||||
|
||||
/// OAuth scopes needed for the client.
|
||||
static const $core.List<$core.String> oauthScopes = [
|
||||
'',
|
||||
];
|
||||
|
||||
PublicTokensServiceClient(super.channel, {super.options, super.interceptors});
|
||||
|
||||
/// Recieve a JWT access token
|
||||
/// DO NOT implement it in the web app!
|
||||
$grpc.ResponseFuture<$1.Empty> authenticateWithToken(
|
||||
$0.AuthenticateWithTokenRequest request, {
|
||||
$grpc.CallOptions? options,
|
||||
}) {
|
||||
return $createUnaryCall(_$authenticateWithToken, request, options: options);
|
||||
}
|
||||
|
||||
// method descriptors
|
||||
|
||||
static final _$authenticateWithToken =
|
||||
$grpc.ClientMethod<$0.AuthenticateWithTokenRequest, $1.Empty>(
|
||||
'/tokens.v1.PublicTokensService/AuthenticateWithToken',
|
||||
($0.AuthenticateWithTokenRequest value) => value.writeToBuffer(),
|
||||
$1.Empty.fromBuffer);
|
||||
}
|
||||
|
||||
@$pb.GrpcServiceName('tokens.v1.PublicTokensService')
|
||||
abstract class PublicTokensServiceBase extends $grpc.Service {
|
||||
$core.String get $name => 'tokens.v1.PublicTokensService';
|
||||
|
||||
PublicTokensServiceBase() {
|
||||
$addMethod($grpc.ServiceMethod<$0.AuthenticateWithTokenRequest, $1.Empty>(
|
||||
'AuthenticateWithToken',
|
||||
authenticateWithToken_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) =>
|
||||
$0.AuthenticateWithTokenRequest.fromBuffer(value),
|
||||
($1.Empty value) => value.writeToBuffer()));
|
||||
}
|
||||
|
||||
$async.Future<$1.Empty> authenticateWithToken_Pre($grpc.ServiceCall $call,
|
||||
$async.Future<$0.AuthenticateWithTokenRequest> $request) async {
|
||||
|
||||
Reference in New Issue
Block a user