// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "api.proto" (package "api", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { APIService } from "./api"; import type { CleanScopeResult } from "./api"; import type { CleanScopeRequest } from "./api"; import type { DeleteScopeResult } from "./api"; import type { DeleteScopeRequest } from "./api"; import type { CreateScopeResult } from "./api"; import type { CreateScopeRequest } from "./api"; import type { RegisterPackageResult } from "./api"; import type { RegisterPackageRequest } from "./api"; import type { ListUserRPTsResponse } from "./api"; import type { ListUserRPTsRequest } from "./api"; import type { ListUserUIPermissionsResult } from "./api"; import type { ListUserUIPermissionsRequest } from "./api"; import type { GetUIPermissionsResult } from "./api"; import type { GetUIPermissionsRequest } from "./api"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { GetPermissionsResult } from "./api"; import type { GetPermissionsRequest } from "./api"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * @generated from protobuf service api.APIService */ export interface IAPIServiceClient { /** * @generated from protobuf rpc: GetPermissions */ getPermissions(input: GetPermissionsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetUIPermissions */ getUIPermissions(input: GetUIPermissionsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: ListUserUIPermissions */ listUserUIPermissions(input: ListUserUIPermissionsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: ListUserRPTs */ listUserRPTs(input: ListUserRPTsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: RegisterPackage */ registerPackage(input: RegisterPackageRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: CreateScope */ createScope(input: CreateScopeRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteScope */ deleteScope(input: DeleteScopeRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: CleanScope */ cleanScope(input: CleanScopeRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service api.APIService */ export class APIServiceClient implements IAPIServiceClient, ServiceInfo { typeName = APIService.typeName; methods = APIService.methods; options = APIService.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: GetPermissions */ getPermissions(input: GetPermissionsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetUIPermissions */ getUIPermissions(input: GetUIPermissionsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ListUserUIPermissions */ listUserUIPermissions(input: ListUserUIPermissionsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ListUserRPTs */ listUserRPTs(input: ListUserRPTsRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: RegisterPackage */ registerPackage(input: RegisterPackageRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: CreateScope */ createScope(input: CreateScopeRequest, options?: RpcOptions): UnaryCall { const method = this.methods[5], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: DeleteScope */ deleteScope(input: DeleteScopeRequest, options?: RpcOptions): UnaryCall { const method = this.methods[6], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: CleanScope */ cleanScope(input: CleanScopeRequest, options?: RpcOptions): UnaryCall { const method = this.methods[7], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }