// package: emerald // file: auth.proto /* tslint:disable */ /* eslint-disable */ import * as grpc from "grpc"; import * as auth_pb from "./auth_pb"; interface IAuthService extends grpc.ServiceDefinition { authenticate: IAuthService_IAuthenticate; refresh: IAuthService_IRefresh; issueToken: IAuthService_IIssueToken; whoAmI: IAuthService_IWhoAmI; listTokens: IAuthService_IListTokens; deleteToken: IAuthService_IDeleteToken; } interface IAuthService_IAuthenticate extends grpc.MethodDefinition { path: "/emerald.Auth/Authenticate"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IAuthService_IRefresh extends grpc.MethodDefinition { path: "/emerald.Auth/Refresh"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IAuthService_IIssueToken extends grpc.MethodDefinition { path: "/emerald.Auth/IssueToken"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IAuthService_IWhoAmI extends grpc.MethodDefinition { path: "/emerald.Auth/WhoAmI"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IAuthService_IListTokens extends grpc.MethodDefinition { path: "/emerald.Auth/ListTokens"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IAuthService_IDeleteToken extends grpc.MethodDefinition { path: "/emerald.Auth/DeleteToken"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } export const AuthService: IAuthService; export interface IAuthServer { authenticate: grpc.handleUnaryCall; refresh: grpc.handleUnaryCall; issueToken: grpc.handleUnaryCall; whoAmI: grpc.handleUnaryCall; listTokens: grpc.handleUnaryCall; deleteToken: grpc.handleUnaryCall; } export interface IAuthClient { authenticate(request: auth_pb.AuthRequest, callback: (error: grpc.ServiceError | null, response: auth_pb.AuthResponse) => void): grpc.ClientUnaryCall; authenticate(request: auth_pb.AuthRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: auth_pb.AuthResponse) => void): grpc.ClientUnaryCall; authenticate(request: auth_pb.AuthRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: auth_pb.AuthResponse) => void): grpc.ClientUnaryCall; refresh(request: auth_pb.RefreshRequest, callback: (error: grpc.ServiceError | null, response: auth_pb.AuthResponse) => void): grpc.ClientUnaryCall; refresh(request: auth_pb.RefreshRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: auth_pb.AuthResponse) => void): grpc.ClientUnaryCall; refresh(request: auth_pb.RefreshRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: auth_pb.AuthResponse) => void): grpc.ClientUnaryCall; issueToken(request: auth_pb.IssueTokenRequest, callback: (error: grpc.ServiceError | null, response: auth_pb.IssuedTokenResponse) => void): grpc.ClientUnaryCall; issueToken(request: auth_pb.IssueTokenRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: auth_pb.IssuedTokenResponse) => void): grpc.ClientUnaryCall; issueToken(request: auth_pb.IssueTokenRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: auth_pb.IssuedTokenResponse) => void): grpc.ClientUnaryCall; whoAmI(request: auth_pb.WhoAmIRequest, callback: (error: grpc.ServiceError | null, response: auth_pb.WhoAmIResponse) => void): grpc.ClientUnaryCall; whoAmI(request: auth_pb.WhoAmIRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: auth_pb.WhoAmIResponse) => void): grpc.ClientUnaryCall; whoAmI(request: auth_pb.WhoAmIRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: auth_pb.WhoAmIResponse) => void): grpc.ClientUnaryCall; listTokens(request: auth_pb.ListTokensRequest, callback: (error: grpc.ServiceError | null, response: auth_pb.ListTokensResponse) => void): grpc.ClientUnaryCall; listTokens(request: auth_pb.ListTokensRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: auth_pb.ListTokensResponse) => void): grpc.ClientUnaryCall; listTokens(request: auth_pb.ListTokensRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: auth_pb.ListTokensResponse) => void): grpc.ClientUnaryCall; deleteToken(request: auth_pb.DeleteTokenRequest, callback: (error: grpc.ServiceError | null, response: auth_pb.DeleteTokenResponse) => void): grpc.ClientUnaryCall; deleteToken(request: auth_pb.DeleteTokenRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: auth_pb.DeleteTokenResponse) => void): grpc.ClientUnaryCall; deleteToken(request: auth_pb.DeleteTokenRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: auth_pb.DeleteTokenResponse) => void): grpc.ClientUnaryCall; } export class AuthClient extends grpc.Client implements IAuthClient { constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); public authenticate(request: auth_pb.AuthRequest, callback: (error: grpc.ServiceError | null, response: auth_pb.AuthResponse) => void): grpc.ClientUnaryCall; public authenticate(request: auth_pb.AuthRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: auth_pb.AuthResponse) => void): grpc.ClientUnaryCall; public authenticate(request: auth_pb.AuthRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: auth_pb.AuthResponse) => void): grpc.ClientUnaryCall; public refresh(request: auth_pb.RefreshRequest, callback: (error: grpc.ServiceError | null, response: auth_pb.AuthResponse) => void): grpc.ClientUnaryCall; public refresh(request: auth_pb.RefreshRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: auth_pb.AuthResponse) => void): grpc.ClientUnaryCall; public refresh(request: auth_pb.RefreshRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: auth_pb.AuthResponse) => void): grpc.ClientUnaryCall; public issueToken(request: auth_pb.IssueTokenRequest, callback: (error: grpc.ServiceError | null, response: auth_pb.IssuedTokenResponse) => void): grpc.ClientUnaryCall; public issueToken(request: auth_pb.IssueTokenRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: auth_pb.IssuedTokenResponse) => void): grpc.ClientUnaryCall; public issueToken(request: auth_pb.IssueTokenRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: auth_pb.IssuedTokenResponse) => void): grpc.ClientUnaryCall; public whoAmI(request: auth_pb.WhoAmIRequest, callback: (error: grpc.ServiceError | null, response: auth_pb.WhoAmIResponse) => void): grpc.ClientUnaryCall; public whoAmI(request: auth_pb.WhoAmIRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: auth_pb.WhoAmIResponse) => void): grpc.ClientUnaryCall; public whoAmI(request: auth_pb.WhoAmIRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: auth_pb.WhoAmIResponse) => void): grpc.ClientUnaryCall; public listTokens(request: auth_pb.ListTokensRequest, callback: (error: grpc.ServiceError | null, response: auth_pb.ListTokensResponse) => void): grpc.ClientUnaryCall; public listTokens(request: auth_pb.ListTokensRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: auth_pb.ListTokensResponse) => void): grpc.ClientUnaryCall; public listTokens(request: auth_pb.ListTokensRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: auth_pb.ListTokensResponse) => void): grpc.ClientUnaryCall; public deleteToken(request: auth_pb.DeleteTokenRequest, callback: (error: grpc.ServiceError | null, response: auth_pb.DeleteTokenResponse) => void): grpc.ClientUnaryCall; public deleteToken(request: auth_pb.DeleteTokenRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: auth_pb.DeleteTokenResponse) => void): grpc.ClientUnaryCall; public deleteToken(request: auth_pb.DeleteTokenRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: auth_pb.DeleteTokenResponse) => void): grpc.ClientUnaryCall; }