"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.__tsfTypeAliases = exports.ClientNotFoundError = exports.ClientInvocationError = exports.ClientDisconnectedError = exports.MeshSrpcServer = exports.MeshClientService = exports.MeshClientRegistry = exports.destroyClientRedis = exports.MeshClientRedisRegistry = void 0;
const tslib_1 = require("tslib");
const _a = tslib_1.__importStar(require("@zyno-io/ts-server-foundation/type-metadata-runtime"));
var mesh_client_redis_registry_1 = require("./mesh-client-redis-registry");
Object.defineProperty(exports, "MeshClientRedisRegistry", { enumerable: true, get: function () { return mesh_client_redis_registry_1.MeshClientRedisRegistry; } });
Object.defineProperty(exports, "destroyClientRedis", { enumerable: true, get: function () { return mesh_client_redis_registry_1.destroyClientRedis; } });
var mesh_client_registry_1 = require("./mesh-client-registry");
Object.defineProperty(exports, "MeshClientRegistry", { enumerable: true, get: function () { return mesh_client_registry_1.MeshClientRegistry; } });
var mesh_client_service_1 = require("./mesh-client-service");
Object.defineProperty(exports, "MeshClientService", { enumerable: true, get: function () { return mesh_client_service_1.MeshClientService; } });
var mesh_srpc_server_1 = require("./mesh-srpc-server");
Object.defineProperty(exports, "MeshSrpcServer", { enumerable: true, get: function () { return mesh_srpc_server_1.MeshSrpcServer; } });
var types_1 = require("./types");
Object.defineProperty(exports, "ClientDisconnectedError", { enumerable: true, get: function () { return types_1.ClientDisconnectedError; } });
Object.defineProperty(exports, "ClientInvocationError", { enumerable: true, get: function () { return types_1.ClientInvocationError; } });
Object.defineProperty(exports, "ClientNotFoundError", { enumerable: true, get: function () { return types_1.ClientNotFoundError; } });
exports.__tsfTypeAliases = _a.decodeCompactMetadataV1("[1,{\"MeshClientRegistryBackend\":{\"kind\":18,\"typeName\":\"MeshClientRegistryBackend\",\"types\":[]},\"MeshClientServiceOptions\":{\"kind\":18,\"typeName\":\"MeshClientServiceOptions\",\"types\":[{\"kind\":20,\"name\":\"key\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"meshOptions\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"MeshServiceOptions\",\"types\":[{\"kind\":20,\"name\":\"heartbeatIntervalMs\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"nodeTtlMs\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"requestTimeoutMs\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"leaderOptions\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"LeaderServiceOptions\",\"types\":[{\"kind\":20,\"name\":\"ttlMs\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"renewalIntervalMs\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"retryDelayMs\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true}]},{\"kind\":4}]},\"optional\":true}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"registryBackend\",\"type\":{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"MeshClientRegistryBackend\",\"classType\":{\"$tsfImport\":[0,\"./types\",\"MeshClientRegistryBackend\"]},\"typeArguments\":[{\"kind\":16,\"typeName\":\"TMeta\",\"classType\":{\"$tsf\":1}}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"clientInvokeFn\",\"type\":{\"kind\":2,\"typeName\":\"(clientId: string, type: string, data: unknown, timeoutMs?: number) =\\u003e Promise\\u003cunknown\\u003e\"},\"optional\":false},{\"kind\":20,\"name\":\"clientUpdateMetaFn\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"(clientId: string, metadata: TMeta) =\\u003e boolean\"},{\"kind\":4}]},\"optional\":true}]},\"MeshSrpcServerOptions\":{\"kind\":18,\"typeName\":\"MeshSrpcServerOptions\",\"types\":[{\"kind\":20,\"name\":\"meshKey\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"meshOptions\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"MeshServiceOptions\",\"types\":[{\"kind\":20,\"name\":\"heartbeatIntervalMs\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"nodeTtlMs\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"requestTimeoutMs\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"leaderOptions\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"LeaderServiceOptions\",\"types\":[{\"kind\":20,\"name\":\"ttlMs\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"renewalIntervalMs\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"retryDelayMs\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true}]},{\"kind\":4}]},\"optional\":true}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"registryBackend\",\"type\":{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"MeshClientRegistryBackend\",\"classType\":{\"$tsfImport\":[0,\"./types\",\"MeshClientRegistryBackend\"]},\"typeArguments\":[{\"kind\":16,\"typeName\":\"TRegistryMeta\",\"classType\":{\"$tsf\":2}}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"extractMetadata\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"(stream: SrpcStream\\u003cTMeta\\u003e) =\\u003e TRegistryMeta\"},{\"kind\":4}]},\"optional\":true}]},\"RegisterResult\":{\"kind\":12,\"types\":[{\"kind\":18,\"types\":[{\"kind\":20,\"name\":\"status\",\"type\":{\"kind\":10,\"literal\":\"ok\"},\"optional\":false},{\"kind\":20,\"name\":\"supersededNodeId\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":5}]},\"optional\":false}]},{\"kind\":18,\"types\":[{\"kind\":20,\"name\":\"status\",\"type\":{\"kind\":10,\"literal\":\"conflict\"},\"optional\":false},{\"kind\":20,\"name\":\"ownerNodeId\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":5}]},\"optional\":false}]}],\"typeName\":\"RegisterResult\"},\"RegisteredClient\":{\"kind\":18,\"typeName\":\"RegisteredClient\",\"types\":[{\"kind\":20,\"name\":\"clientId\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"nodeId\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"connectedAt\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"metadata\",\"type\":{\"kind\":16,\"typeName\":\"TMeta\",\"classType\":{\"$tsf\":1}},\"optional\":false}]}}]", [require, () => (typeof TMeta !== "undefined" ? TMeta : (typeof exports !== "undefined" ? exports.TMeta : undefined)), () => (typeof TRegistryMeta !== "undefined" ? TRegistryMeta : (typeof exports !== "undefined" ? exports.TRegistryMeta : undefined))]);
//# sourceMappingURL=index.js.map