// 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; } export interface LdapAuthController { verifyUser(request: VerifyRequest): Promise | Observable | 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";