odin-protocol-core
Version:
The world's first standardized AI-to-AI communication infrastructure for JavaScript/TypeScript - 100% functional with 57K+ msgs/sec throughput
28 lines (27 loc) • 1.21 kB
JavaScript
;
/**
* Core ODIN Protocol Types and Interfaces
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.OdinEventType = exports.ConnectionState = void 0;
var ConnectionState;
(function (ConnectionState) {
ConnectionState["DISCONNECTED"] = "disconnected";
ConnectionState["CONNECTING"] = "connecting";
ConnectionState["CONNECTED"] = "connected";
ConnectionState["DISCONNECTING"] = "disconnecting";
ConnectionState["ERROR"] = "error";
ConnectionState["RECONNECTING"] = "reconnecting";
})(ConnectionState || (exports.ConnectionState = ConnectionState = {}));
var OdinEventType;
(function (OdinEventType) {
OdinEventType["MESSAGE_SENT"] = "message_sent";
OdinEventType["MESSAGE_RECEIVED"] = "message_received";
OdinEventType["CONNECTION_ESTABLISHED"] = "connection_established";
OdinEventType["CONNECTION_LOST"] = "connection_lost";
OdinEventType["ERROR_OCCURRED"] = "error_occurred";
OdinEventType["PERFORMANCE_UPDATE"] = "performance_update";
OdinEventType["SYSTEM"] = "system";
OdinEventType["MESSAGE"] = "message";
OdinEventType["ERROR"] = "error";
})(OdinEventType || (exports.OdinEventType = OdinEventType = {}));