Update protobuf definitions: d88ceea9
By allanger
Commit link: d88ceea9ea
Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/62
This commit is contained in:
@@ -23,8 +23,8 @@ export 'accounts_v1.pb.dart';
|
||||
|
||||
/// *
|
||||
/// Service for handling accounts that do not require authentication
|
||||
@$pb.GrpcServiceName('accounts.v1.AccountsNoAuthService')
|
||||
class AccountsNoAuthServiceClient extends $grpc.Client {
|
||||
@$pb.GrpcServiceName('accounts.v1.AccountManagementService')
|
||||
class AccountManagementServiceClient extends $grpc.Client {
|
||||
/// The hostname for this service.
|
||||
static const $core.String defaultHost = '';
|
||||
|
||||
@@ -33,7 +33,7 @@ class AccountsNoAuthServiceClient extends $grpc.Client {
|
||||
'',
|
||||
];
|
||||
|
||||
AccountsNoAuthServiceClient(super.channel,
|
||||
AccountManagementServiceClient(super.channel,
|
||||
{super.options, super.interceptors});
|
||||
|
||||
/// Sing in into an existing account
|
||||
@@ -52,23 +52,47 @@ class AccountsNoAuthServiceClient extends $grpc.Client {
|
||||
return $createUnaryCall(_$signUp, request, options: options);
|
||||
}
|
||||
|
||||
/// Is email for the current account verified
|
||||
$grpc.ResponseFuture<$0.IsEmailVerifiedResponse> isEmailVerified(
|
||||
$0.IsEmailVerifiedRequest request, {
|
||||
$grpc.CallOptions? options,
|
||||
}) {
|
||||
return $createUnaryCall(_$isEmailVerified, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseFuture<$1.Empty> refreshSession(
|
||||
$1.Empty request, {
|
||||
$grpc.CallOptions? options,
|
||||
}) {
|
||||
return $createUnaryCall(_$refreshSession, request, options: options);
|
||||
}
|
||||
|
||||
// method descriptors
|
||||
|
||||
static final _$signIn = $grpc.ClientMethod<$0.SignInRequest, $1.Empty>(
|
||||
'/accounts.v1.AccountsNoAuthService/SignIn',
|
||||
'/accounts.v1.AccountManagementService/SignIn',
|
||||
($0.SignInRequest value) => value.writeToBuffer(),
|
||||
$1.Empty.fromBuffer);
|
||||
static final _$signUp = $grpc.ClientMethod<$0.SignUpRequest, $1.Empty>(
|
||||
'/accounts.v1.AccountsNoAuthService/SignUp',
|
||||
'/accounts.v1.AccountManagementService/SignUp',
|
||||
($0.SignUpRequest value) => value.writeToBuffer(),
|
||||
$1.Empty.fromBuffer);
|
||||
static final _$isEmailVerified =
|
||||
$grpc.ClientMethod<$0.IsEmailVerifiedRequest, $0.IsEmailVerifiedResponse>(
|
||||
'/accounts.v1.AccountManagementService/IsEmailVerified',
|
||||
($0.IsEmailVerifiedRequest value) => value.writeToBuffer(),
|
||||
$0.IsEmailVerifiedResponse.fromBuffer);
|
||||
static final _$refreshSession = $grpc.ClientMethod<$1.Empty, $1.Empty>(
|
||||
'/accounts.v1.AccountManagementService/RefreshSession',
|
||||
($1.Empty value) => value.writeToBuffer(),
|
||||
$1.Empty.fromBuffer);
|
||||
}
|
||||
|
||||
@$pb.GrpcServiceName('accounts.v1.AccountsNoAuthService')
|
||||
abstract class AccountsNoAuthServiceBase extends $grpc.Service {
|
||||
$core.String get $name => 'accounts.v1.AccountsNoAuthService';
|
||||
@$pb.GrpcServiceName('accounts.v1.AccountManagementService')
|
||||
abstract class AccountManagementServiceBase extends $grpc.Service {
|
||||
$core.String get $name => 'accounts.v1.AccountManagementService';
|
||||
|
||||
AccountsNoAuthServiceBase() {
|
||||
AccountManagementServiceBase() {
|
||||
$addMethod($grpc.ServiceMethod<$0.SignInRequest, $1.Empty>(
|
||||
'SignIn',
|
||||
signIn_Pre,
|
||||
@@ -83,6 +107,22 @@ 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.IsEmailVerifiedRequest,
|
||||
$0.IsEmailVerifiedResponse>(
|
||||
'IsEmailVerified',
|
||||
isEmailVerified_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) =>
|
||||
$0.IsEmailVerifiedRequest.fromBuffer(value),
|
||||
($0.IsEmailVerifiedResponse value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$1.Empty, $1.Empty>(
|
||||
'RefreshSession',
|
||||
refreshSession_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $1.Empty.fromBuffer(value),
|
||||
($1.Empty value) => value.writeToBuffer()));
|
||||
}
|
||||
|
||||
$async.Future<$1.Empty> signIn_Pre(
|
||||
@@ -100,73 +140,6 @@ abstract class AccountsNoAuthServiceBase extends $grpc.Service {
|
||||
|
||||
$async.Future<$1.Empty> signUp(
|
||||
$grpc.ServiceCall call, $0.SignUpRequest request);
|
||||
}
|
||||
|
||||
/// *
|
||||
/// Service for handling accounts that do require authentication
|
||||
/// Tokens should be sent via metadata, so the service is able to authenticate a user for a request
|
||||
@$pb.GrpcServiceName('accounts.v1.AccountsAuthService')
|
||||
class AccountsAuthServiceClient 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 = [
|
||||
'',
|
||||
];
|
||||
|
||||
AccountsAuthServiceClient(super.channel, {super.options, super.interceptors});
|
||||
|
||||
/// Is email for the current account verified
|
||||
$grpc.ResponseFuture<$0.IsEmailVerifiedResponse> isEmailVerified(
|
||||
$0.IsEmailVerifiedRequest request, {
|
||||
$grpc.CallOptions? options,
|
||||
}) {
|
||||
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 =
|
||||
$grpc.ClientMethod<$0.IsEmailVerifiedRequest, $0.IsEmailVerifiedResponse>(
|
||||
'/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')
|
||||
abstract class AccountsAuthServiceBase extends $grpc.Service {
|
||||
$core.String get $name => 'accounts.v1.AccountsAuthService';
|
||||
|
||||
AccountsAuthServiceBase() {
|
||||
$addMethod($grpc.ServiceMethod<$0.IsEmailVerifiedRequest,
|
||||
$0.IsEmailVerifiedResponse>(
|
||||
'IsEmailVerified',
|
||||
isEmailVerified_Pre,
|
||||
false,
|
||||
false,
|
||||
($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(
|
||||
$grpc.ServiceCall $call,
|
||||
@@ -177,11 +150,11 @@ abstract class AccountsAuthServiceBase extends $grpc.Service {
|
||||
$async.Future<$0.IsEmailVerifiedResponse> isEmailVerified(
|
||||
$grpc.ServiceCall call, $0.IsEmailVerifiedRequest request);
|
||||
|
||||
$async.Future<$1.Empty> refreshToken_Pre(
|
||||
$async.Future<$1.Empty> refreshSession_Pre(
|
||||
$grpc.ServiceCall $call, $async.Future<$1.Empty> $request) async {
|
||||
return refreshToken($call, await $request);
|
||||
return refreshSession($call, await $request);
|
||||
}
|
||||
|
||||
$async.Future<$1.Empty> refreshToken(
|
||||
$async.Future<$1.Empty> refreshSession(
|
||||
$grpc.ServiceCall call, $1.Empty request);
|
||||
}
|
||||
|
||||
90
lib/src/options/v1/options_v1.pb.dart
Normal file
90
lib/src/options/v1/options_v1.pb.dart
Normal file
@@ -0,0 +1,90 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from options/v1/options_v1.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
class AuthOptions extends $pb.GeneratedMessage {
|
||||
factory AuthOptions({
|
||||
$core.bool? auth,
|
||||
}) {
|
||||
final result = create();
|
||||
if (auth != null) result.auth = auth;
|
||||
return result;
|
||||
}
|
||||
|
||||
AuthOptions._();
|
||||
|
||||
factory AuthOptions.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory AuthOptions.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'AuthOptions',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'options.v1'),
|
||||
createEmptyInstance: create)
|
||||
..aOB(1, _omitFieldNames ? '' : 'auth')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthOptions clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthOptions copyWith(void Function(AuthOptions) updates) =>
|
||||
super.copyWith((message) => updates(message as AuthOptions))
|
||||
as AuthOptions;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthOptions create() => AuthOptions._();
|
||||
@$core.override
|
||||
AuthOptions createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthOptions getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<AuthOptions>(create);
|
||||
static AuthOptions? _defaultInstance;
|
||||
|
||||
/// When set to false, the auth interceptor will be skiped on the backend
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool get auth => $_getBF(0);
|
||||
@$pb.TagNumber(1)
|
||||
set auth($core.bool value) => $_setBool(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasAuth() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearAuth() => $_clearField(1);
|
||||
}
|
||||
|
||||
class Options_v1 {
|
||||
static final authOptions = $pb.Extension<AuthOptions>(
|
||||
_omitMessageNames ? '' : 'google.protobuf.MethodOptions',
|
||||
_omitFieldNames ? '' : 'authOptions',
|
||||
50001,
|
||||
$pb.PbFieldType.OM,
|
||||
defaultOrMaker: AuthOptions.getDefault,
|
||||
subBuilder: AuthOptions.create);
|
||||
static void registerAllExtensions($pb.ExtensionRegistry registry) {
|
||||
registry.add(authOptions);
|
||||
}
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
11
lib/src/options/v1/options_v1.pbenum.dart
Normal file
11
lib/src/options/v1/options_v1.pbenum.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from options/v1/options_v1.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
28
lib/src/options/v1/options_v1.pbjson.dart
Normal file
28
lib/src/options/v1/options_v1.pbjson.dart
Normal file
@@ -0,0 +1,28 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from options/v1/options_v1.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use authOptionsDescriptor instead')
|
||||
const AuthOptions$json = {
|
||||
'1': 'AuthOptions',
|
||||
'2': [
|
||||
{'1': 'auth', '3': 1, '4': 1, '5': 8, '10': 'auth'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthOptions`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authOptionsDescriptor =
|
||||
$convert.base64Decode('CgtBdXRoT3B0aW9ucxISCgRhdXRoGAEgASgIUgRhdXRo');
|
||||
Reference in New Issue
Block a user