chore: auto-generate protobuf files [skip ci]

This commit is contained in:
github-actions[bot]
2026-04-06 15:33:30 +00:00
parent e1edf2fa04
commit 6d480f7017
2 changed files with 152 additions and 45 deletions

View File

@@ -75,11 +75,7 @@ func (x *GetAllPermissionsRequest) GetSessionId() string {
type GetAllPermissionsResponse struct { type GetAllPermissionsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"` state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Permission *Permission `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"`
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
Module string `protobuf:"bytes,4,opt,name=module,proto3" json:"module,omitempty"`
Roles []string `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty"`
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
} }
@@ -114,35 +110,83 @@ func (*GetAllPermissionsResponse) Descriptor() ([]byte, []int) {
return file_rbac_proto_rawDescGZIP(), []int{1} return file_rbac_proto_rawDescGZIP(), []int{1}
} }
func (x *GetAllPermissionsResponse) GetId() string { func (x *GetAllPermissionsResponse) GetPermission() *Permission {
if x != nil {
return x.Permission
}
return nil
}
type Permission struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
Module string `protobuf:"bytes,4,opt,name=module,proto3" json:"module,omitempty"`
Roles []string `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Permission) Reset() {
*x = Permission{}
mi := &file_rbac_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Permission) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Permission) ProtoMessage() {}
func (x *Permission) ProtoReflect() protoreflect.Message {
mi := &file_rbac_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (*Permission) Descriptor() ([]byte, []int) {
return file_rbac_proto_rawDescGZIP(), []int{2}
}
func (x *Permission) GetId() string {
if x != nil { if x != nil {
return x.Id return x.Id
} }
return "" return ""
} }
func (x *GetAllPermissionsResponse) GetCode() string { func (x *Permission) GetCode() string {
if x != nil { if x != nil {
return x.Code return x.Code
} }
return "" return ""
} }
func (x *GetAllPermissionsResponse) GetDescription() string { func (x *Permission) GetDescription() string {
if x != nil { if x != nil {
return x.Description return x.Description
} }
return "" return ""
} }
func (x *GetAllPermissionsResponse) GetModule() string { func (x *Permission) GetModule() string {
if x != nil { if x != nil {
return x.Module return x.Module
} }
return "" return ""
} }
func (x *GetAllPermissionsResponse) GetRoles() []string { func (x *Permission) GetRoles() []string {
if x != nil { if x != nil {
return x.Roles return x.Roles
} }
@@ -159,7 +203,7 @@ type GetAllRolesRequest struct {
func (x *GetAllRolesRequest) Reset() { func (x *GetAllRolesRequest) Reset() {
*x = GetAllRolesRequest{} *x = GetAllRolesRequest{}
mi := &file_rbac_proto_msgTypes[2] mi := &file_rbac_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -171,7 +215,7 @@ func (x *GetAllRolesRequest) String() string {
func (*GetAllRolesRequest) ProtoMessage() {} func (*GetAllRolesRequest) ProtoMessage() {}
func (x *GetAllRolesRequest) ProtoReflect() protoreflect.Message { func (x *GetAllRolesRequest) ProtoReflect() protoreflect.Message {
mi := &file_rbac_proto_msgTypes[2] mi := &file_rbac_proto_msgTypes[3]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -184,7 +228,7 @@ func (x *GetAllRolesRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetAllRolesRequest.ProtoReflect.Descriptor instead. // Deprecated: Use GetAllRolesRequest.ProtoReflect.Descriptor instead.
func (*GetAllRolesRequest) Descriptor() ([]byte, []int) { func (*GetAllRolesRequest) Descriptor() ([]byte, []int) {
return file_rbac_proto_rawDescGZIP(), []int{2} return file_rbac_proto_rawDescGZIP(), []int{3}
} }
func (x *GetAllRolesRequest) GetUserId() string { func (x *GetAllRolesRequest) GetUserId() string {
@@ -203,19 +247,14 @@ func (x *GetAllRolesRequest) GetSessionId() string {
type GetAllRolesResponse struct { type GetAllRolesResponse struct {
state protoimpl.MessageState `protogen:"open.v1"` state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Roles *Roles `protobuf:"bytes,1,opt,name=roles,proto3" json:"roles,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Level int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"`
Permissions []string `protobuf:"bytes,4,rep,name=permissions,proto3" json:"permissions,omitempty"`
LdapMapping []string `protobuf:"bytes,5,rep,name=ldap_mapping,json=ldapMapping,proto3" json:"ldap_mapping,omitempty"`
Accounts []string `protobuf:"bytes,6,rep,name=accounts,proto3" json:"accounts,omitempty"`
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
} }
func (x *GetAllRolesResponse) Reset() { func (x *GetAllRolesResponse) Reset() {
*x = GetAllRolesResponse{} *x = GetAllRolesResponse{}
mi := &file_rbac_proto_msgTypes[3] mi := &file_rbac_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -227,7 +266,7 @@ func (x *GetAllRolesResponse) String() string {
func (*GetAllRolesResponse) ProtoMessage() {} func (*GetAllRolesResponse) ProtoMessage() {}
func (x *GetAllRolesResponse) ProtoReflect() protoreflect.Message { func (x *GetAllRolesResponse) ProtoReflect() protoreflect.Message {
mi := &file_rbac_proto_msgTypes[3] mi := &file_rbac_proto_msgTypes[4]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -240,45 +279,94 @@ func (x *GetAllRolesResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetAllRolesResponse.ProtoReflect.Descriptor instead. // Deprecated: Use GetAllRolesResponse.ProtoReflect.Descriptor instead.
func (*GetAllRolesResponse) Descriptor() ([]byte, []int) { func (*GetAllRolesResponse) Descriptor() ([]byte, []int) {
return file_rbac_proto_rawDescGZIP(), []int{3} return file_rbac_proto_rawDescGZIP(), []int{4}
} }
func (x *GetAllRolesResponse) GetId() string { func (x *GetAllRolesResponse) GetRoles() *Roles {
if x != nil {
return x.Roles
}
return nil
}
type Roles struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Level int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"`
Permissions []string `protobuf:"bytes,4,rep,name=permissions,proto3" json:"permissions,omitempty"`
LdapMapping []string `protobuf:"bytes,5,rep,name=ldap_mapping,json=ldapMapping,proto3" json:"ldap_mapping,omitempty"`
Accounts []string `protobuf:"bytes,6,rep,name=accounts,proto3" json:"accounts,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Roles) Reset() {
*x = Roles{}
mi := &file_rbac_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Roles) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Roles) ProtoMessage() {}
func (x *Roles) ProtoReflect() protoreflect.Message {
mi := &file_rbac_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Roles.ProtoReflect.Descriptor instead.
func (*Roles) Descriptor() ([]byte, []int) {
return file_rbac_proto_rawDescGZIP(), []int{5}
}
func (x *Roles) GetId() string {
if x != nil { if x != nil {
return x.Id return x.Id
} }
return "" return ""
} }
func (x *GetAllRolesResponse) GetName() string { func (x *Roles) GetName() string {
if x != nil { if x != nil {
return x.Name return x.Name
} }
return "" return ""
} }
func (x *GetAllRolesResponse) GetLevel() int32 { func (x *Roles) GetLevel() int32 {
if x != nil { if x != nil {
return x.Level return x.Level
} }
return 0 return 0
} }
func (x *GetAllRolesResponse) GetPermissions() []string { func (x *Roles) GetPermissions() []string {
if x != nil { if x != nil {
return x.Permissions return x.Permissions
} }
return nil return nil
} }
func (x *GetAllRolesResponse) GetLdapMapping() []string { func (x *Roles) GetLdapMapping() []string {
if x != nil { if x != nil {
return x.LdapMapping return x.LdapMapping
} }
return nil return nil
} }
func (x *GetAllRolesResponse) GetAccounts() []string { func (x *Roles) GetAccounts() []string {
if x != nil { if x != nil {
return x.Accounts return x.Accounts
} }
@@ -294,8 +382,13 @@ const file_rbac_proto_rawDesc = "" +
"\x18GetAllPermissionsRequest\x12\x17\n" + "\x18GetAllPermissionsRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" + "\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
"\n" + "\n" +
"session_id\x18\x02 \x01(\tR\tsessionId\"\x8f\x01\n" + "session_id\x18\x02 \x01(\tR\tsessionId\"P\n" +
"\x19GetAllPermissionsResponse\x12\x0e\n" + "\x19GetAllPermissionsResponse\x123\n" +
"\n" +
"permission\x18\x01 \x01(\v2\x13.rbac.v1.PermissionR\n" +
"permission\"\x80\x01\n" +
"\n" +
"Permission\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
"\x04code\x18\x02 \x01(\tR\x04code\x12 \n" + "\x04code\x18\x02 \x01(\tR\x04code\x12 \n" +
"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x16\n" + "\vdescription\x18\x03 \x01(\tR\vdescription\x12\x16\n" +
@@ -304,8 +397,10 @@ const file_rbac_proto_rawDesc = "" +
"\x12GetAllRolesRequest\x12\x17\n" + "\x12GetAllRolesRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" + "\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
"\n" + "\n" +
"session_id\x18\x02 \x01(\tR\tsessionId\"\xb0\x01\n" + "session_id\x18\x02 \x01(\tR\tsessionId\";\n" +
"\x13GetAllRolesResponse\x12\x0e\n" + "\x13GetAllRolesResponse\x12$\n" +
"\x05roles\x18\x01 \x01(\v2\x0e.rbac.v1.RolesR\x05roles\"\xa2\x01\n" +
"\x05Roles\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x14\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12\x14\n" +
"\x05level\x18\x03 \x01(\x05R\x05level\x12 \n" + "\x05level\x18\x03 \x01(\x05R\x05level\x12 \n" +
@@ -328,23 +423,27 @@ func file_rbac_proto_rawDescGZIP() []byte {
return file_rbac_proto_rawDescData return file_rbac_proto_rawDescData
} }
var file_rbac_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_rbac_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_rbac_proto_goTypes = []any{ var file_rbac_proto_goTypes = []any{
(*GetAllPermissionsRequest)(nil), // 0: rbac.v1.GetAllPermissionsRequest (*GetAllPermissionsRequest)(nil), // 0: rbac.v1.GetAllPermissionsRequest
(*GetAllPermissionsResponse)(nil), // 1: rbac.v1.GetAllPermissionsResponse (*GetAllPermissionsResponse)(nil), // 1: rbac.v1.GetAllPermissionsResponse
(*GetAllRolesRequest)(nil), // 2: rbac.v1.GetAllRolesRequest (*Permission)(nil), // 2: rbac.v1.Permission
(*GetAllRolesResponse)(nil), // 3: rbac.v1.GetAllRolesResponse (*GetAllRolesRequest)(nil), // 3: rbac.v1.GetAllRolesRequest
(*GetAllRolesResponse)(nil), // 4: rbac.v1.GetAllRolesResponse
(*Roles)(nil), // 5: rbac.v1.Roles
} }
var file_rbac_proto_depIdxs = []int32{ var file_rbac_proto_depIdxs = []int32{
0, // 0: rbac.v1.RbacService.GetAllPermissions:input_type -> rbac.v1.GetAllPermissionsRequest 2, // 0: rbac.v1.GetAllPermissionsResponse.permission:type_name -> rbac.v1.Permission
2, // 1: rbac.v1.RbacService.GetAllRoles:input_type -> rbac.v1.GetAllRolesRequest 5, // 1: rbac.v1.GetAllRolesResponse.roles:type_name -> rbac.v1.Roles
1, // 2: rbac.v1.RbacService.GetAllPermissions:output_type -> rbac.v1.GetAllPermissionsResponse 0, // 2: rbac.v1.RbacService.GetAllPermissions:input_type -> rbac.v1.GetAllPermissionsRequest
3, // 3: rbac.v1.RbacService.GetAllRoles:output_type -> rbac.v1.GetAllRolesResponse 3, // 3: rbac.v1.RbacService.GetAllRoles:input_type -> rbac.v1.GetAllRolesRequest
2, // [2:4] is the sub-list for method output_type 1, // 4: rbac.v1.RbacService.GetAllPermissions:output_type -> rbac.v1.GetAllPermissionsResponse
0, // [0:2] is the sub-list for method input_type 4, // 5: rbac.v1.RbacService.GetAllRoles:output_type -> rbac.v1.GetAllRolesResponse
0, // [0:0] is the sub-list for extension type_name 4, // [4:6] is the sub-list for method output_type
0, // [0:0] is the sub-list for extension extendee 2, // [2:4] is the sub-list for method input_type
0, // [0:0] is the sub-list for field type_name 2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
} }
func init() { file_rbac_proto_init() } func init() { file_rbac_proto_init() }
@@ -358,7 +457,7 @@ func file_rbac_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_rbac_proto_rawDesc), len(file_rbac_proto_rawDesc)), RawDescriptor: unsafe.Slice(unsafe.StringData(file_rbac_proto_rawDesc), len(file_rbac_proto_rawDesc)),
NumEnums: 0, NumEnums: 0,
NumMessages: 4, NumMessages: 6,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },

View File

@@ -17,6 +17,10 @@ export interface GetAllPermissionsRequest {
} }
export interface GetAllPermissionsResponse { export interface GetAllPermissionsResponse {
permission: Permission | undefined;
}
export interface Permission {
id: string; id: string;
code: string; code: string;
description: string; description: string;
@@ -30,6 +34,10 @@ export interface GetAllRolesRequest {
} }
export interface GetAllRolesResponse { export interface GetAllRolesResponse {
roles: Roles | undefined;
}
export interface Roles {
id: string; id: string;
name: string; name: string;
level: number; level: number;