chore: auto-generate protobuf files [skip ci]

This commit is contained in:
github-actions[bot]
2026-04-05 09:39:06 +00:00
parent 74bc65b3e2
commit cadcbb468d
3 changed files with 54 additions and 54 deletions

View File

@@ -40,13 +40,13 @@ export interface GetAllRolesResponse {
export const RBAC_V1_PACKAGE_NAME = "rbac.v1";
export interface LdapAuthServiceClient {
export interface RbacServiceClient {
getAllPermissions(request: GetAllPermissionsRequest, metadata?: Metadata): Observable<GetAllPermissionsResponse>;
getAllRoles(request: GetAllRolesRequest, metadata?: Metadata): Observable<GetAllRolesResponse>;
}
export interface LdapAuthServiceController {
export interface RbacServiceController {
getAllPermissions(
request: GetAllPermissionsRequest,
metadata?: Metadata,
@@ -58,19 +58,19 @@ export interface LdapAuthServiceController {
): Promise<GetAllRolesResponse> | Observable<GetAllRolesResponse> | GetAllRolesResponse;
}
export function LdapAuthServiceControllerMethods() {
export function RbacServiceControllerMethods() {
return function (constructor: Function) {
const grpcMethods: string[] = ["getAllPermissions", "getAllRoles"];
for (const method of grpcMethods) {
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
GrpcMethod("LdapAuthService", method)(constructor.prototype[method], method, descriptor);
GrpcMethod("RbacService", method)(constructor.prototype[method], method, descriptor);
}
const grpcStreamMethods: string[] = [];
for (const method of grpcStreamMethods) {
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
GrpcStreamMethod("LdapAuthService", method)(constructor.prototype[method], method, descriptor);
GrpcStreamMethod("RbacService", method)(constructor.prototype[method], method, descriptor);
}
};
}
export const LDAP_AUTH_SERVICE_NAME = "LdapAuthService";
export const RBAC_SERVICE_NAME = "RbacService";