From bd7fb33d1e85e765ad826610ba9bd224a6a1e2a7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 2 Apr 2026 08:56:34 +0000 Subject: [PATCH] chore: auto-generate protobuf files [skip ci] --- gen/go/identity.pb.go | 61 ++++++++++++++++++++------------------ gen/go/identity_grpc.pb.go | 38 ++++++++++++++++++++++++ gen/identity.ts | 5 ++++ 3 files changed, 75 insertions(+), 29 deletions(-) diff --git a/gen/go/identity.pb.go b/gen/go/identity.pb.go index be4a685..380a9ed 100644 --- a/gen/go/identity.pb.go +++ b/gen/go/identity.pb.go @@ -1754,13 +1754,14 @@ const file_identity_proto_rawDesc = "" + "\x12_telegram_otp_code\"K\n" + "\x17DisableTelegramResponse\x12\x16\n" + "\x06status\x18\x01 \x01(\tR\x06status\x12\x18\n" + - "\amessage\x18\x02 \x01(\tR\amessage2\x80\x04\n" + + "\amessage\x18\x02 \x01(\tR\amessage2\xc0\x04\n" + "\vAuthService\x128\n" + "\x05Login\x12\x16.identity.LoginRequest\x1a\x17.identity.LoginResponse\x12>\n" + "\aRefresh\x12\x18.identity.RefreshRequest\x1a\x19.identity.RefreshResponse\x12J\n" + "\vVerifyToken\x12\x1c.identity.VerifyTokenRequest\x1a\x1d.identity.VerifyTokenResponse\x12b\n" + "\x13GetAccountRoleLevel\x12$.identity.GetAccountRoleLevelRequest\x1a%.identity.GetAccountRoleLevelResponse\x12;\n" + - "\x06Logout\x12\x17.identity.LogoutRequest\x1a\x18.identity.LogoutResponse\x12D\n" + + "\x06Logout\x12\x17.identity.LogoutRequest\x1a\x18.identity.LogoutResponse\x12>\n" + + "\tLogoutAll\x12\x17.identity.LogoutRequest\x1a\x18.identity.LogoutResponse\x12D\n" + "\tUnlockPin\x12\x1a.identity.UnlockPinRequest\x1a\x1b.identity.UnlockPinResponse\x12D\n" + "\tVerify2Fa\x12\x1a.identity.Verify2FaRequest\x1a\x1b.identity.Verify2FaResponse2\x9c\x06\n" + "\fTwoFaService\x12S\n" + @@ -1822,33 +1823,35 @@ var file_identity_proto_depIdxs = []int32{ 6, // 2: identity.AuthService.VerifyToken:input_type -> identity.VerifyTokenRequest 8, // 3: identity.AuthService.GetAccountRoleLevel:input_type -> identity.GetAccountRoleLevelRequest 4, // 4: identity.AuthService.Logout:input_type -> identity.LogoutRequest - 10, // 5: identity.AuthService.UnlockPin:input_type -> identity.UnlockPinRequest - 12, // 6: identity.AuthService.Verify2Fa:input_type -> identity.Verify2FaRequest - 15, // 7: identity.TwoFaService.GetTwoFaStatus:input_type -> identity.GetTwoFaStatusRequest - 14, // 8: identity.TwoFaService.StartTotpEnrollment:input_type -> identity.AuthenticatedAccessRequest - 18, // 9: identity.TwoFaService.ConfirmTotpErollment:input_type -> identity.ConfirmTotpEnrollmentRequest - 14, // 10: identity.TwoFaService.CancelTotpEnrollment:input_type -> identity.AuthenticatedAccessRequest - 21, // 11: identity.TwoFaService.DisableTotp:input_type -> identity.DisableTotpRequest - 14, // 12: identity.TwoFaService.StartTelegramEnrollment:input_type -> identity.AuthenticatedAccessRequest - 24, // 13: identity.TwoFaService.ConfirmTelegramEnrollment:input_type -> identity.ConfirmTelegramEnrollmentRequest - 26, // 14: identity.TwoFaService.DisableTelegram:input_type -> identity.DisableTelegramRequest - 1, // 15: identity.AuthService.Login:output_type -> identity.LoginResponse - 3, // 16: identity.AuthService.Refresh:output_type -> identity.RefreshResponse - 7, // 17: identity.AuthService.VerifyToken:output_type -> identity.VerifyTokenResponse - 9, // 18: identity.AuthService.GetAccountRoleLevel:output_type -> identity.GetAccountRoleLevelResponse - 5, // 19: identity.AuthService.Logout:output_type -> identity.LogoutResponse - 11, // 20: identity.AuthService.UnlockPin:output_type -> identity.UnlockPinResponse - 13, // 21: identity.AuthService.Verify2Fa:output_type -> identity.Verify2FaResponse - 16, // 22: identity.TwoFaService.GetTwoFaStatus:output_type -> identity.GetTwoFaStatusResponse - 17, // 23: identity.TwoFaService.StartTotpEnrollment:output_type -> identity.StartTotpEnrollmentResponse - 19, // 24: identity.TwoFaService.ConfirmTotpErollment:output_type -> identity.ConfirmTotpEnrollmentResponse - 20, // 25: identity.TwoFaService.CancelTotpEnrollment:output_type -> identity.CancelTotpEnrollmentResponse - 22, // 26: identity.TwoFaService.DisableTotp:output_type -> identity.DisableTotpResponse - 23, // 27: identity.TwoFaService.StartTelegramEnrollment:output_type -> identity.StartTelegramEnrollmentResponse - 25, // 28: identity.TwoFaService.ConfirmTelegramEnrollment:output_type -> identity.ConfirmTelegramEnrollmentResponse - 27, // 29: identity.TwoFaService.DisableTelegram:output_type -> identity.DisableTelegramResponse - 15, // [15:30] is the sub-list for method output_type - 0, // [0:15] is the sub-list for method input_type + 4, // 5: identity.AuthService.LogoutAll:input_type -> identity.LogoutRequest + 10, // 6: identity.AuthService.UnlockPin:input_type -> identity.UnlockPinRequest + 12, // 7: identity.AuthService.Verify2Fa:input_type -> identity.Verify2FaRequest + 15, // 8: identity.TwoFaService.GetTwoFaStatus:input_type -> identity.GetTwoFaStatusRequest + 14, // 9: identity.TwoFaService.StartTotpEnrollment:input_type -> identity.AuthenticatedAccessRequest + 18, // 10: identity.TwoFaService.ConfirmTotpErollment:input_type -> identity.ConfirmTotpEnrollmentRequest + 14, // 11: identity.TwoFaService.CancelTotpEnrollment:input_type -> identity.AuthenticatedAccessRequest + 21, // 12: identity.TwoFaService.DisableTotp:input_type -> identity.DisableTotpRequest + 14, // 13: identity.TwoFaService.StartTelegramEnrollment:input_type -> identity.AuthenticatedAccessRequest + 24, // 14: identity.TwoFaService.ConfirmTelegramEnrollment:input_type -> identity.ConfirmTelegramEnrollmentRequest + 26, // 15: identity.TwoFaService.DisableTelegram:input_type -> identity.DisableTelegramRequest + 1, // 16: identity.AuthService.Login:output_type -> identity.LoginResponse + 3, // 17: identity.AuthService.Refresh:output_type -> identity.RefreshResponse + 7, // 18: identity.AuthService.VerifyToken:output_type -> identity.VerifyTokenResponse + 9, // 19: identity.AuthService.GetAccountRoleLevel:output_type -> identity.GetAccountRoleLevelResponse + 5, // 20: identity.AuthService.Logout:output_type -> identity.LogoutResponse + 5, // 21: identity.AuthService.LogoutAll:output_type -> identity.LogoutResponse + 11, // 22: identity.AuthService.UnlockPin:output_type -> identity.UnlockPinResponse + 13, // 23: identity.AuthService.Verify2Fa:output_type -> identity.Verify2FaResponse + 16, // 24: identity.TwoFaService.GetTwoFaStatus:output_type -> identity.GetTwoFaStatusResponse + 17, // 25: identity.TwoFaService.StartTotpEnrollment:output_type -> identity.StartTotpEnrollmentResponse + 19, // 26: identity.TwoFaService.ConfirmTotpErollment:output_type -> identity.ConfirmTotpEnrollmentResponse + 20, // 27: identity.TwoFaService.CancelTotpEnrollment:output_type -> identity.CancelTotpEnrollmentResponse + 22, // 28: identity.TwoFaService.DisableTotp:output_type -> identity.DisableTotpResponse + 23, // 29: identity.TwoFaService.StartTelegramEnrollment:output_type -> identity.StartTelegramEnrollmentResponse + 25, // 30: identity.TwoFaService.ConfirmTelegramEnrollment:output_type -> identity.ConfirmTelegramEnrollmentResponse + 27, // 31: identity.TwoFaService.DisableTelegram:output_type -> identity.DisableTelegramResponse + 16, // [16:32] is the sub-list for method output_type + 0, // [0:16] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name diff --git a/gen/go/identity_grpc.pb.go b/gen/go/identity_grpc.pb.go index 76d476c..b4a96c4 100644 --- a/gen/go/identity_grpc.pb.go +++ b/gen/go/identity_grpc.pb.go @@ -24,6 +24,7 @@ const ( AuthService_VerifyToken_FullMethodName = "/identity.AuthService/VerifyToken" AuthService_GetAccountRoleLevel_FullMethodName = "/identity.AuthService/GetAccountRoleLevel" AuthService_Logout_FullMethodName = "/identity.AuthService/Logout" + AuthService_LogoutAll_FullMethodName = "/identity.AuthService/LogoutAll" AuthService_UnlockPin_FullMethodName = "/identity.AuthService/UnlockPin" AuthService_Verify2Fa_FullMethodName = "/identity.AuthService/Verify2Fa" ) @@ -37,6 +38,7 @@ type AuthServiceClient interface { VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*VerifyTokenResponse, error) GetAccountRoleLevel(ctx context.Context, in *GetAccountRoleLevelRequest, opts ...grpc.CallOption) (*GetAccountRoleLevelResponse, error) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error) + LogoutAll(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error) UnlockPin(ctx context.Context, in *UnlockPinRequest, opts ...grpc.CallOption) (*UnlockPinResponse, error) Verify2Fa(ctx context.Context, in *Verify2FaRequest, opts ...grpc.CallOption) (*Verify2FaResponse, error) } @@ -99,6 +101,16 @@ func (c *authServiceClient) Logout(ctx context.Context, in *LogoutRequest, opts return out, nil } +func (c *authServiceClient) LogoutAll(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(LogoutResponse) + err := c.cc.Invoke(ctx, AuthService_LogoutAll_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *authServiceClient) UnlockPin(ctx context.Context, in *UnlockPinRequest, opts ...grpc.CallOption) (*UnlockPinResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UnlockPinResponse) @@ -128,6 +140,7 @@ type AuthServiceServer interface { VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenResponse, error) GetAccountRoleLevel(context.Context, *GetAccountRoleLevelRequest) (*GetAccountRoleLevelResponse, error) Logout(context.Context, *LogoutRequest) (*LogoutResponse, error) + LogoutAll(context.Context, *LogoutRequest) (*LogoutResponse, error) UnlockPin(context.Context, *UnlockPinRequest) (*UnlockPinResponse, error) Verify2Fa(context.Context, *Verify2FaRequest) (*Verify2FaResponse, error) mustEmbedUnimplementedAuthServiceServer() @@ -155,6 +168,9 @@ func (UnimplementedAuthServiceServer) GetAccountRoleLevel(context.Context, *GetA func (UnimplementedAuthServiceServer) Logout(context.Context, *LogoutRequest) (*LogoutResponse, error) { return nil, status.Error(codes.Unimplemented, "method Logout not implemented") } +func (UnimplementedAuthServiceServer) LogoutAll(context.Context, *LogoutRequest) (*LogoutResponse, error) { + return nil, status.Error(codes.Unimplemented, "method LogoutAll not implemented") +} func (UnimplementedAuthServiceServer) UnlockPin(context.Context, *UnlockPinRequest) (*UnlockPinResponse, error) { return nil, status.Error(codes.Unimplemented, "method UnlockPin not implemented") } @@ -272,6 +288,24 @@ func _AuthService_Logout_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } +func _AuthService_LogoutAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LogoutRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthServiceServer).LogoutAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AuthService_LogoutAll_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthServiceServer).LogoutAll(ctx, req.(*LogoutRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _AuthService_UnlockPin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UnlockPinRequest) if err := dec(in); err != nil { @@ -335,6 +369,10 @@ var AuthService_ServiceDesc = grpc.ServiceDesc{ MethodName: "Logout", Handler: _AuthService_Logout_Handler, }, + { + MethodName: "LogoutAll", + Handler: _AuthService_LogoutAll_Handler, + }, { MethodName: "UnlockPin", Handler: _AuthService_UnlockPin_Handler, diff --git a/gen/identity.ts b/gen/identity.ts index a5b6f54..a24cab9 100644 --- a/gen/identity.ts +++ b/gen/identity.ts @@ -182,6 +182,8 @@ export interface AuthServiceClient { logout(request: LogoutRequest): Observable; + logoutAll(request: LogoutRequest): Observable; + unlockPin(request: UnlockPinRequest): Observable; verify2Fa(request: Verify2FaRequest): Observable; @@ -202,6 +204,8 @@ export interface AuthServiceController { logout(request: LogoutRequest): Promise | Observable | LogoutResponse; + logoutAll(request: LogoutRequest): Promise | Observable | LogoutResponse; + unlockPin(request: UnlockPinRequest): Promise | Observable | UnlockPinResponse; verify2Fa(request: Verify2FaRequest): Promise | Observable | Verify2FaResponse; @@ -215,6 +219,7 @@ export function AuthServiceControllerMethods() { "verifyToken", "getAccountRoleLevel", "logout", + "logoutAll", "unlockPin", "verify2Fa", ];