@aneoconsultingfr/armonik.api
Version:
gRPC API to interact with ArmoniK built for the web
25 lines (22 loc) • 984 B
TypeScript
import { GetCurrentUserRequest, GetCurrentUserResponse } from './auth_common.js';
import 'protobufjs/minimal.js';
declare const protobufPackage = "armonik.api.grpc.v1.auth";
/** Authentication related methods within a service. */
/** Service for authentication management. */
interface Authentication {
/** Get current user */
GetCurrentUser(request: GetCurrentUserRequest): Promise<GetCurrentUserResponse>;
}
declare const AuthenticationServiceName = "armonik.api.grpc.v1.auth.Authentication";
declare class AuthenticationClientImpl implements Authentication {
private readonly rpc;
private readonly service;
constructor(rpc: Rpc, opts?: {
service?: string;
});
GetCurrentUser(request: GetCurrentUserRequest): Promise<GetCurrentUserResponse>;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export { Authentication, AuthenticationClientImpl, AuthenticationServiceName, protobufPackage };