Update protobuf definitions: b8349e39

By allanger

Commit link: b8349e3962

Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/75
This commit is contained in:
2026-05-14 17:39:28 +00:00
parent 9637059f77
commit efeeab2d79
3 changed files with 110 additions and 0 deletions

View File

@@ -1131,6 +1131,66 @@ class ListPermissionsResponse extends $pb.GeneratedMessage {
TokenPermissions ensurePermissions() => $_ensure(0);
}
class AuthenticateWithTokenRequest extends $pb.GeneratedMessage {
factory AuthenticateWithTokenRequest({
TokenValue? tokenValue,
}) {
final result = create();
if (tokenValue != null) result.tokenValue = tokenValue;
return result;
}
AuthenticateWithTokenRequest._();
factory AuthenticateWithTokenRequest.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory AuthenticateWithTokenRequest.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'AuthenticateWithTokenRequest',
package: const $pb.PackageName(_omitMessageNames ? '' : 'tokens.v1'),
createEmptyInstance: create)
..aOM<TokenValue>(1, _omitFieldNames ? '' : 'tokenValue',
subBuilder: TokenValue.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
AuthenticateWithTokenRequest clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
AuthenticateWithTokenRequest copyWith(
void Function(AuthenticateWithTokenRequest) updates) =>
super.copyWith(
(message) => updates(message as AuthenticateWithTokenRequest))
as AuthenticateWithTokenRequest;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static AuthenticateWithTokenRequest create() =>
AuthenticateWithTokenRequest._();
@$core.override
AuthenticateWithTokenRequest createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static AuthenticateWithTokenRequest getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<AuthenticateWithTokenRequest>(create);
static AuthenticateWithTokenRequest? _defaultInstance;
@$pb.TagNumber(1)
TokenValue get tokenValue => $_getN(0);
@$pb.TagNumber(1)
set tokenValue(TokenValue value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasTokenValue() => $_has(0);
@$pb.TagNumber(1)
void clearTokenValue() => $_clearField(1);
@$pb.TagNumber(1)
TokenValue ensureTokenValue() => $_ensure(0);
}
const $core.bool _omitFieldNames =
$core.bool.fromEnvironment('protobuf.omit_field_names');
const $core.bool _omitMessageNames =

View File

@@ -95,6 +95,14 @@ 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 =
@@ -132,6 +140,11 @@ 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')
@@ -195,6 +208,14 @@ 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,
@@ -253,4 +274,12 @@ abstract class TokensServiceBase extends $grpc.Service {
$async.Stream<$0.ListPermissionsResponse> listPermissions(
$grpc.ServiceCall call, $1.Empty request);
$async.Future<$1.Empty> authenticateWithToken_Pre($grpc.ServiceCall $call,
$async.Future<$0.AuthenticateWithTokenRequest> $request) async {
return authenticateWithToken($call, await $request);
}
$async.Future<$1.Empty> authenticateWithToken(
$grpc.ServiceCall call, $0.AuthenticateWithTokenRequest request);
}

View File

@@ -453,3 +453,24 @@ final $typed_data.Uint8List listPermissionsResponseDescriptor =
$convert.base64Decode(
'ChdMaXN0UGVybWlzc2lvbnNSZXNwb25zZRI9CgtwZXJtaXNzaW9ucxgBIAEoCzIbLnRva2Vucy'
'52MS5Ub2tlblBlcm1pc3Npb25zUgtwZXJtaXNzaW9ucw==');
@$core.Deprecated('Use authenticateWithTokenRequestDescriptor instead')
const AuthenticateWithTokenRequest$json = {
'1': 'AuthenticateWithTokenRequest',
'2': [
{
'1': 'token_value',
'3': 1,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenValue',
'10': 'tokenValue'
},
],
};
/// Descriptor for `AuthenticateWithTokenRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List authenticateWithTokenRequestDescriptor =
$convert.base64Decode(
'ChxBdXRoZW50aWNhdGVXaXRoVG9rZW5SZXF1ZXN0EjYKC3Rva2VuX3ZhbHVlGAEgASgLMhUudG'
'9rZW5zLnYxLlRva2VuVmFsdWVSCnRva2VuVmFsdWU=');