From 3303c9fcf8c2e5c9dfdfb6feb278c85afbb9f595 Mon Sep 17 00:00:00 2001 From: devops-bot Date: Thu, 30 Apr 2026 13:43:37 +0000 Subject: [PATCH] Update protobuf definitions: 2833761b By allanger Commit link: https://gitea.badhouseplants.net/softplayer/softplayer-proto/commit/2833761b45d444f5e7d9f8eaa906f15099cb286e Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/49 --- lib/src/accounts/v1/accounts_v1.pb.dart | 32 ++------ lib/src/accounts/v1/accounts_v1.pbgrpc.dart | 85 --------------------- lib/src/accounts/v1/accounts_v1.pbjson.dart | 23 +----- 3 files changed, 10 insertions(+), 130 deletions(-) diff --git a/lib/src/accounts/v1/accounts_v1.pb.dart b/lib/src/accounts/v1/accounts_v1.pb.dart index 4825ab7..a682623 100644 --- a/lib/src/accounts/v1/accounts_v1.pb.dart +++ b/lib/src/accounts/v1/accounts_v1.pb.dart @@ -210,12 +210,10 @@ class SignUpRequest extends $pb.GeneratedMessage { class SignInRequest extends $pb.GeneratedMessage { factory SignInRequest({ - AccountData? data, - AccountPassword? password, + $core.String? code, }) { final result = create(); - if (data != null) result.data = data; - if (password != null) result.password = password; + if (code != null) result.code = code; return result; } @@ -232,10 +230,7 @@ class SignInRequest extends $pb.GeneratedMessage { _omitMessageNames ? '' : 'SignInRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'accounts.v1'), createEmptyInstance: create) - ..aOM(1, _omitFieldNames ? '' : 'data', - subBuilder: AccountData.create) - ..aOM(2, _omitFieldNames ? '' : 'password', - subBuilder: AccountPassword.create) + ..aOS(1, _omitFieldNames ? '' : 'code') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @@ -258,26 +253,13 @@ class SignInRequest extends $pb.GeneratedMessage { static SignInRequest? _defaultInstance; @$pb.TagNumber(1) - AccountData get data => $_getN(0); + $core.String get code => $_getSZ(0); @$pb.TagNumber(1) - set data(AccountData value) => $_setField(1, value); + set code($core.String value) => $_setString(0, value); @$pb.TagNumber(1) - $core.bool hasData() => $_has(0); + $core.bool hasCode() => $_has(0); @$pb.TagNumber(1) - void clearData() => $_clearField(1); - @$pb.TagNumber(1) - AccountData ensureData() => $_ensure(0); - - @$pb.TagNumber(2) - AccountPassword get password => $_getN(1); - @$pb.TagNumber(2) - set password(AccountPassword value) => $_setField(2, value); - @$pb.TagNumber(2) - $core.bool hasPassword() => $_has(1); - @$pb.TagNumber(2) - void clearPassword() => $_clearField(2); - @$pb.TagNumber(2) - AccountPassword ensurePassword() => $_ensure(1); + void clearCode() => $_clearField(1); } class ResetPasswordRequest extends $pb.GeneratedMessage { diff --git a/lib/src/accounts/v1/accounts_v1.pbgrpc.dart b/lib/src/accounts/v1/accounts_v1.pbgrpc.dart index d4f09cd..980d945 100644 --- a/lib/src/accounts/v1/accounts_v1.pbgrpc.dart +++ b/lib/src/accounts/v1/accounts_v1.pbgrpc.dart @@ -36,14 +36,6 @@ class AccountsNoAuthServiceClient extends $grpc.Client { AccountsNoAuthServiceClient(super.channel, {super.options, super.interceptors}); - /// Create a new user - $grpc.ResponseFuture<$1.Empty> signUp( - $0.SignUpRequest request, { - $grpc.CallOptions? options, - }) { - return $createUnaryCall(_$signUp, request, options: options); - } - /// Sing in into an existing account $grpc.ResponseFuture<$1.Empty> signIn( $0.SignInRequest request, { @@ -52,42 +44,12 @@ class AccountsNoAuthServiceClient extends $grpc.Client { return $createUnaryCall(_$signIn, request, options: options); } - /// Reset the password, if it was lost - $grpc.ResponseFuture<$1.Empty> resetPassword( - $0.ResetPasswordRequest request, { - $grpc.CallOptions? options, - }) { - return $createUnaryCall(_$resetPassword, request, options: options); - } - - /// Set the new password after reset - $grpc.ResponseFuture<$1.Empty> newPassword( - $0.NewPasswordRequest request, { - $grpc.CallOptions? options, - }) { - return $createUnaryCall(_$newPassword, request, options: options); - } - // method descriptors - static final _$signUp = $grpc.ClientMethod<$0.SignUpRequest, $1.Empty>( - '/accounts.v1.AccountsNoAuthService/SignUp', - ($0.SignUpRequest value) => value.writeToBuffer(), - $1.Empty.fromBuffer); static final _$signIn = $grpc.ClientMethod<$0.SignInRequest, $1.Empty>( '/accounts.v1.AccountsNoAuthService/SignIn', ($0.SignInRequest value) => value.writeToBuffer(), $1.Empty.fromBuffer); - static final _$resetPassword = - $grpc.ClientMethod<$0.ResetPasswordRequest, $1.Empty>( - '/accounts.v1.AccountsNoAuthService/ResetPassword', - ($0.ResetPasswordRequest value) => value.writeToBuffer(), - $1.Empty.fromBuffer); - static final _$newPassword = - $grpc.ClientMethod<$0.NewPasswordRequest, $1.Empty>( - '/accounts.v1.AccountsNoAuthService/NewPassword', - ($0.NewPasswordRequest value) => value.writeToBuffer(), - $1.Empty.fromBuffer); } @$pb.GrpcServiceName('accounts.v1.AccountsNoAuthService') @@ -95,13 +57,6 @@ abstract class AccountsNoAuthServiceBase extends $grpc.Service { $core.String get $name => 'accounts.v1.AccountsNoAuthService'; AccountsNoAuthServiceBase() { - $addMethod($grpc.ServiceMethod<$0.SignUpRequest, $1.Empty>( - 'SignUp', - signUp_Pre, - false, - false, - ($core.List<$core.int> value) => $0.SignUpRequest.fromBuffer(value), - ($1.Empty value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.SignInRequest, $1.Empty>( 'SignIn', signIn_Pre, @@ -109,32 +64,8 @@ abstract class AccountsNoAuthServiceBase extends $grpc.Service { false, ($core.List<$core.int> value) => $0.SignInRequest.fromBuffer(value), ($1.Empty value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.ResetPasswordRequest, $1.Empty>( - 'ResetPassword', - resetPassword_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.ResetPasswordRequest.fromBuffer(value), - ($1.Empty value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.NewPasswordRequest, $1.Empty>( - 'NewPassword', - newPassword_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.NewPasswordRequest.fromBuffer(value), - ($1.Empty value) => value.writeToBuffer())); } - $async.Future<$1.Empty> signUp_Pre( - $grpc.ServiceCall $call, $async.Future<$0.SignUpRequest> $request) async { - return signUp($call, await $request); - } - - $async.Future<$1.Empty> signUp( - $grpc.ServiceCall call, $0.SignUpRequest request); - $async.Future<$1.Empty> signIn_Pre( $grpc.ServiceCall $call, $async.Future<$0.SignInRequest> $request) async { return signIn($call, await $request); @@ -142,22 +73,6 @@ abstract class AccountsNoAuthServiceBase extends $grpc.Service { $async.Future<$1.Empty> signIn( $grpc.ServiceCall call, $0.SignInRequest request); - - $async.Future<$1.Empty> resetPassword_Pre($grpc.ServiceCall $call, - $async.Future<$0.ResetPasswordRequest> $request) async { - return resetPassword($call, await $request); - } - - $async.Future<$1.Empty> resetPassword( - $grpc.ServiceCall call, $0.ResetPasswordRequest request); - - $async.Future<$1.Empty> newPassword_Pre($grpc.ServiceCall $call, - $async.Future<$0.NewPasswordRequest> $request) async { - return newPassword($call, await $request); - } - - $async.Future<$1.Empty> newPassword( - $grpc.ServiceCall call, $0.NewPasswordRequest request); } /// * diff --git a/lib/src/accounts/v1/accounts_v1.pbjson.dart b/lib/src/accounts/v1/accounts_v1.pbjson.dart index c6537f7..ed82159 100644 --- a/lib/src/accounts/v1/accounts_v1.pbjson.dart +++ b/lib/src/accounts/v1/accounts_v1.pbjson.dart @@ -74,30 +74,13 @@ final $typed_data.Uint8List signUpRequestDescriptor = $convert.base64Decode( const SignInRequest$json = { '1': 'SignInRequest', '2': [ - { - '1': 'data', - '3': 1, - '4': 1, - '5': 11, - '6': '.accounts.v1.AccountData', - '10': 'data' - }, - { - '1': 'password', - '3': 2, - '4': 1, - '5': 11, - '6': '.accounts.v1.AccountPassword', - '10': 'password' - }, + {'1': 'code', '3': 1, '4': 1, '5': 9, '10': 'code'}, ], }; /// Descriptor for `SignInRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List signInRequestDescriptor = $convert.base64Decode( - 'Cg1TaWduSW5SZXF1ZXN0EiwKBGRhdGEYASABKAsyGC5hY2NvdW50cy52MS5BY2NvdW50RGF0YV' - 'IEZGF0YRI4CghwYXNzd29yZBgCIAEoCzIcLmFjY291bnRzLnYxLkFjY291bnRQYXNzd29yZFII' - 'cGFzc3dvcmQ='); +final $typed_data.Uint8List signInRequestDescriptor = + $convert.base64Decode('Cg1TaWduSW5SZXF1ZXN0EhIKBGNvZGUYASABKAlSBGNvZGU='); @$core.Deprecated('Use resetPasswordRequestDescriptor instead') const ResetPasswordRequest$json = {