"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.__tsfTypeAliases = exports.ClientInvocationError = exports.ClientDisconnectedError = exports.ClientNotFoundError = void 0;
const tslib_1 = require("tslib");
const _a = tslib_1.__importStar(require("@zyno-io/ts-reflection/type-metadata-runtime"));
const __tsf_metadata_type = _a.createCompactMetadataRegistryV1("[1,[{\"kind\":6}]]", []);
let _ClientNotFoundErrorMetadata_1;
class ClientNotFoundError extends Error {
    constructor(clientId) {
        super(`Client not found: ${clientId}`);
        this.name = 'ClientNotFoundError';
    }
    static __tsfType = _ClientNotFoundErrorMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"ClientNotFoundError\",\"typeName\":\"ClientNotFoundError\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"clientId\",\"type\":{\"$tsfType\":0},\"optional\":false,\"default\":false}]}]", [() => ClientNotFoundError], __tsf_metadata_type);
}
exports.ClientNotFoundError = ClientNotFoundError;
_ClientNotFoundErrorMetadata_1.classType = ClientNotFoundError;
ClientNotFoundError.__tsfType = _ClientNotFoundErrorMetadata_1;
let _ClientDisconnectedErrorMetadata_1;
class ClientDisconnectedError extends Error {
    constructor(clientId) {
        super(`Client disconnected: ${clientId}`);
        this.name = 'ClientDisconnectedError';
    }
    static __tsfType = _ClientDisconnectedErrorMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"ClientDisconnectedError\",\"typeName\":\"ClientDisconnectedError\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"clientId\",\"type\":{\"$tsfType\":0},\"optional\":false,\"default\":false}]}]", [() => ClientDisconnectedError], __tsf_metadata_type);
}
exports.ClientDisconnectedError = ClientDisconnectedError;
_ClientDisconnectedErrorMetadata_1.classType = ClientDisconnectedError;
ClientDisconnectedError.__tsfType = _ClientDisconnectedErrorMetadata_1;
let _ClientInvocationErrorMetadata_1;
class ClientInvocationError extends Error {
    constructor(message) {
        super(message);
        this.name = 'ClientInvocationError';
    }
    static __tsfType = _ClientInvocationErrorMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"ClientInvocationError\",\"typeName\":\"ClientInvocationError\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"message\",\"type\":{\"$tsfType\":0},\"optional\":false,\"default\":false}]}]", [() => ClientInvocationError], __tsf_metadata_type);
}
exports.ClientInvocationError = ClientInvocationError;
_ClientInvocationErrorMetadata_1.classType = ClientInvocationError;
ClientInvocationError.__tsfType = _ClientInvocationErrorMetadata_1;
exports.__tsfTypeAliases = JSON.parse("[1,{\"MeshClientClaimCommitResult\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":10,\"literal\":\"previous-changed\"}],\"typeName\":\"MeshClientClaimCommitResult\"},\"MeshClientListPage\":{\"kind\":18,\"typeName\":\"MeshClientListPage\",\"types\":[{\"kind\":20,\"name\":\"clients\",\"type\":{\"kind\":14,\"type\":{\"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\":\"connectionId\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"processId\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"connectedAt\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"metadata\",\"type\":{\"kind\":2,\"typeName\":\"TMeta\"},\"optional\":false}]}},\"optional\":false},{\"kind\":20,\"name\":\"cursor\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true}],\"typeParameters\":[\"TMeta\"]},\"MeshClientRecord\":{\"kind\":18,\"typeName\":\"MeshClientRecord\",\"types\":[{\"kind\":20,\"name\":\"clientId\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"nodeId\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"connectionId\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"processId\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"connectedAt\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"metadata\",\"type\":{\"kind\":2,\"typeName\":\"TMeta\"},\"optional\":false},{\"kind\":20,\"name\":\"state\",\"type\":{\"kind\":12,\"types\":[{\"kind\":10,\"literal\":\"active\"},{\"kind\":10,\"literal\":\"pending\"}],\"typeName\":\"MeshClientRegistrationState\"},\"optional\":false},{\"kind\":20,\"name\":\"claimId\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true}],\"typeParameters\":[\"TMeta\"]},\"MeshClientRegistrationState\":{\"kind\":12,\"types\":[{\"kind\":10,\"literal\":\"active\"},{\"kind\":10,\"literal\":\"pending\"}],\"typeName\":\"MeshClientRegistrationState\"},\"MeshClientRegistryBackend\":{\"kind\":18,\"typeName\":\"MeshClientRegistryBackend\",\"types\":[],\"typeParameters\":[\"TMeta\"]},\"OrphanedClientDelivery\":{\"kind\":18,\"typeName\":\"OrphanedClientDelivery\",\"types\":[{\"kind\":20,\"name\":\"id\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"nodeId\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"clients\",\"type\":{\"kind\":14,\"type\":{\"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\":\"connectionId\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"processId\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"connectedAt\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"metadata\",\"type\":{\"kind\":2,\"typeName\":\"TMeta\"},\"optional\":false}]}},\"optional\":false},{\"kind\":20,\"name\":\"claimToken\",\"type\":{\"kind\":6},\"optional\":false}],\"typeParameters\":[\"TMeta\"]},\"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\":20,\"name\":\"supersededConnectionId\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true}]},{\"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\":\"connectionId\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"processId\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"connectedAt\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"metadata\",\"type\":{\"kind\":2,\"typeName\":\"TMeta\"},\"optional\":false}],\"typeParameters\":[\"TMeta\"]}}]")[1];
//# sourceMappingURL=types.js.map