UNPKG

@ydbjs/api

Version:

TypeScript gRPC service definitions and protobuf types for all YDB APIs. Enables strongly-typed client generation and low-level protocol access.

30 lines 1.28 kB
// @generated by protoc-gen-nice-grpc v1 with parameter "target=ts,import_extension=js" // @generated from file ydb_auth_v1.proto (package Ydb.Auth.V1, syntax proto3) /* eslint-disable */ import { create, fromBinary, toBinary } from "@bufbuild/protobuf"; import { LoginRequestSchema, LoginResponseSchema } from "./protos/ydb_auth_pb.js"; /** * @generated from service Ydb.Auth.V1.AuthService */ export const AuthServiceDefinition = { /** * Perform login using built-in auth system * * @generated from rpc Ydb.Auth.V1.AuthService.Login */ login: { path: "/Ydb.Auth.V1.AuthService/Login", requestStream: false, requestSerialize: (message) => toBinary(LoginRequestSchema, create(LoginRequestSchema, message)), requestDeserialize: (bytes) => fromBinary(LoginRequestSchema, bytes), responseStream: false, responseSerialize: (message) => toBinary(LoginResponseSchema, create(LoginResponseSchema, message)), responseDeserialize: (bytes) => fromBinary(LoginResponseSchema, bytes), options: {}, }, }; //@ts-expect-error AuthServiceDefinition["name"] = "AuthService"; //@ts-expect-error AuthServiceDefinition["fullName"] = "Ydb.Auth.V1.AuthService"; //# sourceMappingURL=ydb_auth_v1_grpc_pb.js.map