// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "nats-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 { NatsService } from "./nats-api"; import type { PushMessageResult } from "./nats-api"; import type { PushMessageRequest } from "./nats-api"; import type { RenewPartnerAppUserCredentialsResult } from "./nats-api"; import type { RenewPartnerAppUserCredentialsRequest } from "./nats-api"; import type { RenewProjectAccountCredentialsResult } from "./nats-api"; import type { RenewProjectAccountCredentialsRequest } from "./nats-api"; import type { DeletePartnerAppUserResult } from "./nats-api"; import type { DeletePartnerAppUserRequest } from "./nats-api"; import type { CreatePartnerAppUserResult } from "./nats-api"; import type { CreatePartnerAppUserRequest } from "./nats-api"; import type { DeleteProjectAccountResult } from "./nats-api"; import type { DeleteProjectAccountRequest } from "./nats-api"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { CreateProjectAccountResult } from "./nats-api"; import type { CreateProjectAccountRequest } from "./nats-api"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * @generated from protobuf service api.NatsService */ export interface INatsServiceClient { /** * @generated from protobuf rpc: CreateProjectAccount */ createProjectAccount(input: CreateProjectAccountRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteProjectAccount */ deleteProjectAccount(input: DeleteProjectAccountRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: CreatePartnerAppUser */ createPartnerAppUser(input: CreatePartnerAppUserRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeletePartnerAppUser */ deletePartnerAppUser(input: DeletePartnerAppUserRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: RenewProjectAccountCredentials */ renewProjectAccountCredentials(input: RenewProjectAccountCredentialsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: RenewPartnerAppUserCredentials */ renewPartnerAppUserCredentials(input: RenewPartnerAppUserCredentialsRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: PushMessage */ pushMessage(input: PushMessageRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service api.NatsService */ export class NatsServiceClient implements INatsServiceClient, ServiceInfo { typeName = NatsService.typeName; methods = NatsService.methods; options = NatsService.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: CreateProjectAccount */ createProjectAccount(input: CreateProjectAccountRequest, 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: DeleteProjectAccount */ deleteProjectAccount(input: DeleteProjectAccountRequest, 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: CreatePartnerAppUser */ createPartnerAppUser(input: CreatePartnerAppUserRequest, 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: DeletePartnerAppUser */ deletePartnerAppUser(input: DeletePartnerAppUserRequest, 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: RenewProjectAccountCredentials */ renewProjectAccountCredentials(input: RenewProjectAccountCredentialsRequest, 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: RenewPartnerAppUserCredentials */ renewPartnerAppUserCredentials(input: RenewPartnerAppUserCredentialsRequest, 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: PushMessage */ pushMessage(input: PushMessageRequest, options?: RpcOptions): UnaryCall { const method = this.methods[6], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }