import { RuntimeGrantService } from "./grant.js";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
/**
 * @generated from protobuf service nimi.runtime.v1.RuntimeGrantService
 */
export class RuntimeGrantServiceClient {
    _transport;
    typeName = RuntimeGrantService.typeName;
    methods = RuntimeGrantService.methods;
    options = RuntimeGrantService.options;
    constructor(_transport) {
        this._transport = _transport;
    }
    /**
     * @generated from protobuf rpc: AuthorizeExternalPrincipal
     */
    authorizeExternalPrincipal(input, options) {
        const method = this.methods[0], opt = this._transport.mergeOptions(options);
        return stackIntercept("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: ValidateAppAccessToken
     */
    validateAppAccessToken(input, options) {
        const method = this.methods[1], opt = this._transport.mergeOptions(options);
        return stackIntercept("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: RevokeAppAccessToken
     */
    revokeAppAccessToken(input, options) {
        const method = this.methods[2], opt = this._transport.mergeOptions(options);
        return stackIntercept("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: IssueDelegatedAccessToken
     */
    issueDelegatedAccessToken(input, options) {
        const method = this.methods[3], opt = this._transport.mergeOptions(options);
        return stackIntercept("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: ListTokenChain
     */
    listTokenChain(input, options) {
        const method = this.methods[4], opt = this._transport.mergeOptions(options);
        return stackIntercept("unary", this._transport, method, opt, input);
    }
}
//# sourceMappingURL=grant.client.js.map