chore: auto-generate protobuf files [skip ci]

This commit is contained in:
github-actions[bot]
2026-04-01 14:28:08 +00:00
parent be3d0ea089
commit f972282031
3 changed files with 323 additions and 112 deletions

View File

@@ -19,11 +19,12 @@ import (
const _ = grpc.SupportPackageIsVersion9
const (
AuthService_Login_FullMethodName = "/identity.AuthService/Login"
AuthService_Refresh_FullMethodName = "/identity.AuthService/Refresh"
AuthService_Logout_FullMethodName = "/identity.AuthService/Logout"
AuthService_UnlockPin_FullMethodName = "/identity.AuthService/UnlockPin"
AuthService_Verify2Fa_FullMethodName = "/identity.AuthService/Verify2Fa"
AuthService_Login_FullMethodName = "/identity.AuthService/Login"
AuthService_Refresh_FullMethodName = "/identity.AuthService/Refresh"
AuthService_VerifyToken_FullMethodName = "/identity.AuthService/VerifyToken"
AuthService_Logout_FullMethodName = "/identity.AuthService/Logout"
AuthService_UnlockPin_FullMethodName = "/identity.AuthService/UnlockPin"
AuthService_Verify2Fa_FullMethodName = "/identity.AuthService/Verify2Fa"
)
// AuthServiceClient is the client API for AuthService service.
@@ -32,6 +33,7 @@ const (
type AuthServiceClient interface {
Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
Refresh(ctx context.Context, in *RefreshRequest, opts ...grpc.CallOption) (*RefreshResponse, error)
VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*VerifyTokenResponse, error)
Logout(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)
@@ -65,6 +67,16 @@ func (c *authServiceClient) Refresh(ctx context.Context, in *RefreshRequest, opt
return out, nil
}
func (c *authServiceClient) VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*VerifyTokenResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(VerifyTokenResponse)
err := c.cc.Invoke(ctx, AuthService_VerifyToken_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *authServiceClient) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(LogoutResponse)
@@ -101,6 +113,7 @@ func (c *authServiceClient) Verify2Fa(ctx context.Context, in *Verify2FaRequest,
type AuthServiceServer interface {
Login(context.Context, *LoginRequest) (*LoginResponse, error)
Refresh(context.Context, *RefreshRequest) (*RefreshResponse, error)
VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenResponse, error)
Logout(context.Context, *LogoutRequest) (*LogoutResponse, error)
UnlockPin(context.Context, *UnlockPinRequest) (*UnlockPinResponse, error)
Verify2Fa(context.Context, *Verify2FaRequest) (*Verify2FaResponse, error)
@@ -120,6 +133,9 @@ func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*Lo
func (UnimplementedAuthServiceServer) Refresh(context.Context, *RefreshRequest) (*RefreshResponse, error) {
return nil, status.Error(codes.Unimplemented, "method Refresh not implemented")
}
func (UnimplementedAuthServiceServer) VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenResponse, error) {
return nil, status.Error(codes.Unimplemented, "method VerifyToken not implemented")
}
func (UnimplementedAuthServiceServer) Logout(context.Context, *LogoutRequest) (*LogoutResponse, error) {
return nil, status.Error(codes.Unimplemented, "method Logout not implemented")
}
@@ -186,6 +202,24 @@ func _AuthService_Refresh_Handler(srv interface{}, ctx context.Context, dec func
return interceptor(ctx, in, info, handler)
}
func _AuthService_VerifyToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(VerifyTokenRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AuthServiceServer).VerifyToken(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: AuthService_VerifyToken_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AuthServiceServer).VerifyToken(ctx, req.(*VerifyTokenRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AuthService_Logout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LogoutRequest)
if err := dec(in); err != nil {
@@ -255,6 +289,10 @@ var AuthService_ServiceDesc = grpc.ServiceDesc{
MethodName: "Refresh",
Handler: _AuthService_Refresh_Handler,
},
{
MethodName: "VerifyToken",
Handler: _AuthService_VerifyToken_Handler,
},
{
MethodName: "Logout",
Handler: _AuthService_Logout_Handler,