chore: auto-generate protobuf files [skip ci]

This commit is contained in:
github-actions[bot]
2026-03-30 15:31:20 +00:00
parent 4f1a68df5a
commit 4c98db2dfc
6 changed files with 2718 additions and 3 deletions

56
gen/ldap.ts Normal file
View File

@@ -0,0 +1,56 @@
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v2.11.6
// protoc v3.21.12
// source: ldap.proto
/* eslint-disable */
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
import { Observable } from "rxjs";
export const protobufPackage = "ldap_service";
export interface VerifyRequest {
username: string;
password: string;
}
export interface VerifyResponse {
success: boolean;
errorMessage: string;
user: UserData | undefined;
}
export interface UserData {
dn: string;
displayName: string;
groups: string[];
isActive: boolean;
}
export const LDAP_SERVICE_PACKAGE_NAME = "ldap_service";
export interface LdapAuthClient {
verifyUser(request: VerifyRequest): Observable<VerifyResponse>;
}
export interface LdapAuthController {
verifyUser(request: VerifyRequest): Promise<VerifyResponse> | Observable<VerifyResponse> | VerifyResponse;
}
export function LdapAuthControllerMethods() {
return function (constructor: Function) {
const grpcMethods: string[] = ["verifyUser"];
for (const method of grpcMethods) {
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
GrpcMethod("LdapAuth", method)(constructor.prototype[method], method, descriptor);
}
const grpcStreamMethods: string[] = [];
for (const method of grpcStreamMethods) {
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
GrpcStreamMethod("LdapAuth", method)(constructor.prototype[method], method, descriptor);
}
};
}
export const LDAP_AUTH_SERVICE_NAME = "LdapAuth";