UNPKG

spot-sdk-ts

Version:

TypeScript bindings based on protobufs (proto3) provided by Boston Dynamics

21 lines 877 B
import { GetAuthTokenResponse, GetAuthTokenRequest } from "./auth"; export declare const protobufPackage = "bosdyn.api"; /** * The AuthService provides clients the ability to convert a user/password pair into a token. The * token can then be added to the http2 headers for future requests in order to establish the * identity of the requester. */ export interface AuthService { /** Request to get the auth token for the robot. */ GetAuthToken(request: GetAuthTokenRequest): Promise<GetAuthTokenResponse>; } export declare class AuthServiceClientImpl implements AuthService { private readonly rpc; constructor(rpc: Rpc); GetAuthToken(request: GetAuthTokenRequest): Promise<GetAuthTokenResponse>; } interface Rpc { request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>; } export {}; //# sourceMappingURL=auth_service.d.ts.map