var AgentMessageType;
(function (AgentMessageType) {
    AgentMessageType["INTEGRATION_ERROR"] = "integrationError";
    AgentMessageType["INTERNAL_ERROR"] = "internalError";
    AgentMessageType["UNAUTHORIZED_ERROR"] = "unauthorizedError";
    AgentMessageType["UNCATEGORIZED_ERROR"] = "uncategorizedError"; // Uncategorized errors, we should categorize them aggressively as they present themselves
})(AgentMessageType || (AgentMessageType = {}));
var UIErrorPriority;
(function (UIErrorPriority) {
    UIErrorPriority[UIErrorPriority["P1"] = 1] = "P1";
    UIErrorPriority[UIErrorPriority["P2"] = 2] = "P2"; //Error affecting user, but no immediate action for us
})(UIErrorPriority || (UIErrorPriority = {}));
export var UIErrorType;
(function (UIErrorType) {
    UIErrorType["SERVER_ERROR_5XX"] = "serverError5XX";
    UIErrorType["SERVER_ERROR_4XX"] = "serverError4XX";
    UIErrorType["SERVER_ERROR_OTHER"] = "serverErrorOther";
    UIErrorType["CRASH_APP_ERROR"] = "crashAppError";
    UIErrorType["VALIDATION_ERROR"] = "validationError";
    UIErrorType["EXECUTION_ERROR"] = "executionError";
})(UIErrorType || (UIErrorType = {}));
export const UIErrorPriorityMap = {
    [UIErrorType.CRASH_APP_ERROR]: UIErrorPriority.P1,
    [UIErrorType.VALIDATION_ERROR]: UIErrorPriority.P1,
    [UIErrorType.EXECUTION_ERROR]: UIErrorPriority.P1,
    [UIErrorType.SERVER_ERROR_5XX]: UIErrorPriority.P1,
    [UIErrorType.SERVER_ERROR_4XX]: UIErrorPriority.P2,
    [UIErrorType.SERVER_ERROR_OTHER]: UIErrorPriority.P2
};
export var DiagnosticType;
(function (DiagnosticType) {
    DiagnosticType["AGENT"] = "agent_diagnostics";
    DiagnosticType["WORKER"] = "worker_diagnostics";
    DiagnosticType["UI"] = "ui_diagnostics";
})(DiagnosticType || (DiagnosticType = {}));
//# sourceMappingURL=observability.js.map