Files
npm-core-sdk/api.client.ts
2026-02-18 15:36:37 +00:00

142 lines
7.2 KiB
TypeScript

// @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 { SynchronizeUserRPTsResponse } from "./api";
import type { SynchronizeUserRPTsRequest } 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<GetPermissionsRequest, GetPermissionsResult>;
/**
* @generated from protobuf rpc: GetUIPermissions
*/
getUIPermissions(input: GetUIPermissionsRequest, options?: RpcOptions): UnaryCall<GetUIPermissionsRequest, GetUIPermissionsResult>;
/**
* @generated from protobuf rpc: ListUserUIPermissions
*/
listUserUIPermissions(input: ListUserUIPermissionsRequest, options?: RpcOptions): UnaryCall<ListUserUIPermissionsRequest, ListUserUIPermissionsResult>;
/**
* @generated from protobuf rpc: ListUserRPTs
*/
listUserRPTs(input: ListUserRPTsRequest, options?: RpcOptions): UnaryCall<ListUserRPTsRequest, ListUserRPTsResponse>;
/**
* @generated from protobuf rpc: SynchronizeUserRPTs
*/
synchronizeUserRPTs(input: SynchronizeUserRPTsRequest, options?: RpcOptions): UnaryCall<SynchronizeUserRPTsRequest, SynchronizeUserRPTsResponse>;
/**
* @generated from protobuf rpc: RegisterPackage
*/
registerPackage(input: RegisterPackageRequest, options?: RpcOptions): UnaryCall<RegisterPackageRequest, RegisterPackageResult>;
/**
* @generated from protobuf rpc: CreateScope
*/
createScope(input: CreateScopeRequest, options?: RpcOptions): UnaryCall<CreateScopeRequest, CreateScopeResult>;
/**
* @generated from protobuf rpc: DeleteScope
*/
deleteScope(input: DeleteScopeRequest, options?: RpcOptions): UnaryCall<DeleteScopeRequest, DeleteScopeResult>;
/**
* @generated from protobuf rpc: CleanScope
*/
cleanScope(input: CleanScopeRequest, options?: RpcOptions): UnaryCall<CleanScopeRequest, CleanScopeResult>;
}
/**
* @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<GetPermissionsRequest, GetPermissionsResult> {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return stackIntercept<GetPermissionsRequest, GetPermissionsResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetUIPermissions
*/
getUIPermissions(input: GetUIPermissionsRequest, options?: RpcOptions): UnaryCall<GetUIPermissionsRequest, GetUIPermissionsResult> {
const method = this.methods[1], opt = this._transport.mergeOptions(options);
return stackIntercept<GetUIPermissionsRequest, GetUIPermissionsResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListUserUIPermissions
*/
listUserUIPermissions(input: ListUserUIPermissionsRequest, options?: RpcOptions): UnaryCall<ListUserUIPermissionsRequest, ListUserUIPermissionsResult> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
return stackIntercept<ListUserUIPermissionsRequest, ListUserUIPermissionsResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListUserRPTs
*/
listUserRPTs(input: ListUserRPTsRequest, options?: RpcOptions): UnaryCall<ListUserRPTsRequest, ListUserRPTsResponse> {
const method = this.methods[3], opt = this._transport.mergeOptions(options);
return stackIntercept<ListUserRPTsRequest, ListUserRPTsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: SynchronizeUserRPTs
*/
synchronizeUserRPTs(input: SynchronizeUserRPTsRequest, options?: RpcOptions): UnaryCall<SynchronizeUserRPTsRequest, SynchronizeUserRPTsResponse> {
const method = this.methods[4], opt = this._transport.mergeOptions(options);
return stackIntercept<SynchronizeUserRPTsRequest, SynchronizeUserRPTsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: RegisterPackage
*/
registerPackage(input: RegisterPackageRequest, options?: RpcOptions): UnaryCall<RegisterPackageRequest, RegisterPackageResult> {
const method = this.methods[5], opt = this._transport.mergeOptions(options);
return stackIntercept<RegisterPackageRequest, RegisterPackageResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CreateScope
*/
createScope(input: CreateScopeRequest, options?: RpcOptions): UnaryCall<CreateScopeRequest, CreateScopeResult> {
const method = this.methods[6], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateScopeRequest, CreateScopeResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteScope
*/
deleteScope(input: DeleteScopeRequest, options?: RpcOptions): UnaryCall<DeleteScopeRequest, DeleteScopeResult> {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteScopeRequest, DeleteScopeResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CleanScope
*/
cleanScope(input: CleanScopeRequest, options?: RpcOptions): UnaryCall<CleanScopeRequest, CleanScopeResult> {
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<CleanScopeRequest, CleanScopeResult>("unary", this._transport, method, opt, input);
}
}